Bug 15546 - Software Error for all access to Label Creator
Summary: Software Error for all access to Label Creator
Status: CLOSED FIXED
Alias: None
Product: Koha
Classification: Unclassified
Component: Label/patron card printing (show other bugs)
Version: 3.18
Hardware: All All
: P5 - low normal (vote)
Assignee: Chris Nighswonger
QA Contact: Testopia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-01-11 14:50 UTC by Charlotte Stock
Modified: 2016-12-05 21:23 UTC (History)
2 users (show)

See Also:
Change sponsored?: ---
Patch complexity: ---
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Charlotte Stock 2016-01-11 14:50:20 UTC
This software error message appears for each option selected in Label Creator. I am able to create a new template but when 'save' is selected, again the error message appears. Please advise.
Comment 1 Charlotte Stock 2016-01-11 14:50:46 UTC
Software error:

Can't use string ("-1") as an ARRAY ref while "strict refs" in use at /usr/share/koha/intranet/cgi-bin/labels/label-edit-template.pl line 120.

For help, please send mail to the webmaster ([no address given]), giving this error message and the time and date of the error.
Comment 2 Jonathan Druart 2016-01-11 15:39:18 UTC
You should have an error in your Koha log file, do you have access to it?
Comment 3 MJ Ray (software.coop) 2016-02-12 17:19:59 UTC
The co-op fixed this. To summarise:

The log file included "Table 'koha_library.creator_layouts' doesn't exist"

It seems that labels_upgrade.pl did not run successfully during an upgrade back in the mists of time and updatedatabase.pl does not check its exit status.

As a consequence, patroncards_upgrade.pl did not run successfully either.

The database structure has been fixed by reading those and kohastructure.sql and now the label creator does not produce this error.

I will mark this as FIXED and leave it up to others to decide whether it's a bug that updatedatabase.pl doesn't check the exit status of extra upgrade scripts.