Site Migration - Staff (-Intra) Site Software Error on Login
Hi, I'm a newbie to Koha, and am experiencing a page load error for a newly migrated library site. On successful login to the staff (-intra) site it persistently results with: /Software error: output_pref is called with 'dateonly' (ref SCALAR), not a DateTime object For help ... / Some background, the migration is from a functioning Koha site on version 3.20.03.00 going to package based version 17.05.04.000 on a Debian 9.2 VM. I also attempted a migration to the oldest stable package v.16.05.17.000, however, received a software error: / "Can't locate object method "ymd" via package "dateonly" (perhaps you forgot to load "dateonly"?)"/ Nothing untoward was noted during the schema update of the imported DB (I can post output if desired). The OPAC site for the migrated DB is working fine. Also, I've created a new blank test library instance which works fine for both staff and OPAC vhosts on the new VM. Perl v.5.024001 (and the required modules) are reported as OK. MySQL mysql Ver 15.1 Distrib 10.1.26-MariaDB, for debian-linux-gnu (x86_64) using readline 5.2 Apache version: Server version: Apache/2.4.25 (Debian) Any assistance resolving this is appreciated. JohnC -- Sent from: http://koha.1045719.n5.nabble.com/Koha-general-f3047918.html
Do you have a line number? :) On Thu, 19 Oct 2017 at 15:57 JohnC <johnc@wyscom.com.au> wrote:
Hi, I'm a newbie to Koha, and am experiencing a page load error for a newly migrated library site.
On successful login to the staff (-intra) site it persistently results with:
/Software error:
output_pref is called with 'dateonly' (ref SCALAR), not a DateTime object
For help ... / Some background, the migration is from a functioning Koha site on version 3.20.03.00 going to package based version 17.05.04.000 on a Debian 9.2 VM.
I also attempted a migration to the oldest stable package v.16.05.17.000, however, received a software error:
/ "Can't locate object method "ymd" via package "dateonly" (perhaps you forgot to load "dateonly"?)"/
Nothing untoward was noted during the schema update of the imported DB (I can post output if desired).
The OPAC site for the migrated DB is working fine.
Also, I've created a new blank test library instance which works fine for both staff and OPAC vhosts on the new VM.
Perl v.5.024001 (and the required modules) are reported as OK. MySQL mysql Ver 15.1 Distrib 10.1.26-MariaDB, for debian-linux-gnu (x86_64) using readline 5.2 Apache version: Server version: Apache/2.4.25 (Debian)
Any assistance resolving this is appreciated.
JohnC
-- Sent from: http://koha.1045719.n5.nabble.com/Koha-general-f3047918.html _______________________________________________ Koha mailing list http://koha-community.org Koha@lists.katipo.co.nz https://lists.katipo.co.nz/mailman/listinfo/koha
Hi Jonathan, Not exactly sure about the line number … from the site error log (please note site is local only): [Thu Oct 19 06:32:40.361245 2017] [cgi:error] [pid 23178] [client 10.0.3.62:59608] AH01215: [Thu Oct 19 06:32:40 2017] mainpage.pl: output_pref is called with 'dateonly' (ref SCALAR), not a DateTime object: /usr/share/koha/intranet/cgi-bin/mainpage.pl, referer: http://dementiaresources-intra.yourlibrary.com.au/index.html Cheers, JohnC From: Jonathan Druart [mailto:jonathan.druart@bugs.koha-community.org] Sent: Friday, October 20, 2017 7:12 AM To: John Ciempka <johnc@wyscom.com.au>; koha@lists.katipo.co.nz Subject: Re: [Koha] Site Migration - Staff (-Intra) Site Software Error on Login Do you have a line number? :) On Thu, 19 Oct 2017 at 15:57 JohnC <johnc@wyscom.com.au<mailto:johnc@wyscom.com.au>> wrote: Hi, I'm a newbie to Koha, and am experiencing a page load error for a newly migrated library site. On successful login to the staff (-intra) site it persistently results with: /Software error: output_pref is called with 'dateonly' (ref SCALAR), not a DateTime object For help ... / Some background, the migration is from a functioning Koha site on version 3.20.03.00 going to package based version 17.05.04.000 on a Debian 9.2 VM. I also attempted a migration to the oldest stable package v.16.05.17.000, however, received a software error: / "Can't locate object method "ymd" via package "dateonly" (perhaps you forgot to load "dateonly"?)"/ Nothing untoward was noted during the schema update of the imported DB (I can post output if desired). The OPAC site for the migrated DB is working fine. Also, I've created a new blank test library instance which works fine for both staff and OPAC vhosts on the new VM. Perl v.5.024001 (and the required modules) are reported as OK. MySQL mysql Ver 15.1 Distrib 10.1.26-MariaDB, for debian-linux-gnu (x86_64) using readline 5.2 Apache version: Server version: Apache/2.4.25 (Debian) Any assistance resolving this is appreciated. JohnC -- Sent from: http://koha.1045719.n5.nabble.com/Koha-general-f3047918.html _______________________________________________ Koha mailing list http://koha-community.org Koha@lists.katipo.co.nz<mailto:Koha@lists.katipo.co.nz> https://lists.katipo.co.nz/mailman/listinfo/koha
“Do you have a line number? :)” When migrating through an older package v.16.05.17.000, The web error log displayed: mainpage.pl: Can't locate object method "ymd" via package "dateonly" (perhaps you forgot to load "dateonly"?) at /usr/share/koha/lib/Koha/DateUtils.pm line 225.: /usr/share/koha/intranet/cgi-bin/mainpage.pl
I'd say you have a date in your DB that is not correctly formatted. If you have access to the server and some developper skills you could try to add a debug warning at Koha/DateUtils.pm l.219 (before the exception is thrown (warn $dt) The problematic string will be displayed and then you will have to search for it in the DB (with a dump for instance). I am sorry I have nothing else to suggest. Regards, Jonathan On Mon, 23 Oct 2017 at 18:16 John Ciempka <johnc@wyscom.com.au> wrote:
“Do you have a line number? :)”
When migrating through an older package v.16.05.17.000,
The web error log displayed:
mainpage.pl: Can't locate object method "ymd" via package "dateonly" (perhaps you forgot to load "dateonly"?) at /usr/share/koha/lib/Koha/DateUtils.pm line 225.: /usr/share/koha/intranet/cgi-bin/mainpage.pl
Thanks Jonathan for your suggestion, will give that a try. Failing in that, I may request they update their current installation to a more up to date version. Cheers, JohnC -- Sent from: http://koha.1045719.n5.nabble.com/Koha-general-f3047918.html
participants (3)
-
John Ciempka -
JohnC -
Jonathan Druart