Page MenuHomePhabricator

Call to a member function getPrefixedText() on a non-object in PrefixSearch.php
Closed, ResolvedPublic

Description

Seen on twn

[15:44:38] [rakkaus] [20-Oct-2014 14:44:30 UTC] PHP Fatal error: Call to a member function getPrefixedText() on a non-object in /www/translatewiki.net/w/includes/PrefixSearch.php on line 162
[15:50:08] [rakkaus] [20-Oct-2014 14:49:45 UTC] PHP Fatal error: Call to a member function getPrefixedText() on a non-object in /www/translatewiki.net/w/includes/PrefixSearch.php on line 162


Version: unspecified
Severity: normal

Details

Reference
bz72260

Event Timeline

bzimport raised the priority of this task from to Needs Triage.Nov 22 2014, 3:50 AM
bzimport added a project: MediaWiki-Search.
bzimport set Reference to bz72260.
Reedy created this task.Oct 20 2014, 3:20 PM
Reedy added a comment.Oct 20 2014, 3:44 PM
			$t = Title::newFromText( $search, $ns );
			$string = $t->getPrefixedText();

	 * @return Title|null Title or null on an error.

I guess newFromText() is returning null...

gerritadmin wrote:

Change 167603 had a related patch set uploaded by Manybubbles:
Fix exception while bubbling titles

https://gerrit.wikimedia.org/r/167603

gerritadmin wrote:

Change 167603 merged by jenkins-bot:
Fix exception while bubbling titles

https://gerrit.wikimedia.org/r/167603

Thanks, I'll reopen if seen again.

gerritadmin wrote:

Change 167982 had a related patch set uploaded by MaxSem:
Fix exception while bubbling titles

https://gerrit.wikimedia.org/r/167982

gerritadmin wrote:

Change 167982 merged by MaxSem:
Fix exception while bubbling titles

https://gerrit.wikimedia.org/r/167982

Restricted Application added a project: Discovery-Search. · View Herald TranscriptThu, Sep 26, 1:53 PM