04
Feb

I got the following fatal error while trying to intall Magento 1.3.2.4 in XAMPP 1.7.3
Fatal error: Method Varien_Object::__tostring() cannot take arguments in C:\xampp\htdocs\magento\lib\Varien\Object.php on line 488

Follow the steps given below to fix this issue:-
1)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=’,')

2)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']);

Ajith
Posted by on 04 Feb 2010 by Ajith in Magento eCommerce Tips, XAMPP

2 Responses to “Magento, Fatal Error while installing”

  • Vikrant

    Was geting this error while adding new product or category:

    Unknown error (8192): Function split() is deprecated in /home/websitename/public_html/app/code/core/Mage/Catalog/Model/Resource/Eav/Mysql4/Url.php on line 505

    I tried the method above but was still getting the error. What i did is replaced split with explode in this file. Also changed it on line number 713 on same file and it worked like charm.. Hope it might be helpful for some

Add reply

*