adodb.inc.php error workaround
After a great deal of searching I have managed to find a workaround to the problem that i was having with adodb.inc.php
The exact error message that was getting was the following.
Notice: Only variable references should be returned by reference in /www/h/htdocs/intranet/lib/adodb/adodb.inc.php on line 2797
The reason that this happens is because of the adodb library's.
Now the work around. Please backup your files. If this doesn't work in your case you may need to role back.
1.) Download and replace the adodb files with the most recent version. This is currently version 4.65 (This still has a bug). Download it from http://adodb.sourceforge.net
After you have installed this package you should now get the following error message.
Notice: Only variable references should be returned by reference in /www/h/htdocs/intranet/lib/adodb/adodb.inc.php on line 2847
2.) edit adodb.inc.php from the new package.
on line 2843 you should see the following.
function &FetchRow()
This needs to be editted so that the "&" is striped off. It is shown below including a few other lines of code so that you know exactly what to edit.
/**
* Fetch a row, returning false if no more rows.
* This is PEAR DB compat mode.
*
* @return false or array containing the current record
*/
function FetchRow()
{
if ($this->EOF) {
$false = false;
return $false;
}
$arr = $this->fields;
$this->_currentRow++;
if (!$this->_fetch()) $this->EOF = true;
return $arr;
}
Now you should find that the error message has gone away.
Thanks
Chris