Hi all,
I have been trying to migrate an AxKit-based system to a newer machine and
I've been having some issues. I am running: Apache/1.3.39 (Unix) AxKit/1.7
mod_perl/1.30 PHP/4.4.7 mod_gzip/1.3.26.1a DAV/1.0.3 mod_ssl/2.8.30
OpenSSL/0.9.8a.
I've been able to confirm that AxKit is working to a point; the system is
a simple login/password based page that gives access to some sales data to
antique shop dealers. The login/passwrd part works - it connects to the
mysql server and if they type their password wrong, it produces the
correct error.
But if they type it correct, the should be presented with a transaction
summary page. Instead an "500 internal error" page is spit back out.
The apache error_log shows: [AxKit] [Backtrace] Modification of
non-creatable hash value attempted, subscript "SESSION" at
/usr/local/lib/perl/5.8.7/AxKit.pm line 1185.
I've turned AxDebugLevel to 10, so I have a lot of debugging data, but I
was not sure how much y'all need to see.
The code in question is located in the login.xsp page:
-------8<--------------------8<-------------
<xsp:page xmlns:xsp="http://www.apache.org/1999/XSP/Core"
xmlns:global="http://www.creITve.de/2002/XSP/Session"
xmlns:auth="http://www.creITve.de/2002/XSP/Auth"
xmlns:session="http://www.apache.org/1999/XSP/Session">
<login>
<xsp:logic>
my $login = PRIVATE::WWW::com::comground::screendoor::dealer::login($cgi);
if ($login->{valid}) {
eval {
<auth:login destination="summary.xsp">
<auth:access
type="user"><xsp:expr>$login->{booth}</xsp:expr></auth:access>
</auth:login>
};
$session = $r->pnotes('SESSION');
<session:set-attribute
name="booth"><xsp:expr>$login->{booth}</xsp:expr></session:set-attribute>
<session:set-attribute
name="dealer"><xsp:expr>$login->{dealer}</xsp:expr></session:set-attribute>
die $@ if $@;
}
</xsp:logic>
-------8<--------------------8<-------------
In particular, the $session = $r->pnotes('SESSION'); line is where things
are messing up. Line 1185 of AxKit.pm is part of the pnotes sub.
The site that this was working on has an AxKit.pm version of 1.49:
# $Id: AxKit.pm,v 1.49 2003/07/21 15:29:50 matts Exp $
while the site I have been trying to migrate this to is:
# $Id: AxKit.pm,v 1.56 2005/08/09 15:50:50 matts Exp $
What can I do to better trouble-shoot and solve this problem?
Any tips or info would be greatly appreciated!
/vjl/
--
Vince J. LaMonica Knowledge is knowing a street is one way.
[EMAIL PROTECTED] <*> Wisdom is still looking in both directions.
Donate today, please: http://www.cancer.org/
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]