Page 1 of 1

adodb MySQL errors

Posted: Sat Mar 17, 2007 4:10 am
by TimothyFoo
I am suddenly receiving adodb/mySQL on all of my sites.

I have contacted support at my hosting company and they tell me the servers have recently been upgraded to MySQL 5

Operating system  Linux
Apache version  1.3.34 (Unix)
PHP version  4.4.4
MySQL version  5.0.27-standard

I am receiving the following error on the front end:

Code: Select all

Notice: Only variable references should be returned by reference in /home/public_html/lib/adodb_lite/adodb.inc.php on line 136
I am receiving the same error and some others, when viewing the admin.

This seems to have happened after the upgrade to MySQL 5.

Any suggestions as to what I can do to fix this?

Re: adodb MySQL errors

Posted: Sat Mar 17, 2007 7:44 pm
by TimothyFoo
It turns out they also turned off register_globals, when they made the upgrade.

Setting "register_globals = On;" in the php.ini and adding a suPHP_ConfigPath to the .htaccess file fixed it as usual.

I really should have thought of that myself.

Re: adodb MySQL errors

Posted: Wed Jun 13, 2007 4:06 pm
by johnbmcdonald
Hi Guys,

I am getting this error on the page:
We are currently experiencing technical difficulties. We will try to fix the problem as soon as possible. Sorry for the inconvenience.

and then in email (after installing the error reporting module) I am getting:

Message: Only variable references should be returned by reference
File: /home/www/okctips.com/lib/Tree/Tree.php
Line: 213

So I tried the suggestion in this thread
Setting "register_globals = On;" in the php.ini and adding a suPHP_ConfigPath to the .htaccess file fixed it as usual.
register_globals = On  - by it self did not make a difference.
When I added a .htaccess file and added "suPHP_Config /sys/php4" to the file, I got the following:


Server error!

The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there was an error in a CGI script.

If you think this is a server error, please contact the webmaster.
Error 500
www.okctips.com
Wed Jun 13 18:57:30 2007
Apache/2.0.54 (Debian GNU/Linux) mod_auth_pgsql/2.0.2b1 PHP/4.3.10-18 mod_ssl/2.0.54 OpenSSL/0.9.7e

I expect I did not have the .htaccess file formatted correctly (but I am not sure that is the only problem) the only line I had in there was the line suPHP_Config /sys/php4

CMS Made Simple version 1.1rc2

If anyone has any ideas, I'd greatly apprecieate it.

Thanks
John