Loading...
 
Skip to main content

Architecture / Installation


Only variable references should be returned by reference in common.php

My tikiwiki site has been running fine until last week when it develop a problem and now displays the message:

Notice: Only variable references should be returned by reference in /hsphere/local/home/mspohr/iphealth.info/tikiwiki/lib/pear/DB/common.php on line 635

This is diaplayed multiple times at the start of each of my tikiwiki pages.

It seems to be a common problem (Google search for this reveals lots of web sites have the same error message).

I've tried to "repair" all of my db tables but didn't help.

Any clue on what's causing this... hard to track down since common.php seems to be a general routine that's call lots of times?

/Mark

Which tikiwiki release?
1.9.2 is supposed to be fixed for this problem
Otherwise, you need to downgrade your php release (< 4.4 i think)
sylvie


This is currently running 1.7.4 and I'm about to upgrade to 1.9.2 but I was worried that there was a db corrupted and I didn't want to upgrade if there was a db problem.

/Mark


I fixed a similar bug in my adodb.inc.php

Image
Copy to clipboard
2793 function &FetchRow() 2794 { 2795 if ($this->EOF) { 2796 $false = false; 2797 return $false; 2798 }


new code

Image
Copy to clipboard
2793 function FetchRow()




Of course, when necessary, you may have to change some more code here or there. In the case above I know enough php to see it will work, in your case i would try and see. The thing "by reference" has to do with the &, that's how far i can tell.




Hello,
I have tiki 1.4.1. Everything was fine until my host upgraded the php version to 4.4.2, since then I'm getting the following error:
Notice: Only variable references should be returned by reference in /usr/local/lib/php/DB/common.php on line 1146

I asked the host to downgrade the php version to 4.3, but they refused since the new version has some security bug fix.
So I tried to fix the issue myself. I found the common.php file at lib/pear/DB/, but the indicated line 1146 was a comment.

Image
Copy to clipboard
1143 /** 1144 * returns an errormessage, provides by the database 1145 * 1146 * @return mixed DB_Error or message 1147 * 1148 * @access public 1149 */ 1150 function errorNative() 1151 { 1152 return $this->raiseError(DB_ERROR_NOT_CAPABLE); 1153 }



So i don't know where to look for the error.
May be this is a wrong common.php file, but i didn't find any other files.
I would really appreciate any help in the matter.

thanks ahead,
legerb