koha-3.12.00-alpha Software error
Hi, I upgraded Koha-3.10 to koha-3.12. But opac can't search and show the following errors. Could anyone know how to fix the following problem? Thanks a lot. Software error: Base class package "OpenILS::QueryParser" is empty. (Perhaps you need to 'use' the module which defines that package first, or make that module available in @INC (@INC contains: /usr/share/koha/lib /etc/perl /usr/local/lib/perl/5.14.2 /usr/local/share/perl/5.14.2 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.14 /usr/share/perl/5.14 /usr/local/lib/site_perl .). at /usr/share/koha/lib/Koha/QueryParser/Driver/PQF.pm line 2. BEGIN failed--compilation aborted at /usr/share/koha/lib/Koha/QueryParser/Driver/PQF.pm line 2. For help, please send mail to the webmaster (webmaster@ubuntu), giving this error message and the time and date of the error. Software error: [Mon Mar 18 20:11:45 2013] opac-search.pl: Base class package "OpenILS::QueryParser" is empty. [Mon Mar 18 20:11:45 2013] opac-search.pl: (Perhaps you need to 'use' the module which defines that package first, [Mon Mar 18 20:11:45 2013] opac-search.pl: or make that module available in @INC (@INC contains: /usr/share/koha/lib /etc/perl /usr/local/lib/perl/5.14.2 /usr/local/share/perl/5.14.2 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.14 /usr/share/perl/5.14 /usr/local/lib/site_perl .). [Mon Mar 18 20:11:45 2013] opac-search.pl: at /usr/share/koha/lib/Koha/QueryParser/Driver/PQF.pm line 2. [Mon Mar 18 20:11:45 2013] opac-search.pl: BEGIN failed--compilation aborted at /usr/share/koha/lib/Koha/QueryParser/Driver/PQF.pm line 2. Compilation failed in require at /usr/share/koha/lib/C4/Search.pm line 1225. For help, please send mail to the webmaster (webmaster@ubuntu), giving this error message and the time and date of the error.
Peter, I upgraded Koha-3.10 to koha-3.12. But opac can't search and show the
following errors. Could anyone know how to fix the following problem? Thanks a lot.
Software error: Base class package "OpenILS::QueryParser" is empty. (Perhaps you need to 'use' the module which defines that package first, or make that module available in @INC (@INC contains: /usr/share/koha/lib /etc/perl /usr/local/lib/perl/5.14.2 /usr/local/share/perl/5.14.2 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.14 /usr/share/perl/5.14 /usr/local/lib/site_perl .). at /usr/share/koha/lib/Koha/QueryParser/Driver/PQF.pm line 2. BEGIN failed--compilation aborted at /usr/share/koha/lib/Koha/QueryParser/Driver/PQF.pm line 2.
For help, please send mail to the webmaster (webmaster@ubuntu), giving this error message and the time and date of the error.
Software error: [Mon Mar 18 20:11:45 2013] opac-search.pl: Base class package "OpenILS::QueryParser" is empty. [Mon Mar 18 20:11:45 2013] opac-search.pl: (Perhaps you need to 'use' the module which defines that package first, [Mon Mar 18 20:11:45 2013] opac-search.pl: or make that module available in @INC (@INC contains: /usr/share/koha/lib /etc/perl /usr/local/lib/perl/5.14.2 /usr/local/share/perl/5.14.2 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.14 /usr/share/perl/5.14 /usr/local/lib/site_perl .). [Mon Mar 18 20:11:45 2013] opac-search.pl: at /usr/share/koha/lib/Koha/QueryParser/Driver/PQF.pm line 2. [Mon Mar 18 20:11:45 2013] opac-search.pl: BEGIN failed--compilation aborted at /usr/share/koha/lib/Koha/QueryParser/Driver/PQF.pm line 2. Compilation failed in require at /usr/share/koha/lib/C4/Search.pm line 1225.
This is very odd. Could you try turning off QueryParser and see if that fixes it (we'll then troubleshoot the problem so that this works with UseQueryParser, but I'm not quite sure what the error means and want to make sure I understand it)? Regards, Jared -- Jared Camins-Esakov Bibliographer, C & P Bibliography Services, LLC (phone) +1 (917) 727-3445 (e-mail) jcamins@cpbibliography.com (web) http://www.cpbibliography.com/
On Mon, Mar 18, 2013 at 08:49:35AM -0400, Jared Camins-Esakov wrote:
Peter,
I upgraded Koha-3.10 to koha-3.12. But opac can't search and show the
following errors. Could anyone know how to fix the following problem? Thanks a lot.
Software error: Base class package "OpenILS::QueryParser" is empty. (Perhaps you need to 'use' the module which defines that package first, or make that module available in @INC (@INC contains: This is very odd. Could you try turning off QueryParser and see if that fixes it (we'll then troubleshoot the problem so that this works with UseQueryParser, but I'm not quite sure what the error means and want to make sure I understand it)?
Jared, Koha/QueryParser/Driver/PQF.pm has a use base qw(OpenILS::QueryParser) but unless you installed the OpenILS modules ( by installing evergreen) that will not exist in your Perl lib path so you will be using an empty class as the parent. There are a few other hardcoded references to yje OpenILS tree in the QueryParser code. Cheers Colin -- Colin Campbell Chief Software Engineer, PTFS Europe Limited Content Management and Library Solutions +44 (0) 800 756 6803 (phone) +44 (0) 7759 633626 (mobile) colin.campbell@ptfs-europe.com skype: colin_campbell2 http://www.ptfs-europe.com
Colin,
I upgraded Koha-3.10 to koha-3.12. But opac can't search and show the
following errors. Could anyone know how to fix the following problem? Thanks a lot.
Software error: Base class package "OpenILS::QueryParser" is empty. (Perhaps you need to 'use' the module which defines that package first, or make that module available in @INC (@INC contains: This is very odd. Could you try turning off QueryParser and see if that fixes it (we'll then troubleshoot the problem so that this works with UseQueryParser, but I'm not quite sure what the error means and want to make sure I understand it)?
Jared, Koha/QueryParser/Driver/PQF.pm has a use base qw(OpenILS::QueryParser) but unless you installed the OpenILS modules ( by installing evergreen) that will not exist in your Perl lib path so you will be using an empty class as the parent. There are a few other hardcoded references to yje OpenILS tree in the QueryParser code.
OpenILS::QueryParser is included in Koha as of bug 9239. Did I screw up the alpha tag? It installed correctly for me when I tested the tarball. Regards, Jared -- Jared Camins-Esakov Bibliographer, C & P Bibliography Services, LLC (phone) +1 (917) 727-3445 (e-mail) jcamins@cpbibliography.com (web) http://www.cpbibliography.com/
On Mon, Mar 18, 2013 at 11:57:08AM -0400, Jared Camins-Esakov wrote:
OpenILS::QueryParser is included in Koha as of bug 9239. Did I screw up the alpha tag? It installed correctly for me when I tested the tarball.
My bad. I didnt spot that and assumed I was resolving to one in site_perl Colin -- Colin Campbell Chief Software Engineer, PTFS Europe Limited Content Management and Library Solutions +44 (0) 800 756 6803 (phone) +44 (0) 7759 633626 (mobile) colin.campbell@ptfs-europe.com skype: colin_campbell2 http://www.ptfs-europe.com
On Mon, Mar 18, 2013 at 08:18:19PM +0800, Peter Zhao wrote:
Hi, I upgraded Koha-3.10 to koha-3.12. But opac can't search and show the following errors. Could anyone know how to fix the following problem? Thanks a lot.
Software error: Base class package "OpenILS::QueryParser" is empty. (Perhaps you need to 'use' the module which defines that package first, or make that module available in @INC (@INC contains: /usr/share/koha/lib /etc/perl /usr/local/lib/perl/5.14.2 /usr/local/share/perl/5.14.2 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.14 /usr/share/perl/5.14 /usr/local/lib/site_perl .). at /usr/share/koha/lib/Koha/QueryParser/Driver/PQF.pm line 2. BEGIN failed--compilation aborted at /usr/share/koha/lib/Koha/QueryParser/Driver/PQF.pm line 2.
First thing, turn off the UseQueryParser syspref which appears to make installation of the evergreen modules a dependency. Colin -- Colin Campbell Chief Software Engineer, PTFS Europe Limited Content Management and Library Solutions +44 (0) 800 756 6803 (phone) +44 (0) 7759 633626 (mobile) colin.campbell@ptfs-europe.com skype: colin_campbell2 http://www.ptfs-europe.com
* Colin Campbell (colin.campbell@ptfs-europe.com) wrote:
On Mon, Mar 18, 2013 at 08:18:19PM +0800, Peter Zhao wrote:
Hi, I upgraded Koha-3.10 to koha-3.12. But opac can't search and show the following errors. Could anyone know how to fix the following problem? Thanks a lot.
Software error: Base class package "OpenILS::QueryParser" is empty. (Perhaps you need to 'use' the module which defines that package first, or make that module available in @INC (@INC contains: /usr/share/koha/lib /etc/perl /usr/local/lib/perl/5.14.2 /usr/local/share/perl/5.14.2 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.14 /usr/share/perl/5.14 /usr/local/lib/site_perl .). at /usr/share/koha/lib/Koha/QueryParser/Driver/PQF.pm line 2. BEGIN failed--compilation aborted at /usr/share/koha/lib/Koha/QueryParser/Driver/PQF.pm line 2.
First thing, turn off the UseQueryParser syspref which appears to make installation of the evergreen modules a dependency.
This shouldn't be nessecary, module is right there % ls /home/christopher/git/koha/OpenILS % QueryParser.pm I suspect it is a path problem Chris
Colin
-- Colin Campbell Chief Software Engineer, PTFS Europe Limited Content Management and Library Solutions +44 (0) 800 756 6803 (phone) +44 (0) 7759 633626 (mobile) colin.campbell@ptfs-europe.com skype: colin_campbell2
http://www.ptfs-europe.com _______________________________________________ Koha mailing list http://koha-community.org Koha@lists.katipo.co.nz http://lists.katipo.co.nz/mailman/listinfo/koha
-- Chris Cormack Catalyst IT Ltd. +64 4 803 2238 PO Box 11-053, Manners St, Wellington 6142, New Zealand
Hi Peter, thanks for testing! I think you might need to update your configuration files - did you rerun Makefile.pl with the update parameter when updating? Maybe take a look here: http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=9832 And at the last comment here: http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=9239 Hope this helps, Katrin -----Original Message----- From: koha-bounces@lists.katipo.co.nz on behalf of Peter Zhao Sent: Mon 18.03.2013 13:18 To: koha@lists.katipo.co.nz Subject: [Koha] koha-3.12.00-alpha Software error Hi, I upgraded Koha-3.10 to koha-3.12. But opac can't search and show the following errors. Could anyone know how to fix the following problem? Thanks a lot. Software error: Base class package "OpenILS::QueryParser" is empty. (Perhaps you need to 'use' the module which defines that package first, or make that module available in @INC (@INC contains: /usr/share/koha/lib /etc/perl /usr/local/lib/perl/5.14.2 /usr/local/share/perl/5.14.2 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.14 /usr/share/perl/5.14 /usr/local/lib/site_perl .). at /usr/share/koha/lib/Koha/QueryParser/Driver/PQF.pm line 2. BEGIN failed--compilation aborted at /usr/share/koha/lib/Koha/QueryParser/Driver/PQF.pm line 2. For help, please send mail to the webmaster (webmaster@ubuntu), giving this error message and the time and date of the error. Software error: [Mon Mar 18 20:11:45 2013] opac-search.pl: Base class package "OpenILS::QueryParser" is empty. [Mon Mar 18 20:11:45 2013] opac-search.pl: (Perhaps you need to 'use' the module which defines that package first, [Mon Mar 18 20:11:45 2013] opac-search.pl: or make that module available in @INC (@INC contains: /usr/share/koha/lib /etc/perl /usr/local/lib/perl/5.14.2 /usr/local/share/perl/5.14.2 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.14 /usr/share/perl/5.14 /usr/local/lib/site_perl .). [Mon Mar 18 20:11:45 2013] opac-search.pl: at /usr/share/koha/lib/Koha/QueryParser/Driver/PQF.pm line 2. [Mon Mar 18 20:11:45 2013] opac-search.pl: BEGIN failed--compilation aborted at /usr/share/koha/lib/Koha/QueryParser/Driver/PQF.pm line 2. Compilation failed in require at /usr/share/koha/lib/C4/Search.pm line 1225. For help, please send mail to the webmaster (webmaster@ubuntu), giving this error message and the time and date of the error. _______________________________________________ Koha mailing list http://koha-community.org Koha@lists.katipo.co.nz http://lists.katipo.co.nz/mailman/listinfo/koha
participants (5)
-
Chris Cormack -
Colin Campbell -
Fischer, Katrin -
Jared Camins-Esakov -
Peter Zhao