Last modified: 2010-11-09 03:58:23 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 T27795, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 25795 - php fatal error caused by customiseSearchResultTitle in hooks.php
php fatal error caused by customiseSearchResultTitle in hooks.php
Status: RESOLVED FIXED
Product: MediaWiki extensions
Classification: Unclassified
LiquidThreads (Other open bugs)
unspecified
All All
: Normal major (vote)
: ---
Assigned To: Andrew Garrett
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2010-11-05 13:13 UTC by admin
Modified: 2010-11-09 03:58 UTC (History)
2 users (show)

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


Attachments

Description admin 2010-11-05 13:13:41 UTC
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
Comment 1 Andrew Garrett 2010-11-09 03:58:23 UTC
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.

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


Navigation
Links