Last modified: 2012-08-09 14:36:35 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 T39970, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 37970 - EPEvent.php getFullText() fatal error when editing an article after enrolling
EPEvent.php getFullText() fatal error when editing an article after enrolling
Status: RESOLVED FIXED
Product: MediaWiki extensions
Classification: Unclassified
EducationProgram (Other open bugs)
unspecified
All All
: High blocker (vote)
: ---
Assigned To: Jeroen De Dauw
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-06-26 19:43 UTC by Rob Lanphier
Modified: 2012-08-09 14:36 UTC (History)
0 users

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


Attachments

Description Rob Lanphier 2012-06-26 19:43:50 UTC
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"
Comment 1 Sam Reed (reedy) 2012-06-26 19:54:23 UTC
		$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...
Comment 2 Jeroen De Dauw 2012-06-26 20:33:00 UTC
https://gerrit.wikimedia.org/r/#/c/13059/

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


Navigation
Links