On Thursday 15 December 2005 21:18, Jörg Walter wrote: > On Thursday, 15. December 2005 21:11, Jörg Walter wrote: > > I had a look, and it seems a few lines went missing somewhere. > > There's also a problem report regarding my session plugin in 1.7, I > > will prepare a patch soon. > > Seems like I was faster than I thought: could you try > http://garni.ch/~jwalt/axkit.diff ? It includes all modifications to > STL mentioned.
Wooohooo! Cool! So, applied, and it gets further. It stops with the following, though: [Fri Dec 16 22:03:26 2005] [error] [client 127.0.0.1] [AxKit] [Error] Compilation failed: Global symbol "$AxKit__App__TABOO__XSP__Category_stack" requires explicit package name at (eval 54) line 478.\nGlobal symbol "$AxKit__App__TABOO__XSP__Category_stack" requires explicit package name at (eval 54) line 577.\n The line numbers are somewhat odd, but I have the following fragment in the tidy-ed output: 464 do { 465 my ($attr_onlycontent, $attr_type); 466 $attr_type = q%categ%; 467 my $_resfunc = sub { 468 AxKit::App::TABOO::XSP::Category::get_categories( 469 q%get-categories%, 470 { q%onlycontent% => $attr_onlycontent, 471 q%type% => $attr_type 472 }, 473 $AxKit__App__TABOO__XSP__Category_stack, 474 undef 475 ); 476 }; 477 Apache::AxKit::Language::XSP::SimpleTaglib::xmlize( 478 $document, 479 $parent, 480 [ I'm not using the stack for anything now. At least not knowingly. :-) In SimpleTaglib.pm, from line 750, we have if (!$stacklevel{$rtpkg}) { $stacklevel{$rtpkg} = []; $stackcur{$rtpkg} = [0]; $e->append_to_script('my @'.makeVariableName($rtpkg)."_stack = ({});\n"); $e->append_to_script('my $'.makeVariableName($rtpkg).'_stack = $'.makeVariableName($rtpkg)."_stack[0];\n"); } That's the only place I can see my $foo_stack getting appended. Supposedly, it means that this is never called, so, the variable is never declared with a my. I figured, knowing the Element parse would be useful when reporting things, so I reinserted that with a debuglevel of 10 and also put in a carp statement (that's not too useful, I guess). Then I get the following errors: unknown node type: 7 at /usr/local/lib/perl/5.8.7/Apache/AxKit/Language/XSP.pm line 1159. unknown node type: 7 at /usr/local/lib/perl/5.8.7/Apache/AxKit/Language/XSP.pm line 1159. [Fri Dec 16 22:19:41 2005] [warn] [client 127.0.0.1] [AxKit] [STL] Element: LocalName => get-category,Prefix => cat,Attributes => ARRAY(0x8a797d0),LineNumber => ,Name => get-category,Parent => HASH(0x8a793c8),NamespaceURI => http://www.kjetil.kjernsmo.net/software/TABOO/NS/Category STACK: at /usr/local/lib/perl/5.8.7/Apache/AxKit/Language/XSP.pm line 501 [Fri Dec 16 22:19:41 2005] [warn] [client 127.0.0.1] [AxKit] [STL] Element: LocalName => catname,Prefix => cat,Attributes => ARRAY(0x8a79488),LineNumber => ,Name => catname,Parent => HASH(0x8a79398),NamespaceURI => http://www.kjetil.kjernsmo.net/software/TABOO/NS/Category STACK: ARRAY(0x8a89298) at /usr/local/lib/perl/5.8.7/Apache/AxKit/Language/XSP.pm line 501 [Fri Dec 16 22:19:41 2005] [warn] [client 127.0.0.1] [AxKit] [STL] Element: LocalName => get-categories,Prefix => cat,Attributes => ARRAY(0x8ab27c0),LineNumber => ,Name => get-categories,Parent => HASH(0x8ab2880),NamespaceURI => http://www.kjetil.kjernsmo.net/software/TABOO/NS/Category STACK: ARRAY(0x8a89298) at /usr/local/lib/perl/5.8.7/Apache/AxKit/Language/XSP.pm line 501 [Fri Dec 16 22:19:41 2005] [warn] [client 127.0.0.1] [AxKit] [STL] Element: LocalName => get-categories,Prefix => cat,Attributes => ARRAY(0x8a97d5c),LineNumber => ,Name => get-categories,Parent => HASH(0x8aad8dc),NamespaceURI => http://www.kjetil.kjernsmo.net/software/TABOO/NS/Category STACK: ARRAY(0x8a89298) at /usr/local/lib/perl/5.8.7/Apache/AxKit/Language/XSP.pm line 501 Does that tell you anything? Cheers, Kjetil -- Kjetil Kjernsmo Programmer / Astrophysicist / Ski-orienteer / Orienteer / Mountaineer [EMAIL PROTECTED] Homepage: http://www.kjetil.kjernsmo.net/ OpenPGP KeyID: 6A6A0BBC