https://bugzilla.wikimedia.org/show_bug.cgi?id=29662
Web browser: ---
Bug #: 29662
Summary: Fatal error: Call to a member function getText() on a
non-object in /var/www/mediawiki/includes/Article.php
on line 311
Product: MediaWiki
Version: 1.19-svn
Platform: All
OS/Version: All
Status: NEW
Severity: critical
Priority: Unprioritized
Component: History/Diffs
AssignedTo: [email protected]
ReportedBy: [email protected]
Classification: Unclassified
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;
--------------------------------------------------------------------------------
--
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l