Page MenuHomePhabricator

Fatal error: Call to a member function isMainPage() on a non-object in ApiMobileView.php on line 270
Closed, ResolvedPublic

Description

protected function isMainPage( $title ) {

		if ( $title->isRedirect() && $this->followRedirects ) {
			// Title::newFromRedirect is deprecated since 1.21, so go over WikiPage
			$wp = $this->makeWikiPage( $title );

			return $wp->getRedirectTarget()->isMainPage();
		} else {
			return $title->isMainPage();
		}

}

$wp->getRedirectTarget() can return null


Version: unspecified
Severity: normal

Details

Reference
bz67164

Event Timeline

bzimport raised the priority of this task from to Needs Triage.
bzimport set Reference to bz67164.
bzimport added a subscriber: Unknown Object (MLST).
Reedy created this task.Jun 26 2014, 8:20 PM

bingle-admin wrote:

Prioritization and scheduling of this bug is tracked on Trello card https://trello.com/c/KlFNspve