Skip Menu |

This queue is for tickets about the CGI-Application-Plugin-AutoRunmode CPAN distribution.

Report information
The Basics
Id: 18721
Status: resolved
Priority: 0/
Queue: CGI-Application-Plugin-AutoRunmode

People
Owner: Nobody in particular
Requestors: gecononomou [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: Critical
Broken in: 0.12
Fixed in: (no value)



Subject: not registering run modes under mod_perl 2
Broken in version 0.13. Actually this is the same as bug #17143. On Apache 2.0.43 running on rhel4 with mod_perl 2, perl, v5.8.0. Tried to "use" the plugin earlier in the code but it is not working. Works great as plain_cgi and under persistentperl.
It seems that Attribute::Handlers has some problems with mod_perl. Could you check if disabling A::H fixes the issue? AutoRunmode tries to use A::H, but also has a fallback mode if A::H is not available. You can force not to use A::H by changing BEGIN{ eval 'use Attribute::Handlers; $has_ah=1;'; to BEGIN{ # eval 'use Attribute::Handlers; $has_ah=1;'; at the beginning of AutoRunmode.pm.
From: thilo [...] cpan.org
I believe to have found and fixed the problem in 0.14. It seems that Attribute::Handler by default relies on code running in the CHECK phase, which is problematic when used with mod_perl. I moved the attribute handlers into the BEGIN phase, and that seems to work now.