You are viewing a plain text version of this content. The canonical link for it is here.
Posted to embperl@perl.apache.org by Maurício Amorim <ma...@terra.com.br> on 2003/01/10 18:26:19 UTC

=?iso-8859-1?Q?Re:Problems_with_$req=5Frec_->_prev_->_pnotes('EMBPERL=5FERRORS')_; =09?=

When i use [- $errors = $req_rec -> prev -> pnotes('EMBPERL_ERRORS') ; -]
the apache log: (stay in loop)
[Fri Jan 10 12:55:38 2003] [error] [29842]ERR:  24:  Error in Perl code: Can't call method "pnotes" on an undefined value at /home/masilva/local/apache/htdocs/embperl/verdoc-des/err.epl line 8.

I am using Embperl 1.3.4, Apache/1.3.27 (Unix) mod_perl/1.27 

Anybody know what is wrong ?

Thank you

De:"Maurício Amorim " 

Para:embperl 

Cópia:

Data:Fri, 10 Jan 2003 14:00:41 +0000

Assunto:Problems with $req_rec -> prev -> pnotes('EMBPERL_ERRORS') ; 

  

> Hi list,
>  
> I am using ErrorDocument directive in apache and i set EMBPERL_OPTIONS 262144
>  
> My apache configuration is:
>  
> #
# MOD_PERL
#
Alias /perl /home/masilva/local/apache/cgi-bin/perl
PerlModule Apache::Registry

 SetHandler perl-script
 PerlHandler Apache::Registry
 Options ExecCGI
 PerlSendHeader On
 allow from all

> #
# EMBPERL
#
PerlModule HTML::Embperl
Addtype text/html .epl

 SetHandler perl-script
 PerlHandler HTML::Embperl
 Options ExecCGI

> #
# EMBPERL /embperl/verdoc-des
#

 SetHandler perl-script
 PerlHandler HTML::Embperl
 Options ExecCGI
 PerlSetEnv EMBPERL_OPTIONS 262144
 ErrorDocument 500 http://merlin.cpqd.com.br:8082/embperl/verdoc-des/err.epl

> #
# Apache::DBI
#
PerlModule Apache::DBI
>  
> But, when the err.epl is executed (by an die in some .epl), it stay slow and not return the page for browser. I can't get the error. 
> 
> The @$errors storage the text of an "die" ?
> The err.epl is:
>  
> 
  
    

    
      
        
          
          [- $errors = $req_rec -> prev -> pnotes('EMBPERL_ERRORS') ; -]
          There are [+ scalar(@$errors) +] errormessages
          
        
      

      
        
          OIOI
       
      

  
  

  

>  
>  
>  
>  
>  
>  
>  
>  
>  


Esta mensagem foi verificada pelo E-mail Protegido Terra.
Scan engine: VirusScan / Atualizado em 08/01/2003 / Versão: 1.3.13
Proteja o seu e-mail Terra: http://www.emailprotegido.terra.com.br/ 

Re: Re:Problems with $req_rec -> prev -> pnotes('EMBPERL_ERRORS') ;

Posted by Gerald Richter <ri...@ecos.de>.
>When i use [- $errors = $req_rec -> prev -> pnotes('EMBPERL_ERRORS') ; -]
>the apache log: (stay in loop)
>[Fri Jan 10 12:55:38 2003] [error] [29842]ERR:  24:  Error in Perl code:
Can't call method "pnotes" on an undefined value at
/home/masilva/local/apache/htdocs/embperl/verdoc-des/err.epl line 8.

There is no previous request, because you do an external request, you need
to do a subrequest

instead of

> ErrorDocument 500
http://merlin.cpqd.com.br:8082/embperl/verdoc-des/err.epl

write

 ErrorDocument 500 /embperl/verdoc-des/err.epl

Gerald

-------------------------------------------------------------
Gerald Richter    ecos electronic communication services gmbh
Internetconnect * Webserver/-design/-datenbanken * Consulting

Post:       Tulpenstrasse 5         D-55276 Dienheim b. Mainz
E-Mail:     richter@ecos.de         Voice:    +49 6133 925131
WWW:        http://www.ecos.de      Fax:      +49 6133 925152
-------------------------------------------------------------



---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org