An error message popped up at top of page and now cannot log in. How do I fix this and what does it mean.
Notice: Only variable references should be returned by reference in /home/dharmaki/public_html/ecollege/lib/adodb/adodb.inc.php on line 2548
l taylor
It's always a good idea in these situations to search moodle.org. If you search for 'adodb.inc.php' you'll find the following thread:
http://moodle.org/mod/forum/discuss.php?d=27453
I had the same problem yesterday. My hosting company upgraded PHP to 4.4.1 (do you use Bluehost as well?), and the information in this thread seems to have provided the solution, which is:
Good luck!
It's always a good idea in these situations to search moodle.org. If you search for 'adodb.inc.php' you'll find the following thread:
http://moodle.org/mod/forum/discuss.php?d=27453
I had the same problem yesterday. My hosting company upgraded PHP to 4.4.1 (do you use Bluehost as well?), and the information in this thread seems to have provided the solution, which is:
- download the latest stable branch of moodle - or go to the CVS archive and download the adodb.inc.php file from there
- extract just the adodb.inc.php file from this package; you'll find it in moodle/lib/adodb/
- access your moodle directory on your server
- access the /lib/adodb/ directory
- rename the adodb.inc.php file to adodb.inc_old.php, just in case you need to revert back to the original
- upload the new adodb.inc.php file to the /lib/adodb/ directory
Good luck!
Thanks it worked like a charm!!
Bluehost offers the following fix, which worked for me:
*********
If you see this error, this is because the server you are on has been upgraded to PHP 4.4.1, and there is outdated code in Moodle that needs to be changed. In the file ~public_html/lib/adodb/adodb.inc.php line 2689:
return $results;
change to:
$result = &$results;
return $result;
This will correct the problem within Moodle's Coding. If you are unsure about how to do this, please let us know and we can make the change for you.
************
Hope this helps others.
*********
If you see this error, this is because the server you are on has been upgraded to PHP 4.4.1, and there is outdated code in Moodle that needs to be changed. In the file ~public_html/lib/adodb/adodb.inc.php line 2689:
return $results;
change to:
$result = &$results;
return $result;
This will correct the problem within Moodle's Coding. If you are unsure about how to do this, please let us know and we can make the change for you.
************
Hope this helps others.
Fantastic.
I copied the string from your message and pasted over the offending line and then went back to the site and refreshed the page - et voila! no error mesage, and all seems fine.
Thanks.
Dave (Another David Parry!)