Opened 12 years ago

Closed 12 years ago

#1295 closed Bug (fixed)

incompatibility with maintenance/rebuildImages.php --missing

Reported by: Daren Owned by:
Priority: Normal Milestone:
Component: Project : MediaWiki+FCKeditor Version:
Keywords: Cc:

Description

after adding fckeditor to mediawiki 1.11.0, if you attempt to run "maintenance/rebuildImages.php --missing" you will get the error "getNamespace() failed on a non-object in line 99 of ../extensions/FCKeditor/FCKeditor.body.php

My work around was to bail out of the function onParserAfterTidy in FCKeditor.body.php by adding a new line of "return true;" on line 94 (after the "global $wsUseTex, $wgUser, $wgTitle;" line)

Once the import was complete, I removed my "return true;" line.

This can only be reproduced if you have files in your images folder which are not indexed by the mediawiki database. (So a quick way to reproduce is to install a new wiki, tar your old images folder and untar it into the blank wiki.)

BTW, "maintenance/rebuildImages.php --missing --dry-run" has no issues.

Thanks, Daren

Change History (1)

comment:1 Changed 12 years ago by Wiktor Walc

Resolution: fixed
Status: newclosed

Fied with [950].

Does this simple change removed that error?

Note: See TracTickets for help on using tickets.
© 2003 – 2019 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy