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']);
Incoming search terms:
- Unknown error (8192): Function split() is deprecated in app\code\core\Mage\Core\Controller\Request\Http php on line 274
Filed under: Magento eCommerce Tips • XAMPP
Like this post? Subscribe to my RSS feed and get loads more!




Magento does not play well with PHP 5.3 – see http://www.magentocommerce.com/system-requirements
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