I have upgraded today to php 5.3.1, and obviously, issues started to arise. I have a customer using Magento, so he got the error below, when accessing his store:
Fatal error: Method Varien_Object::__tostring() cannot take arguments in /magento/lib/Varien/Object.php
Quick fix actually:
File: /lib/Varien/Object.php (Line 484)
Change from:
public function ___toString(array $arrAttributes = array(), $valueSeparator=’,’)
to:
public function __invoke(array $arrAttributes = array(), $valueSeparator=’,’)
AND
File /app/code/core/Mage/Core/Controller/Request/Http.php (Line 199)
Change from:
$host = split(’:’, $_SERVER['HTTP_HOST']);
to:
$host = explode(’:’, $_SERVER['HTTP_HOST']);
And there you go. Make sure you make both mods, otherwise it will not work.
Tags: Admin Side, magento not working, php 5.3, php error


0 Responses
Stay in touch with the conversation, subscribe to the RSS feed for comments on this post.