Hire a web Developer and Designer to upgrade and boost your online presence with cutting edge Technologies

Friday, June 22, 2012

magento 1.3 Fatal error: Method Varien_Object::__tostring() cannot take arguments in \lib\Varien\Object.php on line 488

When installing the Magento 1.3.2.4, you have got this error
Fatal error: Method Varien_Object::__tostring() cannot take arguments in D:\PamySoft\Study\Magento\Magento132\lib\Varien\Object.php on line 488
Solution to fix: 2 steps
Step 1)  At the file: <magento>/lib/Varien/Object.php (Line 484)
Change from:

public function __toString(array $arrAttributes = array(), $valueSeparator=',')
to:

public function __invoke(array $arrAttributes = array(), $valueSeparator=',')
Step 2) At the File <magento>/app/code/core/Mage/Core/Controller/Request/Http.php (Line 274)
Change from:

$host = split(':', $_SERVER['HTTP_HOST']);
to:

$host = explode(':', $_SERVER['HTTP_HOST']);
Checked at:  Magento 1.3.2.4

1 comment:

  1. After, the process being followed next error arose:
    Fatal error: Call to a member function getFrontNameByRoute() on a non-object in C:\wamp\www\magento1.3\app\code\core\Mage\Core\Controller\Varien\Front.php on line 180
    Provide me suggestions..

    ReplyDelete