perl-embperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From RobertCZ <rob...@robert.cz>
Subject Re: curr_esc_mode error in 2.2
Date Sat, 18 Nov 2006 12:39:52 GMT
OK, good old Google comes to help: you advised

http://www2.ecos.de/~mailarc/embperl/2006-01/msg00026.html
http://www2.ecos.de/~mailarc/embperl/2006-01/msg00031.html
http://www2.ecos.de/~mailarc/embperl/2006-01/msg00034.html
http://www2.ecos.de/~mailarc/embperl/2006-01/msg00036.html

Now it works.



RobertCZ wrote:
> Hello,
>
>   I've just upgraded to 2.2 and now one of my vhost says
>
> [22750]ERR: 24: Error in Perl code: Can't locate object method 
> "curr_esc_mode" via package "Embperl::Component" at 
> /home/www/_cms/doc/parkhotel-pruhonice/cms/hotel_en.html line 2.
>
>   Apparently the problem is in this syntax file
>
>> sub Init {
>>     my ($self) = @_  ;
>>     $self -> AddTagBlock ('h2', ['color'], undef, undef, { perlcode => q{
>>             { $epreq -> component -> curr_esc_mode(0);
>>                 _ep_rp(%$x%, "<h2><img border=0 
>> src=\"/img/h2.gif?color="
>>                 . $epreq -> Escape( %&'color%, 2 )
>>                 . "&text="
>>                 . $epreq -> Escape( 
>> XML::Embperl::DOM::Node::iChildsText(%$n%), 2 )
>>                 . "\"></h2>");
>>             }}
>>         }) ;
>> }
>
> It worked fine in my previous version, but I don't remember what it 
> was - I remember vaguely you sent me  a simple patch for 2.0.x but I 
> can't find it again and apparently it dodn't get to the official 
> version. Thanks for your help
>
> - Robert
>
>
> PS Now it shows this:
>
>   http://www.parkhotel-pruhonice.cz/en/hotel.html
>
> instead of correct
>
>   http://www.parkhotel-pruhonice.germic.cz/en/hotel.html
>
>
>


Mime
View raw message