Page MenuHomePhabricator

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"
Closed, ResolvedPublic

Description

Author: carlb613

Description:
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.


Version: 1.16.x
Severity: enhancement
OS: Linux
Platform: PC
URL: http://desciclopedia.org/wiki/Forum:Problema_pra_mover_p%C3%A1ginas

Details

Reference
bz20407

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 10:47 PM
bzimport set Reference to bz20407.
bzimport added a subscriber: Unknown Object (MLST).