Troubleshooting

From MediaWiki+FCKeditor

Jump to: navigation, search

Contents

[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.

[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?

Personal tools