I have been using Zend Framework to power my applications for over two years.
Recently we set up a new web server and upgraded the version of Apache from
2.2.16 to 2.2.17. Now the application cannot seem to access $request.

One of the first things it tries to do is record the ip address the request
is coming from, and my code is as follows:

$Request = Zend_Controller_Front::getInstance()->getRequest();
$Ip = $Request->getServer('REMOTE_ADDR');

This is the error that shows in the php error log:

PHP Fatal error:  Call to a member function getServer() on a non-object.

This code works successfully on all of our servers, various versions of php,
etc. In order to resolve the problem we downgraded the apache version and
all was well.

Has anyone else seen something like this to give us a hint as to how we
might get the framework to work with this version of apache?


-- 
View this message in context: 
http://zend-framework-community.634137.n4.nabble.com/Apache-2-2-17-tp3328348p3328348.html
Sent from the Zend Framework mailing list archive at Nabble.com.

Reply via email to