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

Wikimedia Bugzilla is closed!

Wikimedia has migrated from Bugzilla to Phabricator. Bug reports should be created and updated in Wikimedia Phabricator instead. Please create an account in Phabricator and add your Bugzilla email address to it.
Wikimedia Bugzilla is read-only. If you try to edit or create any bug report in Bugzilla you will be shown an intentional error message.
In order to access the Phabricator task corresponding to a Bugzilla report, just remove "static-" from its URL.
You could still run searches in Bugzilla or access your list of votes but bug reports will obviously not be up-to-date in Bugzilla.
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)
PC Linux
: High normal (vote)
: ---
Assigned To: Nobody - You can work on this!
Depends on:
  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: ---


Description Andi Drebes 2005-09-23 09:54:32 UTC
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/ 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 ) ));


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.

     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.