Internal server error when trying to open Budget or Funds
Hi When trying to click "Budgets" or "Funds" in Koha menu "Administration > Acquisition parameters" just a blank page appears, saying "Internal server error". Like this, of course, no new budget or fund can be added. I am experiencing this on Koha 16.11.1 as well as on Koha 17.05.1 (but not on Koha 16.11.4). I tried this as a user with the rights of a "superlibrarian" as well as with a user with fewer permissions. Has anyone experienced the same and can help, or should I maybe open a bug case? Best wishes: Michael -- Geschäftsführer · Diplombibliothekar BBS, Informatiker eidg. Fachausweis Admin Kuhn GmbH · Pappelstrasse 20 · 4123 Allschwil · Schweiz T 0041 (0)61 261 55 61 · E mik@adminkuhn.ch · W www.adminkuhn.ch
Hello Michael, It works for me on 17.05.01. Check the logs, if you see something like: Template process failed: undef error - round() overflow. Try smaller precision or use Math::BigFloat at /home/koha/src/Koha/Number/Price.pm line 44 It's a known bug: Bug 15770 - Number::Format issues with large numbers Regards, Jonathan On Fri, 15 Sep 2017 at 15:28 Michael Kuhn <mik@adminkuhn.ch> wrote:
Hi
When trying to click "Budgets" or "Funds" in Koha menu "Administration > Acquisition parameters" just a blank page appears, saying "Internal server error". Like this, of course, no new budget or fund can be added.
I am experiencing this on Koha 16.11.1 as well as on Koha 17.05.1 (but not on Koha 16.11.4). I tried this as a user with the rights of a "superlibrarian" as well as with a user with fewer permissions.
Has anyone experienced the same and can help, or should I maybe open a bug case?
Best wishes: Michael -- Geschäftsführer · Diplombibliothekar BBS, Informatiker eidg. Fachausweis Admin Kuhn GmbH · Pappelstrasse 20 · 4123 Allschwil · Schweiz T 0041 (0)61 261 55 61 <+41%2061%20261%2055%2061> · E mik@adminkuhn.ch · W www.adminkuhn.ch _______________________________________________ Koha mailing list http://koha-community.org Koha@lists.katipo.co.nz https://lists.katipo.co.nz/mailman/listinfo/koha
Hi Jonathan
It works for me on 17.05.01.
Check the logs, if you see something like: Template process failed: undef error - round() overflow. Try smaller precision or use Math::BigFloat at /home/koha/src/Koha/Number/Price.pm line 44
It's a known bug: Bug 15770 - Number::Format issues with large numbers
I can reproduce the error as described in Bug 15770 (Koha menu "Administratuion > Patron categories > New category") - including the given error message. * https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15770 But I don't see no connection with clicking "Budget" resp. "Funds" because they won't even OPEN, instead the browser says "Internal Server Error". Since it's not possible to open these menus I can of course not enter a high number there... But now I also found an error message in "plack-error.log". When clicking "Budgets" it says: Can't call method "symbol" on an undefined value at /usr/share/koha/intranet/cgi-bin/admin/aqbudgetperiods.pl line 94. When clicking "Funds" it says: Can't call method "symbol" on an undefined value at /usr/share/koha/intranet/cgi-bin/admin/aqbudgets.pl line 53. It's the same in both my installations with Koha 17.05.1 ( http://koha.adminkuhn.ch:8080/?userid=demo&password=demo ) and also on another installation with Koha 16.11.1. Best wishes: Michael -- Geschäftsführer · Diplombibliothekar BBS, Informatiker eidg. Fachausweis Admin Kuhn GmbH · Pappelstrasse 20 · 4123 Allschwil · Schweiz T 0041 (0)61 261 55 61 · E mik@adminkuhn.ch · W www.adminkuhn.ch
Hi Jonathan
But now I also found an error message in "plack-error.log".
When clicking "Budgets" it says:
Can't call method "symbol" on an undefined value at /usr/share/koha/intranet/cgi-bin/admin/aqbudgetperiods.pl line 94.
When clicking "Funds" it says:
Can't call method "symbol" on an undefined value at /usr/share/koha/intranet/cgi-bin/admin/aqbudgets.pl line 53.
It's the same in both my installations with Koha 17.05.1 ( http://koha.adminkuhn.ch:8080/?userid=demo&password=demo ) and also on another installation with Koha 16.11.1.
Well, I found the problem... line 94 says: $template->param( symbol => $active_currency->symbol, currency => $active_currency->currency I then checked if there was a currency defined and and activated - there wasn't. This is probably because I didn't load any example values (?). However, I then entered a new currency and activated it - now it works as expected. Many thanks & have a good weekend! Michael -- Geschäftsführer · Diplombibliothekar BBS, Informatiker eidg. Fachausweis Admin Kuhn GmbH · Pappelstrasse 20 · 4123 Allschwil · Schweiz T 0041 (0)61 261 55 61 · E mik@adminkuhn.ch · W www.adminkuhn.ch
So yes, it's a bug, please open a bug report :) On Fri, 15 Sep 2017 at 16:47 Michael Kuhn <mik@adminkuhn.ch> wrote:
Hi Jonathan
But now I also found an error message in "plack-error.log".
When clicking "Budgets" it says:
Can't call method "symbol" on an undefined value at /usr/share/koha/intranet/cgi-bin/admin/aqbudgetperiods.pl line 94.
When clicking "Funds" it says:
Can't call method "symbol" on an undefined value at /usr/share/koha/intranet/cgi-bin/admin/aqbudgets.pl line 53.
It's the same in both my installations with Koha 17.05.1 ( http://koha.adminkuhn.ch:8080/?userid=demo&password=demo ) and also on another installation with Koha 16.11.1.
Well, I found the problem... line 94 says:
$template->param( symbol => $active_currency->symbol, currency => $active_currency->currency
I then checked if there was a currency defined and and activated - there wasn't. This is probably because I didn't load any example values (?).
However, I then entered a new currency and activated it - now it works as expected.
Many thanks & have a good weekend! Michael -- Geschäftsführer · Diplombibliothekar BBS, Informatiker eidg. Fachausweis Admin Kuhn GmbH · Pappelstrasse 20 · 4123 Allschwil · Schweiz T 0041 (0)61 261 55 61 <+41%2061%20261%2055%2061> · E mik@adminkuhn.ch · W www.adminkuhn.ch _______________________________________________ Koha mailing list http://koha-community.org Koha@lists.katipo.co.nz https://lists.katipo.co.nz/mailman/listinfo/koha
Am 15.09.2017 um 22:34 schrieb Jonathan Druart:
So yes, it's a bug, please open a bug report :)
OK, I have added Bug 19328 - Internal server error because of missing currency * https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19328 Best wishes: Michael -- Geschäftsführer · Diplombibliothekar BBS, Informatiker eidg. Fachausweis Admin Kuhn GmbH · Pappelstrasse 20 · 4123 Allschwil · Schweiz T 0041 (0)61 261 55 61 · E mik@adminkuhn.ch · W www.adminkuhn.ch
participants (2)
-
Jonathan Druart -
Michael Kuhn