Last modified: 2010-05-15 15:33:33 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T5536, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 3536 - Search Engine doesn't work: Only variables can be passed by reference
Search Engine doesn't work: Only variables can be passed by reference
Status: RESOLVED DUPLICATE of bug 3515
Product: MediaWiki
Classification: Unclassified
Search (Other open bugs)
1.4.x
PC Linux
: High normal (vote)
: ---
Assigned To: Nobody - You can work on this!
http://kernelwiki.ath.cx/wiki/index.p...
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2005-09-23 09:54 UTC by Andi Drebes
Modified: 2010-05-15 15:33 UTC (History)
0 users

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Andi Drebes 2005-09-23 09:54:32 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
Comment 1 River Tarnell 2005-09-23 09:55:28 UTC
this is PHP's fault.  don't use 5.1, it's not supported.  may be in the future...
Comment 2 Brion Vibber 2005-09-23 23:33:28 UTC

*** This bug has been marked as a duplicate of 3515 ***
Comment 3 Rob Church 2005-09-24 12:31:44 UTC
I get no problems under PHP 5 on my test machine, but that could be because I'm
using 6.1-cvs...:P
Comment 4 Andi Drebes 2005-09-24 13:22:35 UTC
I switched back to PHP 5.0.4. Now everything orks fine...

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links