Last modified: 2009-08-26 17:42:27 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 T22407, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 20407 - page move over redirect may fail with "PHP Fatal error: Call to a member function timestamp() on a non-object in includes/Title.php on line 2860"
page move over redirect may fail with "PHP Fatal error: Call to a member func...
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
Redirects (Other open bugs)
1.16.x
PC Linux
: Normal enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
http://desciclopedia.org/wiki/Forum:P...
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2009-08-26 17:38 UTC by Carl Austin Bennett
Modified: 2009-08-26 17:42 UTC (History)
1 user (show)

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


Attachments

Description Carl Austin Bennett 2009-08-26 17:38:28 UTC
On page move over redirect, I'm seeing errors where the move may fail with "PHP Fatal error: Call to a member function timestamp() on a non-object in ...includes/Title.php on line 2860"

Title.php: function moveOverExistingRedirect( &$nt, $reason = '', $createRedirect = true ) invokes
  $rcts = $dbw->timestamp( $nt->getEarliestRevTime() );
without first checking that $dbw is a valid object.

I've tried substituting:

 $rcts = '';
 if ($dbw != null)
      $rcts = $dbw->timestamp( $nt->getEarliestRevTime() );

for this code, which allows the move operation to proceed. I'm running the MW 1.16alpha obtained from SVN on August 15th, 2009.
Comment 1 Alexandre Emsenhuber [IAlex] 2009-08-26 17:42:27 UTC
This was fixed in r55230.

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


Navigation
Links