Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

header_out problem

Status
Not open for further replies.

JackTheRussel

Programmer
Aug 22, 2006
110
FI
Hi.

I have had Apache 2.0 and mod_perl1.

Now I upgraded to Apache 2.2.6 and mod_perl2.

I had html-pages where I had mason code.

Code:
$r->header_out("Refresh" => "5; url=$url");

This code worked fine in my previous system.
Now when run my application, I get this error:
Code:
Can't locate object method "header_out" via package"Apache::RequestRec"

Does someone information, how I could prevent this error?

 
Should you be using Apache2::Request ?

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[noevil]
Travis - Those who say it cannot be done are usually interrupted by someone else doing it; Give the wrong symptoms, get the wrong solutions;
 
Travs.

I have defined in my httpd.conf file to use Apache2::Reguest?
Code:
PerlModule Apache2::Request

I don't understand why error says: Apache::RequestRec ?
 
I don't use those modules so I truthfully don't know. You might try the apache forum if no one else here knows.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[noevil]
Travis - Those who say it cannot be done are usually interrupted by someone else doing it; Give the wrong symptoms, get the wrong solutions;
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top