Page MenuHomePhabricator

php fatal error caused by customiseSearchResultTitle in hooks.php
Closed, ResolvedPublic

Description

Author: admin

Description:
Getting a fatal error from line 226 in hooks.php:
$text = $thread->subject();
saying: "PHP Fatal error: Call to a member function subject() on a non-object".

You can reproduce this error by going to http://k6.juniorwiki.org. Then do a search for "positiv". You will get a blank page. There is an article "Positiv (Fremdwort)", and when you search for that expression, you will get the result correctly.

What is extremely puzzling to me is that this behaviour doesn't show up with "negativ". When you search for that, everything is fine, although there is no article "negativ" but "Negativ (Fremdwort)" - as is the case with "positiv".

Running MW1.16, LiquidThreads 2.0-alpha


Version: unspecified
Severity: major

Details

Reference
bz25795

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 11:11 PM
bzimport set Reference to bz25795.

Resolved in r76373.

Thanks for reporting this bug. Do feel free to let me know if, after applying the fix, you continue to encounter the error.