Page MenuHomePhabricator

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


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



Event Timeline

bzimport raised the priority of this task from to Needs Triage.Nov 22 2014, 3:27 AM
bzimport set Reference to bz67164.
bzimport added a subscriber: Unknown Object (MLST).

bingle-admin wrote:

Prioritization and scheduling of this bug is tracked on Trello card