Bug 27425

Summary: Koha as a CMS - software error when accessing static pages (problem with "GetDailyQuote")
Product: Koha Reporter: Isabel Pineda <isabel.pineda>
Component: OPACAssignee: Owen Leonard <oleonard>
Status: CLOSED INVALID QA Contact: Testopia <testopia>
Severity: normal    
Priority: P5 - low    
Version: 20.11   
Hardware: All   
OS: All   
GIT URL: Initiative type: ---
Sponsorship status: --- Comma delimited list of Sponsors:
Crowdfunding goal: 0 Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:

Description Isabel Pineda 2021-01-13 15:08:12 UTC
After updating to Koha 20.11, static pages (added at Global preferences -> local use) cannot be accessed anymore. The error message is:
Software error:
"GetDailyQuote" is not exported by the C4::Koha module
Can't continue after import errors at /usr/share/koha/opac/cgi-bin/opac/pages.pl line 27.
BEGIN failed--compilation aborted at /usr/share/koha/opac/cgi-bin/opac/pages.pl line 27.

Temporary solution: In the file /usr/share/koha/opac/cgi-bin/opac/pages.pl I commented all lines that mention the functionality "GetDailyQuote".
Comment 1 Katrin Fischer 2021-01-13 15:12:13 UTC
Hi Isabel, pages.pl is a file that only exists in your installation as it's part of the CMS "hack", so we can't fix this in Koha itself. It needs to be fixed locally. As you are not using the DailyQuotes feature and if it works now, your fix should be ok.