cancel
Showing results for 
Search instead for 
Did you mean: 

Cannot redeclare Mage_Core_Controller_Request_Http::$_internallyForwarded

Cannot redeclare Mage_Core_Controller_Request_Http::$_internallyForwarded

this has just started happening to the the shopping cart.
I did an update recently with patches 1533 and 5345
nothing has been done yet if there are new security concerns,

I cannot get into the shop or get into the Admin, why does magneto do this when errors occur ?

v1.7

thanks for any advice Brian


Error: Cannot redeclare Mage_Core_Controller_Request_Http::$_internallyForwarded in /home/dafcco/domains/shop.dafc.co.uk/public_html/app/code/core/Mage/Core/Controller/Request/Http.php on line 84, referer: http://www.dafc.co.uk/story.php?t=LEGENDS_OF_ROCK&ID=8488 [Tue May 19 22:55:29 2015] [error] [client 66.249.78.128] PHP Notice: Undefined variable: compilerConfig in /home/dafcco/domains/shop.dafc.co.uk/public_html/index.php on line 48 [Tue May 19 22:55:29 2015] [error] [client 66.249.78.128] PHP Fatal error: Cannot redeclare Mage_Core_Controller_Request_Http::$_internallyForwarded in /home/dafcco/domains/shop.dafc.co.uk/public_html/app/code/core/Mage/Core/Controller/Request/Http.php on line 84 [Tue May 19 22:57:06 2015] [error] [client 81.174.249.151] PHP Notice: Undefined variable: compilerConfig in /home/dafcco/domains/shop.dafc.co.uk/public_html/index.php on line 48 [Tue May 19 22:57:06 2015] [error] [client 81.174.249.151] PHP Fatal error: Cannot redeclare Mage_Core_Controller_Request_Http::$_internallyForwarded in /home/dafcco/domains/shop.dafc.co.uk/public_html/app/code/core/Mage/Core/Controller/Request/Http.php on line 84

 

 

4 REPLIES 4

Re: Cannot redeclare Mage_Core_Controller_Request_Http::$_internallyForwarded

I commented out the line in Http.php line 84

protected $_internallyForwarded = false;

 

then I installed the patch software "yum install patch"

 

then run the pathc

./PATCH_SUPEE-5994_CE_1.6.0.0_v1-2015-05-15-04-34-46.sh

 

now the error is:

 

[Wed May 20 00:19:55 2015] [error] [client 188.165.199.38] client denied by server configuration: /home/dafcco/domains/shop.dafc.co.uk/public_html/app/etc/local.xml
[Wed May 20 00:29:53 2015] [error] [client 81.174.249.151] PHP Fatal error:  Class 'Mage_Core_Controller_Varien_Router_Admin' not found in /home/dafcco/domains/shop.dafc.co.uk/public_html/app/code/core/Mage/Core/Controller/Varien/Front.php on line 138

Re: Cannot redeclare Mage_Core_Controller_Request_Http::$_internallyForwarded

now the site has gone agaIn !

 

sigh

Re: Cannot redeclare Mage_Core_Controller_Request_Http::$_internallyForwarded

should the owner of the magento files be apache.apache ???

Re: Cannot redeclare Mage_Core_Controller_Request_Http::$_internallyForwarded

Hello @duncanbbd

 

Did you make sure, compiler was disabled prior to the patch installation on your Magento shop?

 

Was my answer helpful? You can accept it as a solution.
200+ Premium Magento 2 Extensions Need help? Hire Magento Developer