My apologies for the length of this email.
Here's where I stand on this...
I've tweaked the MT::App::Search handler sub and added:
---
my $filter = $r->dir_config('Filter') || undef;
if (lc($filter) eq 'on') {
$r = $r->filter_register;
};
---
And Added this to my httpd.conf:
---
<Location /search>
SetHandler perl-script
PerlSetVar Filter on
PerlSetVar MTConfig /storage/www/cgi-bin/mt.cfg
PerlHandler MT::App::Search
</Location>
---
Requesting /search/?template=mytemplate gives me:
---
<?xml version="1.0" encoding="ISO-8859-1"?>
<?xml-stylesheet href="NULL" type="application/x-xsp"?>
<!--<?xml-stylesheet href="/style/xsl/global.xsl" type="text/xsl"
media="all" title="global"?>--> <!--<?xml-stylesheet
href="/style/xsl/to_xhtml.xsl" type="text/xsl" media="screen"
title="default"?>--> <xsp:page
xmlns:xsp="http://www.apache.org/1999/XSP/Core"
xmlns:web="http://axkit.org/NS/xsp/webutils/v1"
xmlns:chl="http://chrislaco.com/xsp/utiltaglib/v1"
>
<page>
<title>Search Page</title>
<content>
<h3>No Search</h3>
</content>
</page>
</xsp:page>
---
So far so good. Everything appears to be working normally and this is
the exact output I am expecting. Then I add the AxKit stuff to
httpd.conf:
---
<Location /search>
SetHandler perl-script
PerlSetVar Filter on
PerlSetVar MTConfig /storage/www/cgi-bin/mt.cfg
AxDebugLevel 30
AxGzipOutput Off
AxProvider Apache::AxKit::Provider::Filter
AxCacheDir /storage/www/icantfocus.com/cache
AxAddXSPTaglib AxKit::XSP::Util
AxAddXSPTaglib AxKit::XSP::WebUtils
AxAddXSPTagLib UtilTagLib
AxAddXSPTaglib AxKit::XSP::ESQL
AxAddXSPTaglib AxKit::XSP::IfParam
AxAddXSPTaglib AxKit::XSP::Param
AxAddStyleMap application/x-xsp Apache::AxKit::Language::XSP
AxAddStyleMap text/xsl Apache::AxKit::Language::LibXSLT
PerlHandler MT::App::Search AxKit
</Location>
---
Make another request to /search/?template=mytemplate yields:
---
<?xml version="1.0" encoding="ISO-8859-1"?>
<?xml-stylesheet href="NULL" type="application/x-xsp"?>
<!--<?xml-stylesheet href="/style/xsl/global.xsl" type="text/xsl"
media="all" title="global"?>--> <!--<?xml-stylesheet
href="/style/xsl/to_xhtml.xsl" type="text/xsl" media="screen"
title="default"?>--> <xsp:page
xmlns:xsp="http://www.apache.org/1999/XSP/Core"
xmlns:web="http://axkit.org/NS/xsp/webutils/v1"
xmlns:chl="http://chrislaco.com/xsp/utiltaglib/v1"
>
<page>
<title>Search Page</title>
<content>
<h3>No Search</h3>
</content>
</page>
</xsp:page>
HTTP/1.1 200 OK
Date: Fri, 17 Jan 2003 00:03:19 GMT
Server: Apache/1.3.27 (Unix) AxKit/1.6 mod_perl/1.27 PHP/4.2.3
Connection: close
Transfer-Encoding: chunked
Content-Type: text/html; charset=iso-8859-1
Expires: Fri, 17 Jan 2003 00:03:19 GMT
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>200 OK</title>
</head><body>
<h1>OK</h1>
The server encountered an internal error or
misconfiguration and was unable to complete
your request.<p>
Please contact the server administrator,
[EMAIL PROTECTED] and inform them of the time the error occurred,
and anything you might have done that may have
caused the error.<p>
More information about this error may be available
in the server error log.<p>
<hr>
<address>Apache/1.3.27 Server at icantfocus.internal.matrix.network Port
80</address> </body></html>
---
with this in the error log:
---
[Thu Jan 16 19:04:23 2003] [warn] [client 192.168.20.5] [AxKit] handler
called for /search/ [Thu Jan 16 19:04:23 2003] [warn] [client
192.168.20.5] [AxKit] Content Provider Override:
Apache::AxKit::Provider::Filter [Thu Jan 16 19:04:23 2003] [warn]
[client 192.168.20.5] [AxKit] checking if we process this resource [Thu
Jan 16 19:04:23 2003] [warn] [client 192.168.20.5] [AxKit] media:
screen, preferred style: #default [Thu Jan 16 19:04:23 2003] [warn]
[client 192.168.20.5] [AxKit] Cache: key =
656f6dd66523e55dcd12ffc34f61adae [Thu Jan 16 19:04:23 2003] [warn]
[client 192.168.20.5] [AxKit] getting styles and external entities from
the XML [Thu Jan 16 19:04:23 2003] [warn] [client 192.168.20.5] [AxKit]
styles not cached - calling $provider->get_styles() [Thu Jan 16 19:04:23
2003] [warn] [client 192.168.20.5] [AxKit] using XS get_styles (libxml2)
[Thu Jan 16 19:04:23 2003] [warn] [client 192.168.20.5] [AxKit] calling
xs_get_styles_str() [Thu Jan 16 19:04:23 2003] [warn] [client
192.168.20.5] [AxKit] Caught an exception [Thu Jan 16 19:04:23 2003]
[error] [client 192.168.20.5] [AxKit] [Error] Can't use an undefined
value as an ARRAY reference at
/usr/local/lib/perl5/site_perl/5.005/i386-freebsd/Apache/AxKit/Provider.pm
line 254.
[Thu Jan 16 19:04:23 2003] [error] [client 192.168.20.5] [AxKit] From:
/usr/local/lib/perl5/site_perl/5.005/i386-freebsd/Apache/AxKit/Exception.pm
: 9 [Thu Jan 16 19:04:23 2003] [error] [client 192.168.20.5] [AxKit]
[Backtrace] Can't use an undefined value as an ARRAY reference at
/usr/local/lib/perl5/site_perl/5.005/i386-freebsd/Apache/AxKit/Provider.pm
line 254.
Apache::AxKit::Exception::new('Apache::AxKit::Exception::Error',
'-text', 'Can\'t use an undefined value as an ARRAY reference at
/usr/loca...') called at
/usr/local/lib/perl5/site_perl/5.005/i386-freebsd/AxKit.pm line 842
AxKit::prep_exception('Can\'t use an undefined value as an ARRAY
reference at /usr/loca...') called at
/usr/local/lib/perl5/site_perl/5.005/i386-freebsd/AxKit.pm line 191
AxKit::__ANON__('Can\'t use an undefined value as an ARRAY reference at
/usr/loca...') called at
/usr/local/lib/perl5/site_perl/5.005/i386-freebsd/Apache/AxKit/Provider.pm
line 254
Apache::AxKit::Provider::xs_get_styles('Apache::AxKit::Provider::Filter=HASH(0x8677908)',
'screen', undef) called at
/usr/local/lib/perl5/site_perl/5.005/i386-freebsd/Apache/AxKit/Provider.pm
line 148
Apache::AxKit::Provider::get_styles('Apache::AxKit::Provider::Filter=HASH(0x8677908)',
'screen', '#default') called at
/usr/local/lib/perl5/site_perl/5.005/i386-freebsd/AxKit.pm line 693
AxKit::get_styles('screen', '#default',
'Apache::AxKit::Cache=HASH(0x8433dc8)',
'Apache::AxKit::Provider::Filter=HASH(0x8677908)') called at
/usr/local/lib/perl5/site_perl/5.005/i386-freebsd/AxKit.pm line 371
AxKit::run_axkit_engine('Apache=SCALAR(0x84caa28)',
'Apache::AxKit::Provider::Filter=HASH(0x8677908)') called at
/usr/local/lib/perl5/site_perl/5.005/i386-freebsd/AxKit.pm line 264 eval
{...} called at
/usr/local/lib/perl5/site_perl/5.005/i386-freebsd/AxKit.pm line 255
AxKit::main_handler('Apache=SCALAR(0x84caa28)',
'Apache::AxKit::Provider::Filter=HASH(0x8677908)') called at
/usr/local/lib/perl5/site_perl/5.005/i386-freebsd/AxKit.pm line 226
AxKit::handler('Apache=SCALAR(0x84caa28)') called at /dev/null line 0
eval {...} called at /dev/null line 0
---
Clearly, the first handler MT::App::Search is doing it's thing, but I
can only begin to understand what the AxKit errors are all about.
Thoughts?
Line 254 in 1.6 release is:
my @xml_stylesheet = @{$bits->[0]};
Would it be a fair assumption that the output from MT::App::Search isn't
getting into AxKit ?
Thanks,
-=Chris
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]