Skip Menu |

This queue is for tickets about the Locale-Object CPAN distribution.

Report information
The Basics
Id: 131122
Status: patched
Priority: 0/
Queue: Locale-Object

People
Owner: Nobody in particular
Requestors: NHORNE [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 0.78
Fixed in: (no value)



Subject: Can't call method "code_alpha3" on an undefined value
Yesterday I received a number of these messages from my webserver: Can't call method "code_alpha3" on an undefined value at /home/hornenj/perlmods/lib/perl5/Locale/Object/Language.pm line 241. Now, unfortunately I don't have a stack trace to be be able to determine the conditions to help me to reproduce it and give you a program that will help you to debug it. However, I want to open a ticket to track the problem.
I have been able to generate this stack trace: Warning: No result found in language table for 'slo' in code_alpha3. at /home/hornenj/perlmods/lib/perl5/Error.pm line 37. Error::_throw_Error_Simple(HASH(0x46c0e78)) called at /home/hornenj/perlmods/lib/perl5/Error.pm line 333 Error::subs::run_clauses(HASH(0x46c0dd0), "Warning: No result found in language table for 'slo' in code_"..., undef, ARRAY(0x2497ea8)) called at /home/hornenj/perlmods/lib/perl5/Error.pm line 476 Error::subs::try(CODE(0x46c0620), HASH(0x46c0dd0)) called at page.fcgi line 247
On Sun Dec 01 12:51:35 2019, NHORNE wrote: Show quoted text
> I have been able to generate this stack trace: > > Warning: No result found in language table for 'slo' in code_alpha3. > at /home/hornenj/perlmods/lib/perl5/Error.pm line 37. > Error::_throw_Error_Simple(HASH(0x46c0e78)) called at > /home/hornenj/perlmods/lib/perl5/Error.pm line 333 > Error::subs::run_clauses(HASH(0x46c0dd0), "Warning: No result > found in language table for 'slo' in code_"..., undef, > ARRAY(0x2497ea8)) called at /home/hornenj/perlmods/lib/perl5/Error.pm > line 476 > Error::subs::try(CODE(0x46c0620), HASH(0x46c0dd0)) called at > page.fcgi line 247
There 's no language with code "slo", there's an "slv" (Slovenian) and an "slk" (Slovak) .. "slo" is a country code. What script are you running?
On Sun Dec 01 17:21:58 2019, JROBINSON wrote: Show quoted text
> On Sun Dec 01 12:51:35 2019, NHORNE wrote:
> > I have been able to generate this stack trace: > > > > Warning: No result found in language table for 'slo' in code_alpha3. > > at /home/hornenj/perlmods/lib/perl5/Error.pm line 37. > > Error::_throw_Error_Simple(HASH(0x46c0e78)) called at > > /home/hornenj/perlmods/lib/perl5/Error.pm line 333 > > Error::subs::run_clauses(HASH(0x46c0dd0), "Warning: No result > > found in language table for 'slo' in code_"..., undef, > > ARRAY(0x2497ea8)) called at /home/hornenj/perlmods/lib/perl5/Error.pm > > line 476 > > Error::subs::try(CODE(0x46c0620), HASH(0x46c0dd0)) called at > > page.fcgi line 247
> > There 's no language with code "slo", there's an "slv" (Slovenian) and > an "slk" (Slovak) .. "slo" is a country code. > > What script are you running?
Ah I see, the language_mappings table thinks there is... darn lack of constraints..
On Sun Dec 01 17:23:35 2019, JROBINSON wrote: Show quoted text
> On Sun Dec 01 17:21:58 2019, JROBINSON wrote:
> > On Sun Dec 01 12:51:35 2019, NHORNE wrote:
> > > I have been able to generate this stack trace: > > > > > > Warning: No result found in language table for 'slo' in > > > code_alpha3. > > > at /home/hornenj/perlmods/lib/perl5/Error.pm line 37. > > > Error::_throw_Error_Simple(HASH(0x46c0e78)) called at > > > /home/hornenj/perlmods/lib/perl5/Error.pm line 333 > > > Error::subs::run_clauses(HASH(0x46c0dd0), "Warning: No > > > result > > > found in language table for 'slo' in code_"..., undef, > > > ARRAY(0x2497ea8)) called at > > > /home/hornenj/perlmods/lib/perl5/Error.pm > > > line 476 > > > Error::subs::try(CODE(0x46c0620), HASH(0x46c0dd0)) called > > > at > > > page.fcgi line 247
> > > > There 's no language with code "slo", there's an "slv" (Slovenian) > > and > > an "slk" (Slovak) .. "slo" is a country code. > > > > What script are you running?
> > Ah I see, the language_mappings table thinks there is... darn lack of > constraints..
I've added constraints to the database (so that it wont allow mappings with language keys that dont exist as languages, etc) .. and uploaded as v0.81_01, please try that one? Thanks, Jess
Show quoted text
> I've added constraints to the database (so that it wont allow mappings > with language keys that dont exist as languages, etc) .. and uploaded > as v0.81_01, please try that one?
Will do, as soon as it reaches a CPAN mirror near me. -Nigel