Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the Plack-Middleware-Debug CPAN distribution.

Report information
The Basics
Id: 57087
Status: resolved
Priority: 0/
Queue: Plack-Middleware-Debug

People
Owner: Nobody in particular
Requestors: jnareb [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 0.07
Fixed in: (no value)



Subject: Use of uninitialized value in concatenation (.) or string at line 61 in template
Trying to open any panel in Plack::Middleware::Debug (in Plack::App::WrapCGI app) results in empty panel and the following error Use of uninitialized value in concatenation (.) or string at line 61 in template passed from ~/perl5/lib/perl5/Plack/Middleware/Debug.pm at line 116. ---------------------------------------------------------------------------- 59: % my $content = ref $panel->content eq 'CODE' ? $panel->content->() : $panel->content; 60: % $content = Encode::encode('latin1', $content, Encode::FB_XMLCREF); 61: <%= Text::MicroTemplate::encoded_string($content) %> 62: </div> 63: </div> ---------------------------------------------------------------------------- Plack::Middleware::Debug 0.07 Encode 2.08 Text::MicroTemplate 0.11 Plack 0.9933 perl v5.8.6 -- Jakub Narebski
Subject: Fixed by upgrading Encode (from 2.08 to 2.39); prereq needed
From: Jakub Narebski <jnareb [...] gmail.com>
On Pt 30 Apr 2010, 13:00:21, http://jnareb.openid.pl/ wrote: Show quoted text
> Trying to open any panel in Plack::Middleware::Debug (in > Plack::App::WrapCGI app) results in empty panel and the following error > > Use of uninitialized value in concatenation (.) or string at line 61 in > template passed from ~/perl5/lib/perl5/Plack/Middleware/Debug.pm at line > 116. >
---------------------------------------------------------------------------- Show quoted text
> 59: % my $content = ref $panel->content eq 'CODE' ? > $panel->content->() : $panel->content; > 60: % $content = Encode::encode('latin1', $content, Encode::FB_XMLCREF); > 61: <%= > Text::MicroTemplate::encoded_string($content) %> > 62: </div> > 63: </div> >
---------------------------------------------------------------------------- Show quoted text
> > Plack::Middleware::Debug 0.07 > Encode 2.08 > Text::MicroTemplate 0.11 > Plack 0.9933 > perl v5.8.6
Upgrading Encode from 2.08 (from system installation of Perl v5.8.6) to Encode 2.39 (installed from CPAN using local::lib) fixed this issue: Plack::Middleware::Debug panels work correctly, and mentioned error vanished. Neverheless Plack::Middleware::Debug should in my opinion: * have test for this behaviour, which should fail if Encode doesn't support required feature * require minimum version of Encode in prereq (probably earliest that have Encode::FB_XMLCREF). -- Jakub Narebski
Fixed in 0.08