http://www.512kbps.com
Warning: Cannot modify header information - headers already sent by (output started at /home/kbps/public_html/wp-includes/general-template.php:372) in /home/kbps/public_html/wp-includes/feed-rss2.php on line 8
katmai - Unplugged, Unmatched, Unleashed » php 5.3 http://www.512kbps.com FUBAR - Fucked Up Beyond Any Recognition Thu, 29 Jul 2010 13:21:29 +0000 en hourly 1 http://wordpress.org/?v=3.0 Magento not working on PHP 5.3 http://www.512kbps.com/2010/02/08/magento-not-working-on-php-5-3/ http://www.512kbps.com/2010/02/08/magento-not-working-on-php-5-3/#comments Mon, 08 Feb 2010 06:07:10 +0000 admin magento array varien arrattributes valueseparator http_host _server php http://www.512kbps.com/?p=2216 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: , , ,

Ar mai trebui sa citesti si ...

]]>
http://www.512kbps.com/2010/02/08/magento-not-working-on-php-5-3/feed/ 0