tterb (tterb) wrote in lj_dev,
tterb
tterb
lj_dev

undefined custom element PAGE

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

Version of apache: Server: Apache/1.3.27 (Unix) mod_perl/1.27
Version of freebsd: FreeBSD wasson.nodetree.net 4.5-RELEASE-p2 FreeBSD 4.5-RELEASE-p2 #11: Wed Dec 18 14:37:34 PST 2002 brett@wasson.nodetree.net:/home/src/sys/compile/WASSON i386

Output of perl -V:
Summary of my perl5 (revision 5.0 version 6 subversion 1) configuration:
Platform:
osname=freebsd, osvers=4.5-release-p2, archname=i386-freebsd
uname='freebsd wasson.nodetree.net 4.5-release-p2 freebsd 4.5-release-p2 #10
: sat dec 7 12:44:39 pst 2002 brett@wasson.nodetree.net:homesrcsyscompilewasson
i386 '
config_args='-Dprefix=/usr/local/livejournal'
hint=recommended, useposix=true, d_sigaction=define
usethreads=undef use5005threads=undef useithreads=undef usemultiplicity=unde
f
useperlio=undef d_sfio=undef uselargefiles=define usesocks=undef
use64bitint=undef use64bitall=undef uselongdouble=undef
Compiler:
cc='cc', ccflags ='-fno-strict-aliasing -I/usr/local/include',
optimize='-O',
cppflags='-fno-strict-aliasing -I/usr/local/include'
ccversion='', gccversion='2.95.3 20010315 (release) [FreeBSD]', gccosandvers
=''
intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=1234
d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12
ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t', lseeksize
=8
alignbytes=4, usemymalloc=n, prototype=define
Linker and Libraries:
ld='cc', ldflags ='-Wl,-E -L/usr/local/lib'
libpth=/usr/lib /usr/local/lib
libs=-lbind -lgdbm -lm -lc -lcrypt -lutil
perllibs=-lbind -lm -lc -lcrypt -lutil
libc=, so=so, useshrplib=false, libperl=libperl.a
Dynamic Linking:
dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags=' '
cccdlflags='-DPIC -fpic', lddlflags='-shared -L/usr/local/lib'


Characteristics of this binary (from libperl):
Compile-time options: USE_LARGE_FILES
Built under freebsd
Compiled at Dec 12 2002 23:35:07
@INC:
/usr/local/livejournal/lib/perl5/5.6.1/i386-freebsd
/usr/local/livejournal/lib/perl5/5.6.1
/usr/local/livejournal/lib/perl5/site_perl/5.6.1/i386-freebsd
/usr/local/livejournal/lib/perl5/site_perl/5.6.1
/usr/local/livejournal/lib/perl5/site_perl/5.005/i386-freebsd
/usr/local/livejournal/lib/perl5/site_perl/5.005
/usr/local/livejournal/lib/perl5/site_perl
Subscribe
  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 12 comments