Topic on Project:Support desk

White page after using search

11
192.176.230.1 (talkcontribs)

Hi there

Produkt Version MediaWiki 1.23.2 PHP 5.3.29 (cgi-fcgi) MySQL 5.1.73-cll

I have a problem with my wiki. when i use the Search function the page comes up blank / white. All other pages on the wiki works like a charm, it's only when i use the search it comes up White / Blanks. If i type something it the searchfield and press "Go to" then it also works.

Anyone know what this is and how i can fix it ?

Temptuousinsolence (talkcontribs)

Please add the following at the same spot of the LocalSettings.php

<?php
# Enable error reporting
error_reporting( E_ALL );
ini_set( 'display_errors', 1 );

and then try to use the search again.

192.176.230.1 (talkcontribs)

Hi. When i added that i can "use" the search, however. If i search for something that exists in the wiki already i get the following error

Fatal error: Call to undefined method MySQLSearchResultSet::getInfo() in /home/wiki/public_html/includes/specials/SpecialSearch.php on line 507

What is this ?

Temptuousinsolence (talkcontribs)

Did you change something recently? Did you make a software-upgrade or changed a version of a mediawiki extension?

192.176.230.1 (talkcontribs)

I uppgradera Mediawiki a long time ago but other than that i have made no changes at all other then creating new wikipages.

Temptuousinsolence (talkcontribs)

And in terms of the server environment? Did you run a MySQL-update?

192.176.230.1 (talkcontribs)

I have not but my provider might have. IF yes, is it fixable?

Florianschmidtwelzow (talkcontribs)

It seems, that you did something from in the upgrade process. Have you followed Upgrade

192.176.230.1 (talkcontribs)

Yes i did follow that whe i upgraded.

88.130.98.62 (talkcontribs)

The error is

Fatal error: Call to undefined method MySQLSearchResultSet::getInfo() in /home/wiki/public_html/includes/specials/SpecialSearch.php on line 507

This error does not tell me much. If you could provide a backtrace, that would help.

Temptuousinsolence (talkcontribs)

There are several things that you could do:

  • either you post the class or function that is responsible for it
  • or you upload the file to pastbin and add the link to it here.

Well .... I used egrep on all wikis that I run and it appears that there is a function in some versions in this file:

  • includes/search/SearchMySQL.php

Maybe you could post your method ... in order to make a comparison possible. Yet, somehow I feel it would be better for you to start the wiki from scratch.

Reply to "White page after using search"