Last modified: 2011-07-01 00:14:43 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 T31662, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 29662 - Fatal error: Call to a member function getText() on a non-object in /var/www/mediawiki/includes/Article.php on line 311
Fatal error: Call to a member function getText() on a non-object in /var/www/...
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
History/Diffs (Other open bugs)
1.20.x
All All
: Unprioritized critical (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2011-06-30 23:38 UTC by Helder
Modified: 2011-07-01 00:14 UTC (History)
1 user (show)

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


Attachments

Description Helder 2011-06-30 23:38:45 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;
--------------------------------------------------------------------------------
Comment 1 Sam Reed (reedy) 2011-06-30 23:41:41 UTC
Possibly r91159
Comment 2 Aaron Schulz 2011-07-01 00:14:43 UTC
Fixed in r91238.

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


Navigation
Links