Troubleshooting
From MediaWiki+FCKeditor
[edit] Editor doesn't show up in my skin
Q: In monobook FCKeditor works fine, but as soon as I switch to my custom skin the edit "menu" switches back to the wikimedia default one.
A: Add this line to the skin template (usually located in /skins/skin_name.php where "skin_name" is the name of the skin you're using) right before the </head> tag:
<?php $this->html('headscripts') ?>
Q: My skin already have <?php $this->html('headscripts') ?> inside, but FCKeditor still doesn't show up.
A: Probably your skin is not fully compatible with your MediaWiki version. It is possible that some javascript error occurs when page is generated and because of that FCKeditor fails to load.
There is no easy workaround for this. You can try opening your site in Firefox with Firebug extension enabled and trace those errors.
[edit] Example 1
Q: mwSetupToolbar is not defined in index.php
This error seems to happen, when
<?php $this->html('headscripts') ?>
is above the code that includes wikibits.js:
<script type="<?php $this->text('jsmimetype') ?>" src="<?php $this->text('stylepath' ) ?>/common/wikibits.js"></script>
Try moving
<?php $this->html('headscripts') ?>
to the last line of <head> section (straight before </head> tag).
[edit] Example 2
Q: When using some old versions of rounded blue or fratman skin in MediaWiki 1.12, I got those errors:
- wgBreakFrames is not defined in wikibits.js
- mwEditButtons has no properties in wikibits.js
A: To fix this, I added this code to the skin template straight below <head> tag:
<script type="text/javascript"> var wgBreakFrames = false; var wgContentLanguage = false; </script>
[edit] Switching to Wikitext and back doesn't work
Q: oEditor.window.parent.sajax_do_call is not a function in fckplugin.js
A: make sure that in LocalSettings.php $wgUseAjax is set to true:
$wgUseAjax = true;
Q: wgServer is not defined in ajax.js
A: To fix this, I added this code to the skin template straight below <head> tag:
<script type="text/javascript"> var wgServer = "http://example.com/wiki"; var wgScriptPath = "/wiki"; var wgScript = wgScriptPath + "/index.php"; </script>
Where example.com is the name of your domain and /wiki is the path to your wiki.
(Addendum: For Monobook, you change this in skins/MonoBook.php)
Q: Error: Bad Request: unknown function wfSajaxWikiToHTML
A: This seems to happen, when $wgAjaxExport is defined and in my case set to array( ). To fix this, I added the following line to LocalSettings.php:
<strike> $wgAjaxExportList = array( 'wfSajaxWikiToHTML', 'wfSajaxSearchArticleFCKeditor' ); </strike>
This also fixes the search capabilities.
Never mind, if you need to set $wgAjaxExportList in LocalSettings.php, you just do this before including this extension.
[edit] Cannot access protected property SkinStandard::$skinname
Q: Fatal error: Cannot access protected property SkinStandard::$skinname in /home/login/public_html/extensions/FCKeditor/FCKeditor.body.php on line 166
A: This issue has been fixed. Download the latest release of FCKeditor extension.
[edit] Error loading "/fckeditor/fckstyles.xml
Q: URL requested: "/wiki/extensions/FCKeditor/fckstyles.xml"
server response:
status: 200
response text:
<?xml version .
A: Your server is probably not properly configured to serve XML documents. You may try to fix this by creating .htaccess file inside of the fckeditor directory with the following content:
AddType text/xml .xml
[edit] Extension:GOOGLEMAPS
I want to be able to use the GoogleMaps extension. Anyone have an idea on how to add this functionality?
- install the extension first (usually copy folder into /extensions, then add an include line to LocalSettings.php ... - see detailled instructions on extension page)
- the extension is not really FCKEditor's friendly, so add the "__ NORICHEDITOR __" magic word on the page (without the space between __ and the text), then save and edit again to see the GMaps editor (it adds an icon to the basic toolbar) ~ facyla
[edit] FireFox and Internet Explorer
The users on my site that use FF get the full toolbar (three lines) but my users that use MSIE only get the two bars that we see on this site. How do I fix this?
I have (while working on this issue) had the spell check (ASPELL) functioning so I KNOW it can work but it is not currently. Help, my MSIE users are jealous of my FF users!
18:29, 16 May 2008 (CEST)
- Correction/clarification: Spell check IS working in MSIE but not FF
Paste from word works in FF but not in MSIE! This is just crazy.
FIXED! I have to clear cache in both browsers in order to see any little change. Once that is done everything works fine!!!
[edit] Format lost from preload page
When I use Extension:NewArticleTemplates, the format from the preload page is lost. For example, the double equal sign "== text ==" in wikitext is considered normal equal sign in FCKEditor. What should I do to keep the format? Thank you so much!
[edit] Problem with disable rich editor
Q. Sometimes I can not disable FCKeditor. When I open edit page, FCKeditor is already opened, and ther is no way to disable it. But sometimes it work fine. What I did wrong? Please, help me! Thank you! You can see it [1](Sorry for my English)--78.111.187.86 20:14, 7 January 2009 (CET)
There is the same page, but:
- I am also having this problem. I have the following options set in - /extensions/FCKeditor/FCKeditor.php
$wgDefaultUserOptions['riched_use_toggle'] = 1;^M
$wgDefaultUserOptions['riched_start_disabled'] = 1;^M
$wgDefaultUserOptions['riched_use_popup'] = 1;^M
$wgDefaultUserOptions['riched_toggle_remember_state'] = 0;
Fix: delete the cookie for the site and reload the page, this worked for me
[edit] Conflict with Uniwiki Extensions
I had problems with my FCKEditor install -- I could not see the FCKEditor toolbar, even though I had followed all of the directions. It turned out that the CustomToolbar extension of Uniwiki, which I had recently installed, was causing the conflict. Once I removed the Uniwiki toolbar extension, FCK showed up. Hallelujah!
[edit] Version Page is empty
Q: After installation of FCKeditor on my Wiki the Version Page under Special Pages is empty. I use MediaWiki 1.13.2 Can anyone help me please?
[edit] Disabling FCKeditor For One Page
To disable FCKeditor for one page or article in a wiki, add this "magic word" to the beginning of the page:
__NORICHEDITOR__
Note that there are two (2) underscore characters at each end of the magic word. If you're in doubt, copy the word from this page and paste it into the one you're editing.
I have found it useful to put this magic word in some of my wiki's templates, as needed. Some people have said it might be better for me to configure FCKeditor to not activate for pages in the "Template" namespace, but I find it useful to have a WYSIWYG editor for some templates. It depends on the content of the template. --Lance E Sloan 17:43, 3 March 2009 (CET)
[edit] Text Align Fix - Justify Issue
fckplugin.js - hack/workaround
The issue happens because the text-align command is contained as follows:
<p style="text-align: center">Center Test</p>
In the MediaWiki plugin, it's replacing the <p> tags with a newline (\n) and then causing the childNodes (style='...') to be ignored.
Here is my simple hack...
line 324: replace with this
if ( basicElement && !htmlNode.style.cssText) // this ensures html tags with cssStyles arent messed with
line 760: add this to help cleanup the html
stringBuilder.push('\n'); // so all the <p> tags dont concatinate (ugly)
I've just started testing, but it looks ok and indents and aligns now work...
Good Luck! MediaWiki - User:Kenyu73
[edit] Making Rich Editing default randomly doesn't work
Following instructions in Tips & Tricks, I've edited ./extensions/FCKeditor/FCKeditor.php to
$wgDefaultUserOptions['riched_start_disabled'] = 0;
However, it's randomly still not loading the RTE by default, instead loading the usual MW edit box and just a "Open Rich editor in new window" link above it.
It varies user by user with regards to when it does this, and doesn't perform the same way for the same actions from the user either - eg. clicking on red links, using the edit tab on an existing page, etc. It has no consistency per page, either - performing the same action on the same page for the same user can have different results (RTE loads/doesn't load). I've not been able to identify what behaviour (if any) from the user 'fixes' it.
Any ideas?
ETA: Behaviour seems to be - After the user logs in, the RTE doesn't load until the user "opens rich text editor in new window" and OKs that window. After that process, the RTE will load on the edit page by default and that link to load in new window disappears.
- For anyone else with this problem, my theory is now that this 'problem' is only occuring for users who had already been created before this change was made - the change did not override their existing user preferences. I'm assuming therefore this problem won't exist for any users that subsequently sign up.
[edit] Fixing <math> changing to [[Image]]
In FCKeditorParser.body.php find
case 'math':
and comment out the next three lines.
Hello, I just tried this sollution. But it wasnt helping. The editor changes still changes the <math> to image.
1 + 1
<span class="texhtml" />Even on this wiki the <math> is lost.
Rinkel 15:51, 15 May 2009 (CEST)
<span class="texhtml" />
[edit] ^M in config files in UNIX Solaris server
How do we download a build that doesn't contain ^M at the end of every line.
