Page MenuHomePhabricator

Call to undefined method in AdvancedSearch.hooks.php
Closed, ResolvedPublic

Description

With both available versions of AdvancedSearch, I get a blank page with Special:Search.

The log reveals:
PHP Fatal error: Call to undefined method MediaWiki\\MediaWikiServices::getMimeAnalyzer() in ... AdvancedSearch.hooks.php line 37

The getMimeAnalyzer is afaik only available since 1.28, however the manual states that AdvancedSearch is available for 1.27+

I am using mediawiki version 1.27.1

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript

Thanks for reporting this.

the manual states that AdvancedSearch is available for 1.27+

Where to find "the manual"? Do you refer to https://www.mediawiki.org/wiki/Extension:AdvancedSearch or are there also other places?

I am using mediawiki version 1.27.1

Unrelated: In your own interest, please do not run old insecure versions but run up-to-date software.

Yes, "manual" is too much. Sorry for that. It was just written on the above mentioned website for the extension. I haven't seen any other references around.

Ok, I upgraded to 1.29.2.

While no more undefined methods appear, I observe another issue:

After initialising AdvancedSearch by adding wfLoadExtension( 'AdvancedSearch' ); in the LocalSettings.php, I can see for a glimpse some checkboxes on the screen and then there is immediately only one simple search bar visible:

AdvancedSearch-result.png (190×748 px, 13 KB)

After disabling AdvancedSearch, the usual look of the Search box is back:

Normal Search.png (337×971 px, 60 KB)

The version of AdvancedSearch that was registered in Special:Version is 0.1.0 (2da080b).

Lea_WMDE claimed this task.
Lea_WMDE subscribed.

closing this, since the first error seems to have disappeared with a more current version of mediawiki and the flashing is handled in T181924: New form is "flashed" over the previous selection form "Content pages Multimedia...."