Last modified: 2010-05-15 15:33:33 UTC
Hello! I installed the Wikimedia-Wiki two days ago on my Server. Everything works fine except the search-function. I get the following error: Fatal error: Only variables can be passed by reference in /srv/www/vhosts/kernelwiki.ath.cx/wiki/includes/SearchEngine.php on line 37 I tried to fix SearchEngine.php by changing the lines function searchTitle( $term ) { return $this->db->resultObject( $this->db->query( $this->getQuery( $this->filter( $term ), false ) )); } to function searchTitle( $term ) { $tmp = $this->db->query( $this->getQuery( $this->filter( $term ), false ) ); return $this->db->resultObject( $tmp ); } but that causes a lot of errors. I searched the web for the error message and I learned that this is a PHP 5 problem. On my local computer at home it works fine with PHP 5.0.4. But on the Server I use php 5.1.0 and it doesn't work. Regards, Andi Drebes
this is PHP's fault. don't use 5.1, it's not supported. may be in the future...
*** This bug has been marked as a duplicate of 3515 ***
I get no problems under PHP 5 on my test machine, but that could be because I'm using 6.1-cvs...:P
I switched back to PHP 5.0.4. Now everything orks fine...