Search This Blog

Monday 1 August 2011

Method Varien_Object::__tostring() cannot take arguments

When I try open the magento fodler to install it, I get the following error:

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


File: /lib/Varien/Object.php (Line 484)

Change from

public function ___toString(array $arrAttributes = array(), $valueSeparator=',')

To this

public function __invoke(array $arrAttributes = array(), $valueSeparator=',')

File /app/code/core/Mage/Core/Controller/Request/Http.php (Line 274)

Change from

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

To this

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

3 comments:

  1. heellooo
    i wants to install magento1.3.0.1 on local host,, i follow all the above step now i face new error,,
    Call to a member function getFrontNameByRoute() on a non-object in C:\xampp\htdocs\magento13\app\code\core\Mage\Core\Controller\Varien\Front.php on line 180

    plzz help me to install it thanks in adv

    ReplyDelete