Magento still doesn't support PHP 5.3 (current default PHP env on XAMPP ), therefore this is what I had to do:
First be sure that you have the required setting:
http://www.magentocommerce.com/wiki/general/installing_on_windows_with_xampp_and_wamp
Change in file /lib/Varien/Object.php on line ~ 484
public function ___toString(array $arrAttributes = array(), $valueSeparator=',')
To this (change ___toString to __invoke
public function __invoke(array $arrAttributes = array(), $valueSeparator=',')
In file /app/code/core/Mage/Core/Controller/Request/Http.php on line ~ 274
$host = split(':', $_SERVER['HTTP_HOST']);
to
$host = explode(':', $_SERVER['HTTP_HOST']);
And all split() deprecated warnings change it with explode()
If you can’t login try this:
session_set_cookie_params(
$this->getCookie()->getLifetime(),
$this->getCookie()->getPath(),
$this->getCookie()->getDomain(),
$this->getCookie()->isSecure(),
$this->getCookie()->getHttponly()
);
session_set_cookie_params(
$this->getCookie()->getLifetime(),
$this->getCookie()->getPath()
//$this->getCookie()->getDomain(),
//$this->getCookie()->isSecure(),
//$this->getCookie()->getHttponly()
);
It would work. : If you want to add the sample data:
Download the “media” and SQL dump from here:
http://www.magentocommerce.com/download/noregister