Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Catalyst: Users

sporadical error in template parsing

 

 

Catalyst users RSS feed   Index | Next | Previous | View Threaded


gw at green-stores

Jul 15, 2009, 5:50 AM

Post #1 of 1 (628 views)
Permalink
sporadical error in template parsing

Hello,

i just encountered a sporadical error when trying to render this tt2
template code:

file message.tt2:
[% META title = 'Catalyst/TT View!' %]
<p>
<span class="message">[% message %]</span>
</p>

[% IF Catalyst.request.referer %]
<p><a href="[% Catalyst.request.referer %]">zurück</a></p>
[% END -%]

catalyst gave me the following error message:

Couldn't render template "file error - parse error - message.tt2 line
7: Assertion rx->sublen >= (s - rx->subbeg) + i failed: file
"regcomp.c", line 5109 at
/usr/lib/perl5/site_perl/5.10.0/i586-linux-thread-multi/Template/Directive.pm
line 149."

sub text {
my ($class, $text) = @_;
for ($text) {
s/(["\$\@\\])/\\$1/g; #<--this is the offending line in
Template/Direktive.pm
s/\n/\\n/g;
}
return '"' . $text . '"';
}

Im a little bit lost with this. The error dosen't happen on every call
(maybe because im using HTTP::Prefork).
When puttin in spaces arund the word 'zurück' in line 7 all seems to
work properly.
For me this seems to be an issue with the perl regex engine. Am i right
with this guess?

Im using a precompiled perl v10.0.0 on a suse 11.1 linux.

Don't know if this is the right place for this message but maybe someone
here is interessted in this issue or can verify it or even push it into
the right channels.


thanks,

Gerrit Wichert


_______________________________________________
List: Catalyst [at] lists
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst [at] lists/
Dev site: http://dev.catalyst.perl.org/

Catalyst users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.