Page 1 of 1

opendb error on XAMPP full or lite

PostPosted: 23. August 2010 05:57
by tfreeman
Dear all

I want to try Opendb(http://sourceforge.net/projects/opendb) with my windows 7 machine. I installed XAMPP lite. Installing XAMPP lite or full was ok. but I got the following errors when I ran that opendb application by typing in http://localhost/opendb/index.php.



Deprecated: Assigning the return value of new by reference is deprecated in C:\XAMPP\xampplite\htdocs\opendb\functions\theme.php on line 423
Deprecated: Assigning the return value of new by reference is deprecated in C:\XAMPP\xampplite\htdocs\opendb\functions\site_plugin.php on line 127
Deprecated: Assigning the return value of new by reference is deprecated in C:\XAMPP\xampplite\htdocs\opendb\functions\filecache.php on line 758
Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at C:\XAMPP\xampplite\htdocs\opendb\functions\theme.php:423) in C:\XAMPP\xampplite\htdocs\opendb\include\begin.inc.php on line 142
Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at C:\XAMPP\xampplite\htdocs\opendb\functions\theme.php:423) in C:\XAMPP\xampplite\htdocs\opendb\include\begin.inc.php on line 142
Warning: Cannot modify header information - headers already sent by (output started at C:\XAMPP\xampplite\htdocs\opendb\functions\theme.php:423) in C:\XAMPP\xampplite\htdocs\opendb\functions\http.php on line 73


with many thanks
Real

Re: opendb error on XAMPP full or lite

PostPosted: 23. August 2010 09:13
by glitzi85
Hi,

i remember that i got the same errors when i installed OpenDB the last time. It is not a problem of XAMPP, OpenDB is just poorly programmed. The solution is simple, open the three files (theme.php, site_plugin.php and filecache.php) in an editor (PSPad i can recommend) and scroll to the line noted in the error message. You will find something like this:
Code: Select all
 $cssParser =& new cssparser(FALSE);
(example from theme.php)
Simply replace the =& with = so it looks like this:
Code: Select all
 $cssParser = new cssparser(FALSE);

Then it should work. The warnings are just thrown, because of the previous errors. They will disappear automatically, if you resolve the errors.

glitzi