I am moving a working Dancer2 app from centos6 to 7 When running it I get Class::XSAccessor: invalid instance method invocant: no hash ref supplied at /usr/local/share/perl5/Dancer2/Core/Role/Serializer.pm line 71. I have narrowed it down to a single line - if I comment this out the app starts fine - albeit with the data from $file_string missing and therefore useless $sql_config = from_yaml($file_string); But why on earth is it failing at compile time? Working on 6 - Dancer2 0.160003 Not working on 7 - Dancer2 0.204002 Downgraded 7 to 0.160003 - works have I missed something that changed between versions of Dancer2? TIA — Clive Eisen GPG: 75056DD0
On 01/03/2017 09:00 PM, Clive Eisen wrote:
I am moving a working Dancer2 app from centos6 to 7
When running it I get
Class::XSAccessor: invalid instance method invocant: no hash ref supplied at /usr/local/share/perl5/Dancer2/Core/Role/Serializer.pm line 71.
I have narrowed it down to a single line - if I comment this out the app starts fine - albeit with the data from $file_string missing and therefore useless
$sql_config = from_yaml($file_string);
But why on earth is it failing at compile time?
Working on 6 - Dancer2 0.160003
Not working on 7 - Dancer2 0.204002
Downgraded 7 to 0.160003 - works
have I missed something that changed between versions of Dancer2?
TIA
Hello Clive, did you check that you meet all Perl module prerequisites for Dancer2. These have changed between the Dancer2 versions mentioned above. Regards Racke -- Ecommerce and Linux consulting + Perl and web application programming. Debian and Sympa administration.
participants (2)
-
Clive Eisen -
Stefan Hornburg (Racke)