ï
Hi,
the init method must return zero or a valid http
return code, otherwise Embperl generates a 500 server error
Gerald
---- Original Message ----
From: RobertCZ To: [EMAIL PROTECTED] Sent: Sunday, July 04, 2004 7:08 PM Subject: Re: Embperl2 & Explorer weirdness > Gerald Richter wrote: > <>The very same Embperl2 page works fine in Firefox, but in Explorer > it says Internal Server Error. > > > > Well, I'm not sure it is the source, but the primary cadidate is app > object - maybe I don't just understand how to use it, but as long as > I put anything in init metod it returns 500 and error log says > [error] handler Embperl::Object didn't return a valid return value! > > App object is basicaly just copied from the docs. It works when all > lines after sub init are commented out but as soon as I uncomment > first line (marked ****), it breaks. > > Thanks. > > - Robert > > > > Here're parts of the files and config > > httpd.conf/virt server > -------------------------------- > PerlModule Apache2 > PerlModule Embperl > PerlModule DBI > PerlModule DBD::Pg > PerlModule Image::Magick > PerlModule Apache::ImageMagickRG > > AddType text/html .eo > > # Embperl_Debug 262144 > Embperl_Debug 0 > Embperl_Log /tmp/embperl2.log > Embperl_Object_App _app.eo > Embperl_Object_Base _base.eo > Embperl_Object_Fallback index.html > Embperl_UriMatch "\.html$|\.eo$" > Embperl_MailHost rumcajz.pcv.cz > Embperl_MailFrom [EMAIL PROTECTED] > Embperl_Mail_Errors_To [EMAIL PROTECTED] > Embperl_Cookie_Expires +10000d > > <Directory "/home/www"> > <FilesMatch "\.(html|eo)$"> > Options FollowSymLinks ExecCGI > AllowOverride None > Order allow,deny > Allow from all > SetHandler perl-script > PerlHandler Embperl::Object > </FilesMatch> > </Directory> > > <VirtualHost 192.168.1.12> > ServerName appobj > Embperl_AppName appobj > DocumentRoot /home/www/exp/appobj/doc > CustomLog logs/appobj-access.log combined > env=!dontlog > </VirtualHost> > > -------------------------------- > > _base.eo > > <body> > > <h1>EmbperlObject App Object Test</h1> > > [- Execute '*' -] > > </body> > > -------------------------------- > > _app.eo > > @ISA = ('Embperl::App') ; > > > %messages = ( > 'de' => { > 'heading' => 'Ãberschrift', > 'bar' => 'Absenden', > }, > 'en' => { > 'heading' => 'Heading', > 'bar' => 'Submit', > }, > ) ; > > > sub init { > **************************** my $self = shift ; > # my $r = $self->curr_req ; > > # $r->{test} = 'robert & petr germic'; > > # $lang = $r->param->language || 'de' ; > # push @{$r->messages}, $messages{$lang} ; > # push @{$r->default_messages}, $messages{'en'} if ($lang ne 'en') > ; > } > > > 1 ; > > ---------------------------------------------------------- --------------------------------------------------------------------------- Gerald Richter ecos electronic communication services gmbh IT-SecuritylÃsungen * Webapplikationen mit Apache/Perl/mod_perl/Embperl Post: Tulpenstrasse 5 D-55276 Dienheim b. Mainz E-Mail: [EMAIL PROTECTED] Voice: +49 6133 939-122 WWW: http://www.ecos.de/ Fax: +49 6133 939-333 --------------------------------------------------------------------------- ECOS BB-5000 Firewall- und IT-Security Appliance: www.bb-5000.info --------------------------------------------------------------------------- |
- Embperl2 & Explorer weirdness RobertCZ
- Re: Embperl2 & Explorer weirdness Gerald Richter
- Re: Embperl2 & Explorer weirdness RobertCZ
- Re: Embperl2 & Explorer weirdness Gerald Richter
- Re: Embperl2 & Explorer weirdness RobertCZ