Page 1 of 1

Ver 1.1 Bugs

PostPosted: Thu Jan 28, 2010 3:21 am
by my_alfin
I have install Alegrocart ver 1.1 on my local PC using XAMPP. But cannot run very well and error code like that:

Deprecated: Assigning the return value of new by reference is deprecated in C:\xampp\htdocs\upload\library\locator.php on line 77

Deprecated: Assigning the return value of new by reference is deprecated in C:\xampp\htdocs\upload\library\locator.php on line 77

Warning: Cannot modify header information - headers already sent by (output started at C:\xampp\htdocs\upload\library\locator.php:77) in C:\xampp\htdocs\upload\library\session\session.php on line 19

Warning: Cannot modify header information - headers already sent by (output started at C:\xampp\htdocs\upload\library\locator.php:77) in C:\xampp\htdocs\upload\library\language\language.php on line 56

Warning: Cannot modify header information - headers already sent by (output started at C:\xampp\htdocs\upload\library\locator.php:77) in C:\xampp\htdocs\upload\library\cart\currency.php on line 46

Whats the trouble? How can I fix it? Thanks..

Re: Ver 1.1 Bugs

PostPosted: Thu Jan 28, 2010 8:37 am
by Brent
I assume your XAMPP is using PHP 5.3 which I have not yet tested on.

If you can open the library/locator.php with notepad++

on line 77 find
Code: Select all
$database =& new Database($this);


Change to
Code: Select all
$database = new Database($this);


That should fix this error.
Edit
There are three files affected. Download is :
viewtopic.php?f=10&t=53&p=56#p56