Profile

Rabu, 29 September 2010

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

Fatal error: Method Varien_Object::__tostring() cannot take arguments in C:\wamp\www\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']);



from http://www.magentocommerce.com/boards/viewthread/50022/

Setting curl (magento)

On “xampp-win32-1.6.2-installer.exe” you will Have 4 php files to edit:

C:\xampp\apache\bin\php.ini
C:\xampp\php\php.ini
C:\xampp\php\php4\php.ini
C:\xampp\php\php4\php4.ini

Open the files one at a time With “Notepad++” Press Ctrl F And search\Find “cUrl”, You will See “;extension=php_curl.dll” all you have to do is REMOVE THE ” ; ” from all 4 files Make them:
extension=php_curl.dll And Restart The Xampp Server. Now Curl Support will be on.



From http://www.menyhart.net/blog/developer-stuff/enabling-curl-on-xampp/