Page MenuHomePhabricator

EPEvent.php getFullText() fatal error when editing an article after enrolling
Closed, ResolvedPublic

Description

Repro:

  1. Enroll in a course on test2.wikipedia.org (perhaps because I'm also an instructor)
  2. Edit an article on test2.wikipedia.org (in my case, "Oahu")

Result: Boom:

"PHP fatal error in /usr/local/apache/common-local/php-1.20wmf6/extensions/EducationProgram/includes/rows/EPEvent.php line 38:
Call to a member function getFullText() on a non-object"


Version: unspecified
Severity: blocker

Details

Reference
bz37970

Event Timeline

bzimport raised the priority of this task from to High.Nov 22 2014, 12:29 AM
bzimport set Reference to bz37970.
		$title = $revision->getTitle();

		$info = array(
			'page' => $title->getFullText(),
			'comment' => $revision->getComment(),
			'minoredit' => $revision->isMinor(),
			'parent' => $revision->getParentId()
		);

$revision->getTitle() can and will return null, as per its documentation...