Hi, I have just upgrade from 16.1 to 18.2, but when in go to: Tools>Log viewer I get this error: ... Type of arg 1 to keys must be hash (not array element) at /usr/share/koha/intranet/cgi-bin/tools/viewlog.pl line 214, near "];" Execution of /usr/share/koha/intranet/cgi-bin/tools/viewlog.pl aborted due to compilation errors. ... Does anyone already experienced this? Thanks Alex -- View this message in context: http://koha.1045719.n5.nabble.com/Possible-3-18-2-Bug-tp5823593.html Sent from the Koha-general mailing list archive at Nabble.com.
[There was a problem with the email subscription, I resend the text] Hi, I have just upgrade from 16.1 to 18.2, but when in go to: Tools>Log viewer I get this error: ... Type of arg 1 to keys must be hash (not array element) at /usr/share/koha/intranet/cgi-bin/tools/viewlog.pl line 214, near "];" Execution of /usr/share/koha/intranet/cgi-bin/tools/viewlog.pl aborted due to compilation errors. ... Does anyone already experienced this? Thanks Alex -- View this message in context: http://koha.1045719.n5.nabble.com/Possible-3-18-2-Bug-tp5823593p5823597.html Sent from the Koha-general mailing list archive at Nabble.com.
Whenever I see this:
I have just upgrade from
The first thing I have to suggest is to make sure the browser's cache has been cleared of any old javascript. Joel Coehoorn Director of Information Technology 402.363.5603 *jcoehoorn@york.edu <jcoehoorn@york.edu>* The mission of York College is to transform lives through Christ-centered education and to equip students for lifelong service to God, family, and society On Mon, Dec 29, 2014 at 2:04 PM, Alex87 <aletede87@gmail.com> wrote:
[There was a problem with the email subscription, I resend the text]
Hi,
I have just upgrade from 16.1 to 18.2, but when in go to:
Tools>Log viewer
I get this error: ... Type of arg 1 to keys must be hash (not array element) at /usr/share/koha/intranet/cgi-bin/tools/viewlog.pl line 214, near "];" Execution of /usr/share/koha/intranet/cgi-bin/tools/viewlog.pl aborted due to compilation errors. ...
Does anyone already experienced this?
Thanks Alex
-- View this message in context: http://koha.1045719.n5.nabble.com/Possible-3-18-2-Bug-tp5823593p5823597.html Sent from the Koha-general mailing list archive at Nabble.com. _______________________________________________ Koha mailing list http://koha-community.org Koha@lists.katipo.co.nz http://lists.katipo.co.nz/mailman/listinfo/koha
Hello Alex, It seems to be introduce by bug 11331. It only appears with perl version <= 5.10. The following change should fix your issue: diff --git a/tools/viewlog.pl b/tools/viewlog.pl index 9f68a8a..18eb0df 100755 --- a/tools/viewlog.pl +++ b/tools/viewlog.pl @@ -211,7 +211,7 @@ if ($do_it) { # First line with heading # Exporting bd id seems useless - my @headings = grep { $_ ne 'action_id' } sort keys $data[0]; + my @headings = grep { $_ ne 'action_id' } sort keys %{ $data[0] }; if ( $csv->combine(@headings) ) { $content .= $csv->string() . "\n"; } Could you please confirm? 2014-12-29 19:54 GMT+01:00 Alex87 <aletede87@gmail.com>:
Hi,
I have just upgrade from 16.1 to 18.2, but when in go to:
Tools>Log viewer
I get this error: ... Type of arg 1 to keys must be hash (not array element) at /usr/share/koha/intranet/cgi-bin/tools/viewlog.pl line 214, near "];" Execution of /usr/share/koha/intranet/cgi-bin/tools/viewlog.pl aborted due to compilation errors. ...
Does anyone already experienced this?
Thanks Alex
-- View this message in context: http://koha.1045719.n5.nabble.com/Possible-3-18-2-Bug-tp5823593.html Sent from the Koha-general mailing list archive at Nabble.com. _______________________________________________ Koha mailing list http://koha-community.org Koha@lists.katipo.co.nz http://lists.katipo.co.nz/mailman/listinfo/koha
Patch on bug 13522 2015-01-08 12:49 GMT+01:00 Jonathan Druart <jonathan.druart@biblibre.com>:
Hello Alex, It seems to be introduce by bug 11331. It only appears with perl version <= 5.10.
The following change should fix your issue:
diff --git a/tools/viewlog.pl b/tools/viewlog.pl index 9f68a8a..18eb0df 100755 --- a/tools/viewlog.pl +++ b/tools/viewlog.pl @@ -211,7 +211,7 @@ if ($do_it) {
# First line with heading # Exporting bd id seems useless - my @headings = grep { $_ ne 'action_id' } sort keys $data[0]; + my @headings = grep { $_ ne 'action_id' } sort keys %{ $data[0] }; if ( $csv->combine(@headings) ) { $content .= $csv->string() . "\n"; }
Could you please confirm?
2014-12-29 19:54 GMT+01:00 Alex87 <aletede87@gmail.com>:
Hi,
I have just upgrade from 16.1 to 18.2, but when in go to:
Tools>Log viewer
I get this error: ... Type of arg 1 to keys must be hash (not array element) at /usr/share/koha/intranet/cgi-bin/tools/viewlog.pl line 214, near "];" Execution of /usr/share/koha/intranet/cgi-bin/tools/viewlog.pl aborted due to compilation errors. ...
Does anyone already experienced this?
Thanks Alex
-- View this message in context: http://koha.1045719.n5.nabble.com/Possible-3-18-2-Bug-tp5823593.html Sent from the Koha-general mailing list archive at Nabble.com. _______________________________________________ Koha mailing list http://koha-community.org Koha@lists.katipo.co.nz http://lists.katipo.co.nz/mailman/listinfo/koha
On Mon, Dec 29, 2014 at 11:54:14AM -0700, Alex87 wrote:
Hi,
I have just upgrade from 16.1 to 18.2, but when in go to:
Tools>Log viewer
I get this error: ... Type of arg 1 to keys must be hash (not array element) at /usr/share/koha/intranet/cgi-bin/tools/viewlog.pl line 214, near "];" Execution of /usr/share/koha/intranet/cgi-bin/tools/viewlog.pl aborted due to compilation errors. ...
Bug 13522 has a patch for this. Cheers Colin -- Colin Campbell Chief Software Engineer, PTFS Europe Limited Content Management and Library Solutions +44 (0) 800 756 6803 (phone) +44 (0) 7759 633626 (mobile) colin.campbell@ptfs-europe.com skype: colin_campbell2 http://www.ptfs-europe.com
participants (4)
-
Alex87 -
Coehoorn, Joel -
Colin Campbell -
Jonathan Druart