You are viewing a plain text version of this content. The canonical link for it is here.
Posted to embperl@perl.apache.org by Scott Chapman <sc...@mischko.com> on 2003/01/13 20:32:19 UTC
Execute is not sending request object to executed page
I'm attempting to execute a page and redirect the output to a file. This is
all that's in the page I'm loading:
[- Execute({inputfile=> 'page.epl', output => '/tmp/output.html' }); -]
page.epl begins with :
[$var $req ..... $]
[- $req = shift; -]
...
...
$req is not arriving where it can be unshifted apparently or the
embperl::object mechanism is not working with an Execute? (code in
constants.epl is not being executed). I can load page.epl normally in the
browser and it works great. I'm running Apache 1.3.27 on RedHat 7.3 using
Embperl 2.0B8, ModPerl 1.27.
What do I need to do to make this work? I thought the request object is passed
to all epl pages.
Scott
---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org
Re: Execute is not sending request object to executed page
Posted by Scott Chapman <sc...@mischko.com>.
I found the problem. It's all on my end. Sorry to bother you with this one!
Scott
On Tuesday 14 January 2003 11:59 am, Gerald Richter wrote:
> >I changed the top level file to just:
> >[- Execute ('page.epl' ); -]
> >
> >and I'm still getting errors in my database because the $req is not going
>
> to
>
> >page.epl.
>
> Strange. What do you get if you add a
>
> [+ $_[0] +]
>
> to page.epl _before_ the shift?
>
> Does it change anything if you remove the [$ var $req $] ?
>
> Gerald
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
> For additional commands, e-mail: embperl-help@perl.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org
Re: Execute is not sending request object to executed page
Posted by Scott Chapman <sc...@mischko.com>.
I made it like this:
[$ var $rec $req %qdat %ssdat %srdat @set $set $names %db $key $allow_update
$allow_demolinks @values $creator $datetime $eventcode $user_id $info
$sth_eventlog $review_type $review_os $recurring_total $]
[+ $_[0] +]
[- $req = shift; -]
[-
and I still got the error.
When I open page.epl directly (the top of it's showing above), it works fine
and I get this where the $_[0] is at:
Embperl::__6=HASH(0x85b238c)
I then removed the entire [$ var ....$] line and it gave the same error when
executed and it loads directly just fine, chainging the number of the hash
reference.
Scott
On Tuesday 14 January 2003 11:59 am, Gerald Richter wrote:
> >I changed the top level file to just:
> >[- Execute ('page.epl' ); -]
> >
> >and I'm still getting errors in my database because the $req is not going
>
> to
>
> >page.epl.
>
> Strange. What do you get if you add a
>
> [+ $_[0] +]
>
> to page.epl _before_ the shift?
>
> Does it change anything if you remove the [$ var $req $] ?
>
> Gerald
---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org
Re: Execute is not sending request object to executed page
Posted by Gerald Richter <ri...@ecos.de>.
>I changed the top level file to just:
>[- Execute ('page.epl' ); -]
>
>and I'm still getting errors in my database because the $req is not going
to
>page.epl.
Strange. What do you get if you add a
[+ $_[0] +]
to page.epl _before_ the shift?
Does it change anything if you remove the [$ var $req $] ?
Gerald
---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org
Re: Execute is not sending request object to executed page
Posted by Scott Chapman <sc...@mischko.com>.
I changed the top level file to just:
[- Execute ('page.epl' ); -]
and I'm still getting errors in my database because the $req is not going to
page.epl.
Scott
On Tuesday 14 January 2003 07:16 am, Gerald Richter wrote:
> >I'm attempting to execute a page and redirect the output to a file. This
> > is all that's in the page I'm loading:
> >[- Execute({inputfile=> 'page.epl', output => '/tmp/output.html' }); -]
>
> Not quite sure if this is the problem, but it must be outputfile instead of
> output
>
> Gerald
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
> For additional commands, e-mail: embperl-help@perl.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org
Re: Execute is not sending request object to executed page
Posted by Gerald Richter <ri...@ecos.de>.
>I'm attempting to execute a page and redirect the output to a file. This is
>all that's in the page I'm loading:
>[- Execute({inputfile=> 'page.epl', output => '/tmp/output.html' }); -]
Not quite sure if this is the problem, but it must be outputfile instead of
output
Gerald
---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org