Hi, folks,

O.K... I've run AxKit with the perl debugger and Apache::DB, and
have a log of all the instructions that AxKit executes when it tries,
unsuccessfully, to process a request.

A substantial amount of AxKit code _does_ get executed, and it tires
to send out lots of messages through AxKit::Debug; for some reason, none 
of them make
it into Apache's error_log.

The full perl debugger output is available at
http://durito.sourceforge.net/axkit_test/error_log_2002_08_19 --in case 
anyone
would like to look at it in detail.

As far as I can see, things go awry at line 216 of Provider.pm:

         if (!( $mapto = $style_mapping->{ $style->{type} } )) {
             throw Apache::AxKit::Exception::Declined(
                     reason => "No implementation mapping available for 
type '$style->{type}'"
                     );
         }

I also tried stepping through parts of the code, looking at some variables.

Here are some values I found as the program executes 
Apache::AxKit::Provider::get_styles:

After the execution of Provider.pm line 138:

$self:
$VAR1 = bless( {
                  'file_exists' => 1,
                  'mtime' => 1029476194,
                  'apache' => bless( do{\(my $o = 138434308)}, 'Apache' ),
                  'is_dir' => 0,
                  'file' => '/home1/d/d2ia1/public_html/axtest/test.xml'
                }, 'Apache::AxKit::Provider::File' );

$media:
'screen'

$pref_style:
undef

$key:
'/home1/d/d2ia1/public_html/axtest/test.xml'


After the execution of Provider.pm line 151:

$xs_styeles and $xml_styles are identical, and contain:
$VAR1 = [
           {
             'alternate' => 'no',
             'href' => 'test.xps',
             'media' => 'screen',
             'type' => 'application/x-xpathscript'
           }
         ];

$doctype:
undef

$dtd:
undef

$root:
'dromedaries'


After Provider.pm line 201:

@styles:
$VAR1 = {
           'title' => '#default',
           'alternate' => 'no',
           'href' => 'test.xps',
           'media' => 'screen',
           'type' => 'application/x-xpathscript'
         };



After Provider.pm line 212:

$style_mapping:
$VAR1 = {};


So... here is the problem, I'd guess... or a least, a clue to where the 
problem may lie.

It occurs to me that there might be two separate issues here: one,
that debug messages don't get to the log, and another, that style
mappings don't get read in as they should... or perhaps these are two
symptoms of the same issue.

After seeing the empty $style_mappings, I ran AxKit in the debugger again, 
this time stepping into
Apache::AxKit::ConfigReader::StyleMap when it's called on line 210 of
Provider.pm.

After the execution of line 53 of ConfigReader.pm:

$self:
$VAR1 = bless( {
                  'apache' => bless( do{\(my $o = 138434308)}, 'Apache' ),
                  'cfg' => {},
                  'output_charset_ok' => 0
                }, 'Apache::AxKit::ConfigReader' );


The expression

$self->{apache}->dir_config('AxStyleMap')

on line 57 of ConfigReader.pm returns undef.


Please let me know what you think.

Many thanks,
Andrew

P.S. The full httpd.conf I'm using is available at
http://durito.sourceforge.net/axkit_test/httpd_conf_2002_08_19

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to