Page MenuHomePhabricator

Compatibility Issues between FCKeditor and SemanticMediaWiki
Closed, ResolvedPublic

Description

Author: wesley.neo

Description:
I checked out the latest versions of MediaWiki, Semantic MediaWiki, Semantic Forms and FCKeditor from the SVN repositories today. MediaWiki has been updated to 1.14alpha. 1.14alpha causes a compatibility issue between Semantic MediaWiki and FCKeditor. Once the two extensions are installed, edit pages are not rendered and the following error is produced:

Catchable fatal error: Argument 2 passed to SMWParseData::stripMagicWords() must be an instance of Parser, instance of FCKeditorParser given, called in /extensions/SemanticMediaWiki/includes/SMW_ParserExtensions.php on line 30 and defined in /extensions/SemanticMediaWiki/includes/SMW_ParseData.php on line 31'

The version information for my instance is given below...
MediaWiki - 1.14alpha (r41831)
Semantic MediaWiki (Version 1.4b-SVN)
FCKeditor (Version fckeditor/mw-extension $Rev$ 2008)


Version: 1.14.x
Severity: major
OS: Linux
Platform: Other

Details

Reference
bz15916

Event Timeline

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

I have fixed that now in SVN, though I am surprised that FCKeditorParser is not a subclass of Parser. Maybe MediaWiki should have a ParserInterface or something to allow typing parameters. I will remove other "Parser" type hints in SMW as I encounter them. Note also that the current SVN version of SMW is in heavy development -- please use the latest stable release on production sites.