?

Log in

No account? Create an account
December 19th, 2002 - LiveJournal Development [entries|archive|friends|userinfo]
LiveJournal Development

[ userinfo | livejournal userinfo ]
[ archive | journal archive ]

December 19th, 2002

friendsfriends page [Dec. 19th, 2002|02:10 am]
LiveJournal Development

lj_dev

[timwi]
How do I enable the friendsfriends page on my local dev server? I suppose there's a %CAP option for it that isn't documented anywhere. I get a "This user's account type doesn't permit showing friends of friends."
link9 comments|post comment

undefined custom element PAGE [Dec. 19th, 2002|11:06 am]
LiveJournal Development
lj_dev
[tterb]
My original post to lj_everywhere: http://www.livejournal.com/talkpost.bml?journal=lj_everywhere&itemid=18309

basically, i load the main page and I get: [Error: Undefined custom element 'PAGE']

I looked at Apache::BML and it looks like its hitting bml_block subroutine. I see no matching for PAGE, is it not supposed to be hitting this subroutine?

I put in some debugging... at the beginning of the routine, I have:
print STDERR "req = ", join(", ", %{$req}), "\n";
print STDERR "option-ref = ", join(", ", %{$option_ref}), "\n";
if (exists $req->{'blockref'}->{"$type/FOLLOW_${previous_block}"}) {
$realtype = "$type/FOLLOW_${previous_block}";
}
print STDERR "realtype = $realtype\n";

I only added the prints to STDERR, that if was already there.
Then, before the return for unknown custom element, I put:

print STDERR "realtype = $realtype\n";
print STDERR "blockref: ", join(", ", %{$req->{'blockref'}}), "\n";
return inline_error("Undefined custom element '$type'")
unless defined $req->{'blockref'}->{$realtype};

When I load the index.bml, here's what I get in the error log:

req = filechanged, 1, blockflags, HASH(0x8c05360), BlockStack, ARRAY(0x84550d8), scheme, , lang, en, env, HASH(0x8c052b8), most_recent_mod, 1029454767, r, Apache=SCALAR(0x8c05120), scratch, HASH(0x8a01018)
option-ref = DO_CODE,
realtype = PAGE
realtype = PAGE
blockref:
req = filechanged, 1, blockref, HASH(0x8bff430), blockflags, HASH(0x8c05360), BlockStack, ARRAY(0x84550d8), scheme, , lang, en, env, HASH(0x8c052b8), most_recent_mod, 1029454767, r, Apache=SCALAR(0x8c05120), scratch, HASH(0x8a01018)
option-ref = DO_CODE,
realtype = _C


In case this helps. Any ideas? version info below the cut
Read more...Collapse )
link12 comments|post comment

navigation
[ viewing | December 19th, 2002 ]
[ go | Previous Day|Next Day ]