Error while closing HTML::Embperl::DOC::_2::OUT:

2003-01-28 Thread Kamil Hanak
Hi All,

I get following error in my embperl.log file on every request.

--
[21949]CUP:  Error while closing HTML::Embperl::DOC::_2::OUT: Can't locate
object method "CLOSE" via package "HTML::Embperl::Out" at
/usr/lib/perl5/site_perl/5.8.0/i586-linux-thread-multi/HTML/Embperl.pm line
1448.

[21949]CUP:  Error while closing HTML::Embperl::DOC::_2::LOG: Can't locate
object method "CLOSE" via package "HTML::Embperl::Log" at
/usr/lib/perl5/site_perl/5.8.0/i586-linux-thread-multi/HTML/Embperl.pm line
1448.
--

Embperl works well but these messages are annoying.
I've alredy red reply
(http://www.ecos.de/~mailarc/embperl/2002-12/msg00075.html) to request from
Rajesh Kumar Mallah but it isn't my case. My page is very simple and don't
use any reserved words.

### file: base.epl ###

[- Execute('*'); -]

### file: index.phtml ###





[+ "Hello" +]



###

I use Embperl 1.3.5, Apache/1.3.26, mod_perl/1.27, Perl 5.8.0, (Linux/SuSE)

Regards
Kamil Hanak

---
Odchozí zpráva neobsahuje viry.
Zkontrolováno antivirovým systémem AVG (http://www.grisoft.cz).
Verze: 6.0.394 / Virová báze: 224 - datum vydání: 3.10.2002


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Error while closing HTML::Embperl::DOC::_2::OUT:

2003-01-28 Thread Kamil Hanak
Hi All,

I get following error in my embperl.log file on every request.

--
[21949]CUP:  Error while closing HTML::Embperl::DOC::_2::OUT: Can't locate
object method "CLOSE" via package "HTML::Embperl::Out" at
/usr/lib/perl5/site_perl/5.8.0/i586-linux-thread-multi/HTML/Embperl.pm line
1448.

[21949]CUP:  Error while closing HTML::Embperl::DOC::_2::LOG: Can't locate
object method "CLOSE" via package "HTML::Embperl::Log" at
/usr/lib/perl5/site_perl/5.8.0/i586-linux-thread-multi/HTML/Embperl.pm line
1448.
--

Embperl works well but these messages are annoying.
I've alredy red reply
(http://www.ecos.de/~mailarc/embperl/2002-12/msg00075.html) to request from
Rajesh Kumar Mallah but it isn't my case. My page is very simple and don't
use any reserved words.

### file: base.epl ###

[- Execute('*'); -]

### file: index.phtml ###





[+ "Hello" +]



###

I use Embperl 1.3.5, Apache/1.3.26, mod_perl/1.27, Perl 5.8.0, (Linux/SuSE)

Regards
Kamil Hanak

---
Odchozí zpráva neobsahuje viry.
Zkontrolováno antivirovým systémem AVG (http://www.grisoft.cz).
Verze: 6.0.394 / Virová báze: 224 - datum vydání: 3.10.2002


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: Error while closing HTML::Embperl::DOC::_2::OUT:

2003-01-28 Thread Gerald Richter
>
> I get following error in my embperl.log file on every request.
>
> --
> [21949]CUP:  Error while closing HTML::Embperl::DOC::_2::OUT: Can't locate
> object method "CLOSE" via package "HTML::Embperl::Out" at
> /usr/lib/perl5/site_perl/5.8.0/i586-linux-thread-multi/HTML/Embperl.pm
line
> 1448.
>

This is now fixed in the CVS version of 1.3.5 (you need to checkout with -r
ep1 option)

Gerald



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




second $escmode setting is ignored

2003-01-28 Thread David Hull
There seems to be a bug in Embperl 2.0b8 where the second and
subsequent attempts to set $escmode without any normal intervening
output are ignored.  Here's an example of the problem.

The following code:

  [!
sub hello () {
 local $escmode = 0;
 print OUT "hello\n";
}
  !]
  
  
[- hello(); -]
[- hello(); -]
  reset
[- hello(); -]
[- hello(); -]
  reset
[- hello(); hello(); -]
  
  

Produces the output:

  
  
hello
  hello
reset hello hello
reset hello hello
-- David Hull - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Quotes in hidden input values from %fdat not escaped correctly.

2003-01-28 Thread David Hull
When Embperl 2.0b8 outputs the value attribute for hidden input fields
from the %fdat hash, it doesn't escape the double quotes correctly,
and the %fdat value is not preserved.  The following Embperl code
demonstrates the problem.

The Embperl code:

  [-
$fdat{testfield} = 'Say "hi".';
  -]
  
  
  
  
  
  
  

produces:

  
  
  
  
  
  
  
-- 
David Hull

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: Quotes in hidden input values from %fdat not escaped correctly.

2003-01-28 Thread Gerald Richter


> When Embperl 2.0b8 outputs the value attribute for hidden input fields
> from the %fdat hash, it doesn't escape the double quotes correctly,
> and the %fdat value is not preserved.

The problem is already fixed in the CVS version of Embperl 2.0

Gerald



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: $fdat not working when using POST

2003-01-28 Thread Gerald Richter


> This is the setup of my web host.
>
> No mod_perl, I'm using embpcgi.pl. Apache 1.3.7 (I think) and Embperl
> 2.08b. I think these versions are pretty up-to-date.
>


I guess you mean Apache 1.3.27, 1.3.7 would be very old...

Could you try to add the following code to the top of you page, post data to
it and send me the output


[- use Data::Dumper ; -]
[+ Dumper (\%ENV, \%fdat) -]

Gerald

P.S. Please keep the discussion on the list


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: $fdat not working when using POST

2003-01-28 Thread Hoenie Luk
Hi Gerald,

I did what you suggested.

My page has a button named "enter" with value "ENTER WEB SITE". Using POST 
method, I pressed the button and here's the output: (notice $VAR2 at the 
end is empty).

$VAR1 = { 'QUERY_STRING' => '', 'SERVER_ADDR' => '64.71.178.180', 
'HTTP_ACCEPT_LANGUAGE' => 'en-us', 'SERVER_PROTOCOL' => 'HTTP/1.1', 
'HTTP_CONNECTION' => 'Keep-Alive', 'PATH_TRANSLATED' => 
'/home/hoenie/www/bio1a/index.htm', 'REMOTE_PORT' => 10577, 'HTTP_ACCEPT' 
=> 'image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, 
application/vnd.ms-excel, application/vnd.ms-powerpoint, 
application/msword, */*', 'HTTP_USER_AGENT' => 'Mozilla/4.0 (compatible; 
MSIE 6.0; Windows 98; Win 9x 4.90)', 'GATEWAY_INTERFACE' => 'CGI/1.1', 
'HTTP_HOST' => 'hoenie.com', 'PATH_INFO' => '/bio1a/index.htm', 
'SERVER_SOFTWARE' => 'Apache/1.3.26 (Unix) PHP/4.2.2 mod_gzip/1.3.19.1a', 
'SERVER_ADMIN' => '[EMAIL PROTECTED]', 'REMOTE_ADDR' => 
'67.120.106.145', 'SCRIPT_NAME' => '/cgi-bin/bio1a/embpcgi.pl', 
'HTTP_ACCEPT_ENCODING' => 'gzip, deflate', 'SERVER_NAME' => 'hoenie.com', 
'DOCUMENT_ROOT' => '/home/hoenie/www/', 'REQUEST_URI' => '/bio1a/', 
'REDIRECT_STATUS' => 200, 'REQUEST_METHOD' => 'GET', 'REDIRECT_URL' => 
'/bio1a/index.htm', 'SCRIPT_FILENAME' => 
'/home/hoenie/cgi-bin/bio1a/embpcgi.pl', 'PATH' => 
'/usr/local/bin:/usr/bin:/bin', 'SERVER_PORT' => 80 }; $VAR2 = {};

Just to try it out, I changed the method to GET: (notice $VAR2 
does have 'enter' in there).

$VAR1 = { 'QUERY_STRING' => 'enter=ENTER+WEB+SITE', 'SERVER_ADDR' => 
'64.71.178.180', 'HTTP_ACCEPT_LANGUAGE' => 'en-us', 'SERVER_PROTOCOL' => 
'HTTP/1.1', 'HTTP_CONNECTION' => 'Keep-Alive', 'HTTP_REFERER' => 
'http://hoenie.com/bio1a/index.htm', 'PATH_TRANSLATED' => 
'/home/hoenie/www/bio1a/index.htm', 'REMOTE_PORT' => 10555, 
'HTTP_USER_AGENT' => 'Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; Win 9x 
4.90)', 'HTTP_ACCEPT' => 'image/gif, image/x-xbitmap, image/jpeg, 
image/pjpeg, application/vnd.ms-excel, application/vnd.ms-powerpoint, 
application/msword, */*', 'GATEWAY_INTERFACE' => 'CGI/1.1', 'HTTP_HOST' => 
'hoenie.com', 'PATH_INFO' => '/bio1a/index.htm', 'SERVER_SOFTWARE' => 
'Apache/1.3.26 (Unix) PHP/4.2.2 mod_gzip/1.3.19.1a', 'SERVER_ADMIN' => 
'[EMAIL PROTECTED]', 'REMOTE_ADDR' => '67.120.106.145', 'SCRIPT_NAME' => 
'/cgi-bin/bio1a/embpcgi.pl', 'HTTP_ACCEPT_ENCODING' => 'gzip, deflate', 
'SERVER_NAME' => 'hoenie.com', 'DOCUMENT_ROOT' => '/home/hoenie/www/', 
'REQUEST_URI' => '/bio1a/index.htm?enter=ENTER+WEB+SITE', 'REDIRECT_STATUS' 
=> 200, 'REQUEST_METHOD' => 'GET', 'REDIRECT_URL' => '/bio1a/index.htm', 
'SCRIPT_FILENAME' => '/home/hoenie/cgi-bin/bio1a/embpcgi.pl', 'PATH' => 
'/usr/local/bin:/usr/bin:/bin', 'REDIRECT_QUERY_STRING' => 
'enter=ENTER+WEB+SITE', 'SERVER_PORT' => 80 }; $VAR2 = { 'enter' => 'ENTER 
WEB SITE' }; .

If you want to see it for yourself, go to 
http://hoenie.com/bio1a/index.htm. I leave it in POST method so you can see 
the behavior.

I hope you can figure out why. Thanks very much.

..Hoenie


At 05:39 AM 1/29/2003 +0100, you wrote:


> This is the setup of my web host.
>
> No mod_perl, I'm using embpcgi.pl. Apache 1.3.7 (I think) and Embperl
> 2.08b. I think these versions are pretty up-to-date.
>


I guess you mean Apache 1.3.27, 1.3.7 would be very old...

Could you try to add the following code to the top of you page, post data to
it and send me the output


[- use Data::Dumper ; -]
[+ Dumper (\%ENV, \%fdat) -]

Gerald

P.S. Please keep the discussion on the list



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]