Last modified: 2011-07-01 00:14:43 UTC
I'm running MW trunk (r91235) and every time I open a nonexistent page, add some content and click on "Show changes" I get: -------------------------------------------------------------------------------- Fatal error: Call to a member function getText() on a non-object in /var/www/mediawiki/includes/Article.php on line 311 -------------------------------------------------------------------------------- The line mentioned is this: http://svn.wikimedia.org/viewvc/mediawiki/trunk/phase3/includes/Article.php?annotate=91162&pathrev=91235#l309 -------------------------------------------------------------------------------- // @todo FIXME: Horrible, horrible! This content-loading interface just plain sucks. // We should instead work with the Revision object when we need it... $this->mContent = $revision->getText( Revision::FOR_THIS_USER ); // Loads if user is allowed -------------------------------------------------------------------------------- The problem doesn't seems to happen if the page already has some text. My LocalSettings.php contains only this (after the default contents): -------------------------------------------------------------------------------- #Per [[mw:Manual:How_to_debug]] error_reporting( E_ALL | E_STRICT ); ini_set( 'display_errors', 1 ); $wgShowExceptionDetails = true; $wgShowSQLErrors = true; $wgDebugDumpSql = true; --------------------------------------------------------------------------------
Possibly r91159
Fixed in r91238.