Last modified: 2011-07-27 23:25:50 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 T30778, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 28778 - Fckeditor - error Fatal error: Call to undefined method StripState::addGeneral() when "formated" format is used
Fckeditor - error Fatal error: Call to undefined method StripState::addGenera...
Status: RESOLVED INVALID
Product: MediaWiki extensions
Classification: Unclassified
FCKeditor (Other open bugs)
unspecified
All Windows XP
: Lowest normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2011-05-02 10:09 UTC by virginie.dufet
Modified: 2011-07-27 23:25 UTC (History)
2 users (show)

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


Attachments

Description virginie.dufet 2011-05-02 10:09:07 UTC
OS : Windows XP (not tested on other os)
Mediawiki version : 1.16
Fckeditor version : mediawiki - Revision 87239: /trunk/extensions/FCKeditor
Mediawiki works on Xampp (php 5.3)

The following error happends if "formated" format is used in fckeditor :

Fatal error: Call to undefined method StripState::addGeneral() in C:\Admin\Applis_installees\xampp\htdocs\gwiki\extensions\FCKeditor\FCKeditorParser.body.php on line 249 :

Code :
========
if( !$stripcomments && $element == '!--' ) {
				$commentState->setPair( $marker, $output );
			} elseif ( $element == 'html' || $element == 'nowiki' ) {
				$state->addNoWiki( $output );
			} else {
				$state->addGeneral( $output );
			}
		}

Adding # in front of the line 249 solves the problem but it should certainly causes other bugs.

Thanks for your help
Comment 1 Rich 2011-05-26 12:33:43 UTC
I preferred this edit to line 249:

    if (method_exists( $state, 'addGeneral' )) $state->addGeneral( $output );
Comment 2 Chad H. 2011-07-27 23:25:50 UTC
Copied from bug 30075:
> Per this upstream bug http://dev.ckeditor.com/ticket/5602 
> 
> "FCKeditor and MediaWiki are no longer supported. Closing the ticked as invalid."

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


Navigation
Links