Issue:Dpl 1.9.0 throws fatal error with MW 1.10.1
From FollowTheScore
Revision as of 06:53, 12 April 2013 by Capmo (talk | contribs) (Capmo moved page Issue:Issue:dpl 1.9.0 throws fatal error with MW 1.10.1 to Issue:Dpl 1.9.0 throws fatal error with MW 1.10.1)
| Description: | dpl 1.9.0 causes fatal error to be thrown with MW 1.10.1 |
| Extension / Version: | DPL / 1.9.0 |
| Type / Status: | Bug / open |
Problem
[23-Dec-2009 18:18:37] PHP Catchable fatal error: Object of class Title could not be converted to string in /..../mediawiki-1.10.1/includes/Revision.php on line 322
Pages render just fine with DPL 1.5.1. Here's the code in Revision.php around line 322
$this->mDeleted = isset( $row['deleted'] ) ? intval( $row['deleted'] ) : 0;
$this->mSize = isset( $row['len'] ) ? intval( $row['len'] ) : null;
// Enforce spacing trimming on supplied text
$this->mComment = isset( $row['comment'] ) ? trim( strval( $row['comment'] ) ) : null;
322 $this->mText = isset( $row['text'] ) ? rtrim( strval( $row['text'] ) ) : null;
$this->mTextRow = null;
$this->mTitle = null; # Load on demand if needed
$this->mCurrent = false;
# If we still have no len_size, see it we have the text to figure it out
if ( !$this->mSize )
$this->mSize = is_null($this->mText) ? null : strlen($this->mText);
} else {
throw new MWException( 'Revision constructor passed invalid row format.' );
}
}
This problem is present in DPL 1.8.0, and was not in DPL 1.7.9. --Sacolcor 18:20, 19 June 2010 (UTC)