On Thursday 19 December 2002 15:24, Kjetil Kjernsmo wrote:
> The final step was to implement the get_styles method, but when I do,
> I get this weird error message in my error.log:
Uhm, this question, was it too stupid or too lacking in details....?
I've worked on it for a couple of days, and resolved many other issues
(I wasn't aware of the distinction between Style Providers and Content
Providers), perhaps I can come up with sufficient details now... :-)
But first, the short version: Must the arrayref with hashrefs that
get_styles() return have key "method"?
And now for the long version, here's more from the log:
[Fri Dec 20 23:14:59 2002] [warn] [client 195.1.208.96] [AxKit] styles:
(/transforms/article/html.xsl)
[Fri Dec 20 23:14:59 2002] [warn] [client 195.1.208.96] [AxKit] Style
Provider Override: Apache::AxKit::Provider::File
[Fri Dec 20 23:14:59 2002] [warn] [client 195.1.208.96] [AxKit] [uri]
File Provider looking up uri /transforms/article/html.xsl
[Fri Dec 20 23:14:59 2002] [warn] [client 195.1.208.96] [AxKit] [uri]
File Provider set filename to
/www/skepsis/test/appserv/transforms/article/html.xsl
[Fri Dec 20 23:14:59 2002] [warn] [client 195.1.208.96] [AxKit] Caught
an exception
[Fri Dec 20 23:14:59 2002] [error] [client 195.1.208.96] [AxKit] [Error]
AxKit::load_module failed: Can't locate .pm in @INC (@INC contains:
/usr/local/lib/perl/5.6.1 /usr/local/share/perl/5.6.1 /usr/lib/perl5
/usr/share/perl5 /usr/lib/perl/5.6.1 /usr/share/perl/5.6.1
/usr/local/lib/site_perl . /etc/apache-perl/ /etc/apache-perl/lib/perl)
at (eval 13) line 1.
[Fri Dec 20 23:14:59 2002] [error] [client 195.1.208.96] [AxKit] From:
/usr/lib/perl5/Apache/AxKit/Exception.pm : 9
[Fri Dec 20 23:14:59 2002] [error] [client 195.1.208.96] [AxKit]
[Backtrace] AxKit::load_module failed: Can't locate .pm in @INC (@INC
contains: /usr/local/lib/perl/5.6.1 /usr/local/share/perl/5.6.1
/usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.6.1
/usr/share/perl/5.6.1 /usr/local/lib/site_perl . /etc/apache-perl/
/etc/apache-perl/lib/perl) at (eval 13) line 1.
Apache::AxKit::Exception::new('Apache::AxKit::Exception::Error',
'-text', 'AxKit::load_module failed: Can\'t locate .pm in @INC (@INC
conta...') called at /usr/lib/perl5/AxKit.pm line 839
AxKit::prep_exception('AxKit::load_module failed: Can\'t locate .pm in
@INC (@INC conta...') called at /usr/lib/perl5/AxKit.pm line 191
AxKit::__ANON__('AxKit::load_module failed: Can\'t locate .pm in @INC
(@INC conta...') called at /usr/lib/perl5/AxKit.pm line 612
AxKit::process_request('AxKit::Apache=SCALAR(0x82c31d4)',
'Apache::AxKit::Provider::Article=HASH(0x82c4564)', 'ARRAY(0x82a7f44)')
called at /usr/lib/perl5/AxKit.pm line 437
AxKit::run_axkit_engine('AxKit::Apache=SCALAR(0x82c31d4)',
'Apache::AxKit::Provider::Article=HASH(0x82c4564)') called at
/usr/lib/perl5/AxKit.pm line 264
eval {...} called at /usr/lib/perl5/AxKit.pm line 255
AxKit::main_handler('AxKit::Apache=SCALAR(0x82c31d4)',
'Apache::AxKit::Provider::Article=HASH(0x82c4564)') called at
/usr/lib/perl5/AxKit.pm line 226
AxKit::handler('AxKit::Apache=SCALAR(0x82c31d4)') called at /dev/null
line 0
eval {...} called at /dev/null line 0
Going back into the code, I think I recognize where the first error
message quote in the above excerpt:
AxKit::Debug(4, "styles: ", $style->{module}, "(", $style->{href}, ")");
So, there's a $style->{module}, and a bit further down:
my $mapto = $style->{module};
AxKit::load_module($mapto);
....so, it seems that here's where it goes wrong, and the reason is that
$style->{module}
isn't defined.
So, does this mean that my get_styles()-method must return this arrayref
with hashrefs with a key "module" in addition to "href" and "type"?
If yes, what should "module" contain?
Are there more docs about this somewhere?
Cheers,
Kjetil
--
Kjetil Kjernsmo
Astrophysicist/IT Consultant/Skeptic/Ski-orienteer/Orienteer/Mountaineer
[EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED]
Homepage: http://www.kjetil.kjernsmo.net/
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]