Gadget Reviews, Tech Tips, Computer Optimization, Tech News, Vista Tweak, Software Tricks, Blogging Tips, Downloads


(Fix Almost all errors and Speed up PC Performance up to 300%)

Cannot Install Magento Using PHP 5.3

Fatal error: Method Varien_Object::__tostring() cannot take arguments in /magento/lib/Varien/Object.php

You will see this error when installing Magento using the latest version of PHP 5.3

There is a quick workaround for this bug. Follow the instruction below.

Edit 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=’,')

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

Popularity: 1%

Please Share and Bookmark :)
  • StumbleUpon
  • del.icio.us
  • Technorati
  • Reddit
  • BlinkList
  • Facebook
  • Mixx
  • Twitter

Triple Your PC Performance with Perfect Optimizer!


Leave a Reply

You must be logged in to post a comment.


Highly Recommended