Bug 27376

Summary: Opac detail retrieval failing on (20.11.00-1). ColumnSettings plugin not found.
Product: Koha Reporter: Steve Cooney <steve>
Component: OPACAssignee: Owen Leonard <oleonard>
Status: CLOSED WONTFIX QA Contact: Testopia <testopia>
Severity: critical    
Priority: P5 - low    
Version: 20.11   
Hardware: PC   
OS: Linux   
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 Steve Cooney 2021-01-11 09:55:56 UTC
Opac detail retrieval failing on (20.11.00-1).

sudo curl -v https://library.abs.org.nz/cgi-bin/koha/opac-detail.pl?biblionumber=1354

returns "Internal Server Error"

opac logs as
192.168.2.1 - - [11/Jan/2021:22:49:21 +1300] "GET /cgi-bin/koha/opac-detail.pl?biblionumber=1354 HTTP/1.1" 500 21

PLack-error.log returns

Template process failed: plugin error - ColumnsSettings: plugin not found at /usr/share/koha/lib/C4/Templates.pm line 122.

columns_settings table exists and has circ, members module rows.

Repeatable behaviour after reinstalling koha-common

Additional log, worker-output.log not sure of relevance:
Failed to connect: Error connecting to localhost:61613: Connection refused at /usr/share/perl5/Net/Stomp.pm line 27.; retrying at /usr/share/perl5/Net/Stomp.pm line 90.
Comment 1 Katrin Fischer 2021-01-11 10:10:44 UTC
*** Bug 27377 has been marked as a duplicate of this bug. ***
Comment 2 Owen Leonard 2021-01-11 12:31:35 UTC
I can't reproduce this problem in 20.11.01.001. I suspect this is a local issue.
Comment 3 Steve Cooney 2021-01-11 17:10:39 UTC
Could someone explain why opac-detail needs to interrogate columnsettings. Is there a way to enable tracing or a stack trace.
Comment 4 Katrin Fischer 2021-01-11 17:39:54 UTC
The items table can be configured using Administration > Column/Table settings.
Comment 5 Steve Cooney 2021-01-13 06:09:25 UTC
So ColumnSettings is deprecated in the following commit. Bug 24156: move ColumnsSettings to TablesSettings
https://github.com/Koha-Community/Koha/commit/de54267510a31d332144c6e8e718334a6bd7e141 

I am running my own version of opac templates and these still reference columns_settings files and includes as per my grep results:

pacwin@ubuntukoha:~$ sudo grep -r -i "ColumnsSettings" /usr/share/koha/

/usr/share/koha/opac/htdocs/opac-tmpl/nznbrl/en/includes/columns_settings.inc:[% USE ColumnsSettings %]
/usr/share/koha/opac/htdocs/opac-tmpl/nznbrl/en/modules/opac-detail.tt:[% USE ColumnsSettings %]
/usr/share/koha/opac/htdocs/opac-tmpl/nznbrl/en/modules/opac-detail.tt:        var columns_settings = [% ColumnsSettings.GetColumns( 'opac', 'biblio-detail', 'holdingst', 'json' ) | $raw %];
/usr/share/koha/opac/htdocs/opac-tmpl/nznbrl/en/modules/opac-detail.tt:        var serial_column_settings = [% ColumnsSettings.GetColumns( 'opac', 'biblio-detail', 'subscriptionst', 'json' ) | $raw %];

So I have a way forward to solve the issue now that koha/lib and  /usr/share/koha/opac/htdocs/opac-tmpl templates are out of sync.
Comment 6 Katrin Fischer 2021-01-13 08:59:14 UTC
As a community we can only support the theming feature, but not the custom themes themselves. Please check with standard templates first, next time before reporting a bug. Hope you can fix your issue!