Loading...
 
Skip to main content

Custom Share Module 0.1dev

Features / Usability

Features / Usability


prob for admin in lib/adodb/adodb.inc.php

posts: 17 United Kingdom

After maybe 6 months with all running well (+/-) today an error appears on the top of each page - but only for me, as admin:

Notice: Only variable references should be returned by reference in lib/adodb/adodb.inc.php on line 2797

I've never modded the file, which still reads:

/**
* 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;

If anyone can advise me as to what may have gone wrong and how I may tackle this, I would most appreciate it.

Cheers!
John

Later: now resolved using this advice from the forum -

''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.''

There are no comments at this time.

Upcoming Events

1)  15 Aug 2024 14:00 GMT-0000
Tiki Roundtable Meeting
2)  19 Sep 2024 14:00 GMT-0000
Tiki Roundtable Meeting
3) 
Tiki birthday
4)  17 Oct 2024 14:00 GMT-0000
Tiki Roundtable Meeting
5)  21 Nov 2024 14:00 GMT-0000
Tiki Roundtable Meeting
6)  19 Dec 2024 14:00 GMT-0000
Tiki Roundtable Meeting