Loading...
 
Skip to main content

Architecture / Installation


adodb.inc.php on line 2797 Any ideas ?

I'm running TikiWiki v1.9.0 -Sirius, everything was running just fine yesterday and now today I am receiving the below error ; is this a hosting issue or a configuration problem? Thank you for any help .

This message is repeated roughly eighteen times of the page content .

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

> I'm running TikiWiki v1.9.0 -Sirius, everything was running just fine yesterday and now today I am receiving the below error ; is this a hosting issue or a configuration problem? Thank you for any help .
>
> This message is repeated roughly eighteen times of the page content .
>
> Notice: Only variable references should be returned by reference in /home/arbutusm/public_html/tikiwiki/lib/adodb/adodb.inc.php on line 2797
>
>

Looks like your host has upgraded PHP to 4.4 or above. You will need to upgrade to the latest TikiWiki 1.9.2 which contains fixes for most of these errors.

Cheers

Damian

> > I'm running TikiWiki v1.9.0 -Sirius, everything was running just fine yesterday and now today I am receiving the below error ; is this a hosting issue or a configuration problem? Thank you for any help .
> >
> > This message is repeated roughly eighteen times of the page content .
> >
> > Notice: Only variable references should be returned by reference in /home/arbutusm/public_html/tikiwiki/lib/adodb/adodb.inc.php on line 2797
> >
> >
>
> Looks like your host has upgraded PHP to 4.4 or above. You will need to upgrade to the latest TikiWiki 1.9.2 which contains fixes for most of these errors.
>
>

I'm having the same problem. My provider upgraded PHP to 4.4 and I got that error so I upgraded to 1.9.2 and I'm still getting it. Any ideas?

> > > I'm running TikiWiki v1.9.0 -Sirius, everything was running just fine yesterday and now today I am receiving the below error ; is this a hosting issue or a configuration problem? Thank you for any help .
> > >
> > > This message is repeated roughly eighteen times of the page content .
> > >
> > > Notice: Only variable references should be returned by reference in /home/arbutusm/public_html/tikiwiki/lib/adodb/adodb.inc.php on line 2797
> > >
> > >
> >
> > Looks like your host has upgraded PHP to 4.4 or above. You will need to upgrade to the latest TikiWiki 1.9.2 which contains fixes for most of these errors.
> >
> >
>
> I'm having the same problem. My provider upgraded PHP to 4.4 and I got that error so I upgraded to 1.9.2 and I'm still getting it. Any ideas?

OK, I was just on IRC with mose and he had me remove the "&" from line 2793 in adodb.inc.php (s/&FetchRow/FetchRow/) and that seems to have done the trick. Mose is my hero.

the below suggestion fixed the problem ; Thank you very much !


> OK, I was just on IRC with mose and he had me remove the "&" from line 2793 in adodb.inc.php (s/&FetchRow/FetchRow/) and that seems to have done the trick. Mose is my hero.
>


Try this,
replace from 2793 in lib/adobob/adodob.inc.php

function &FetchRow()
{
if ($this->EOF) {
$false = false;
return $false;
}
$arr = $this->fields;
$this->_currentRow++;
if (!$this->_fetch()) $this->EOF = true;
return $arr;
}

with
function FetchRow()
{
if ($this->EOF) return false;
$arr = $this->fields;
$this->_currentRow++;
if (!$this->_fetch()) $this->EOF = true;
return $arr;
}


thank you for your help ; I tried your suggestion and am now getting this error ;

Parse error: parse error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /home/arbutusm/public_html/tikiwiki/lib/adodb/adodb.inc.php on line 2805

Thanks for any help.



> Try this,
> replace from 2793 in lib/adobob/adodob.inc.php
>
> function &FetchRow()
> {
> if ($this->EOF) {
> $false = false;
> return $false;
> }
> $arr = $this->fields;
> $this->_currentRow++;
> if (!$this->_fetch()) $this->EOF = true;
> return $arr;
> }
>
> with
> function FetchRow()
> {
> if ($this->EOF) return false;
> $arr = $this->fields;
> $this->_currentRow++;
> if (!$this->_fetch()) $this->EOF = true;
> return $arr;
> }
>
>

Do check to see if you're using php 4.4 for this fix. If so I've a little thought, my garbled grammar might not have been as clear as it aught. To clarify you must first delete the phrase that starts at line 2793

> > function &FetchRow()
> > {
> > if ($this->EOF) {
> > $false = false;
> > return $false;
> > }
> > $arr = $this->fields;
> > $this->_currentRow++;
> > if (!$this->_fetch()) $this->EOF = true;
> > return $arr;
> > }

and then insert at that same point

> > function FetchRow()
> > {
> > if ($this->EOF) return false;
> > $arr = $this->fields;
> > $this->_currentRow++;
> > if (!$this->_fetch()) $this->EOF = true;
> > return $arr;
> > }

If that doesn't work, do post what line 2805 reads (with surrounding phrase if pos. And I'll have a ponder, results not guaranteed; I only learnt php during two days last week.
😬

>
> thank you for your help ; I tried your suggestion and am now getting this error ;
>
> Parse error: parse error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /home/arbutusm/public_html/tikiwiki/lib/adodb/adodb.inc.php on line 2805
>
> Thanks for any help.
>
>
>
> > Try this,
> > replace from 2793 in lib/adobob/adodob.inc.php
> >
> > function &FetchRow()
> > {
> > if ($this->EOF) {
> > $false = false;
> > return $false;
> > }
> > $arr = $this->fields;
> > $this->_currentRow++;
> > if (!$this->_fetch()) $this->EOF = true;
> > return $arr;
> > }
> >
> > with
> > function FetchRow()
> > {
> > if ($this->EOF) return false;
> > $arr = $this->fields;
> > $this->_currentRow++;
> > if (!$this->_fetch()) $this->EOF = true;
> > return $arr;
> > }
> >
> >