Topic on Project:Support desk

Error when trying to "Edit" wiki

28 (talkcontribs)

MediaWiki - 1.15.4...PHP - 5.3.10...MySQL - 5.1.34

When I click on the "Edit" tab I get this error

Detected bug in an extension! Hook FCKeditor_MediaWiki::onCustomEditor failed to return a value; should return true to continue hook processing or false to abort.


  1. 0 C:\Inetpub\wwwroot\mediawiki\includes\Wiki.php(502): wfRunHooks('CustomEditor', Array)
  2. 1 C:\Inetpub\wwwroot\mediawiki\includes\Wiki.php(63): MediaWiki->performAction(Object(OutputPage), Object(Article), Object(Title), Object(User), Object(WebRequest))
  3. 2 C:\Inetpub\wwwroot\mediawiki\index.php(116): MediaWiki->initialize(Object(Title), Object(Article), Object(OutputPage), Object(User), Object(WebRequest))
  4. 3 {main}

I did a lot of research and it said it was because of PHP 5.3...I tried installing an older version and a newer version and the website would come up...I also tried a fix by editing the fckeditor.body.php file but that fix just broke the page...I also read how "FCKEditor" is old and "CKEditor" is the newer editor but I have no clue how to go from "FCKEditor" to "CKEditor"...I would appreciate any help...wheather it be a way to fix the "FCKEditor" or a step by step way to upgrade from "FCKEditor" to "CKEditor"...Thanks in advance (talkcontribs)
      • CORRECTION---When I tried to install the older and newer version of PHP...the website "WOULDN"T" come up...
Jasper Deng (talkcontribs)

Ugh. PHP plays pretty bad on Windows when being reinstalled. Do you have any extensions installed? (talkcontribs)

Thanks for the quick are the extensions I have installed

[PHP_MYSQL] extension=php_mysql.dll [PHP_MYSQLI] extension=php_mysqli.dll [PHP_OPENSSL] extension=php_openssl.dll [PHP_PGSQL] extension=php_pgsql.dll

Jasper Deng (talkcontribs) (talkcontribs)

Where do I find that info?

Jasper Deng (talkcontribs)

Special:Version, or if you can't access that, the names of the folders inside C:/inetpub/wwwroot/mediawiki/extensions. (talkcontribs)

The folders inside the extensions folder are Category Tree, FCKeditor, and SelectCategory

Jasper Deng (talkcontribs)

That means you should go in to your LocalSettings.php and remove "require_once("$IP/extensions/FCKeditor.php");" (talkcontribs)

Ok...I did that...what's it says "The website cannot display the page"

Jasper Deng (talkcontribs)

Did I mention that you could not edit that file with Notepad? (talkcontribs)

I used "wordpad"...

Jasper Deng (talkcontribs)

Probably not the best decision for PHP files... (talkcontribs)

what should I use? (talkcontribs)

I did some research and found a program called "Crimson Editor"...I used that and got the same result

Jasper Deng (talkcontribs)

I use Notepad++; the damage to your LocalSettings.php is likely to be permanent :( (talkcontribs)

I make a copy of the file before editing it each each time I am editing the original file (talkcontribs)

Is there any way I can tell it to use "CKEditor" instead of "FCKEditor...if there is I will need to know exactly how to do it...Thanks

Jasper Deng (talkcontribs)

Commenting out FCKEditor was what I was suggesting... (talkcontribs)

If I comment out "FCKEditor" what editor is the site going to use? there isn't another editor installed on the server

Jasper Deng (talkcontribs)

It's an extension, and therefore MediaWiki should be able to do without it. (talkcontribs)

Media wiki works's when I click on the "Edit" botton which calls for the editor...I'm trying to get it to use another editor

Jasper Deng (talkcontribs)

I mean, this extension is only for MediaWiki's editing, but it's still an extension that I believe you can uninstall.

You can also try upgrading to a newer version of MediaWiki. (talkcontribs)

I think I will try that...Do I have to know the database password to MySQL cause no one here seems to know it...I just started 2 weeks ago and this was the first thing that got thrown at me...They haven't had to log into this site in over 2 years because it was never broke...I will snap shot this server and try to upgrade mediawiki on Monday...I might have some questions through out the install...Thanks a lot for all your help...I really appreciate it...have a good weekend

Bawolff (talkcontribs)

Note, editing with notepad will only add a BOM, which will just give a warning (The famous headers already sent - which is annoying and a pain, and mildly break some things), but it won't kill your site. If your wiki is down, its due to some other reason than editing LocalSettings.php with notepad.

FCKeditor is a poorly maintained extension that never worked well in the first place (That is just my own humble opinion though), but is probably broken on newer mediawiki .

Jasper Deng (talkcontribs)

Hhm, it once completely broke my first try at installing MediaWiki, but that was with like version 1.16.

Bawolff (talkcontribs)

Hmm, actually now that i think about it, its possible that the BOM in localsettings.php could prevent OutputHandler from sending the gzip header, which would totally bork things.

Reply to "Error when trying to "Edit" wiki"