Created attachment 2979 [details] [review] patch for C4::Scrubber.pm Our Koha 3.2.2 is connected to the community Git and we are using mod_perl (in the OPAC only - amazing performances ^^). We aren't able to add comments or tags in the page : .../cgi-bin/koha/opac-detail.pl?biblionumber=XXX When we submit a tag or a comment, firebug return : <h1>Software error:</h1> <pre>New called with unrecognized type 'default' at /home/koha/kohagit/opac/opac-tags.pl line 131 </pre> <p> For help, please send mail to the webmaster (<a href="mailto:sysadmins@sys-tech.net">sysadmins@sys-tech.net</a>), giving this error message and the time and date of the error. </p> After verification, we saw that C4::Scrubber.pm is the problem... See the patch to understand our modification.
Cause of the problem is that mod_perl executes one global INIT block on start up so the individual INITs like this are not used. There was no reason to use one here in the first place. Will add a commit message to Bryce's change in signoff and send a supplementary to tidy up the unused package variables.
Signed off patch and sent supplemental clean up and test
Pushed, please test
This bug is mentioned in: Bug 5611 INIT block causes failure with mod perl http://lists.koha-community.org/pipermail/koha-patches/2011-January/013588.html Bug 5611 Tidy up C4::Scrubber http://lists.koha-community.org/pipermail/koha-patches/2011-January/013589.html