magento2 icon indicating copy to clipboard operation
magento2 copied to clipboard

Strict Standards Error when accessing index.php

Open blitux opened this issue 14 years ago • 3 comments

Hello there,

I'm getting this error on PHP 5.3.10ubuntu3.4 when trying to access index.php after cloning the repository (2.0.0.0-dev33):

Strict standards: 
Declaration of Mage_Core_Controller_Request_Http::getBaseUrl() 
should be compatible with that of Zend_Controller_Request_Http::getBaseUrl() 
in /var/www/magento2/app/code/core/Mage/Core/Controller/Request/Http.php on line 36

blitux avatar Dec 02 '12 04:12 blitux

Hi @blitux,

This is probably because you have Zend Framework package, downloaded with PEAR.

Overall this is an issue with recent Magento autloader mechanism changes, where it gives priority to the PEAR packages first, rather than to the ones distributed with Magento. We expect to fix it soon.

Meanwhile, can you, please, confirm that you have ZF PEAR package?

zerkella avatar Dec 03 '12 19:12 zerkella

Hi @zerkella,

Yes, in fact, I have ZF installed, downloaded with pear. I'm using it with some addons to control Magento sites using the terminal.

Can I test magento2 changing the value of include_path variable on php.ini in the meantime? I don't want to uninstall ZF because I'm using it on some Magento projects (zf clear mage-core-cache, zf replace mage-core-config, etc. on terminal)

Thank you!

blitux avatar Dec 03 '12 21:12 blitux

Closing the thread due to lack of recent activity.

magento-team avatar Feb 19 '13 21:02 magento-team