[Koha] callnumber.pl errors in koha-error_log
cnighswonger at foundations.edu
Thu Mar 17 07:11:19 NZDT 2011
On Wed, Mar 16, 2011 at 1:55 PM, Peter Huerter <pete.huerter at gmail.com> wrote:
> Following up,
> In Koha 3.2-5 it appears that callnumber.pl does not work without a simple
> I had to add the following line at the top of the file to work around it.
> use C4::Auth qw(get_template_and_user);
> An error was reported in the koha-error_log indicating that
> get_template_and_user was not defined.
That's because callnumber.pl is written as a plugin and not to be
executed directly. It is executed via a 'do' from within another
script which has already loaded up the required modules. See
However, the value of open source software is once again exemplified
in the fact that you were able to modify it to work for your
More information about the Koha