Whenever I add FCKeditor to my LocalSettings.php file, the resulting page comes up without FCKeditor and is missing the edit box as well. I installed Firebug and loaded an edit page which resulted in the following output to Firebug's console:
~~~~~~~~~
syntax error
[Break on this error] <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML...TR/xhtml1/DTD/xhtml1-transitional.dtd">\n
FCKeditor is not defined
[Break on this error] var oFCKeditor = new FCKeditor( "wpTextbox1" ) ;
oFCKeditor is undefined
[Break on this error] oFCKeditor.Height = height ;
~~~~~~~~~~
The console states the syntax error is originating from fckeditor.js, line 1. I looked through an html syntax tutorial and it seems as though this doctype tag is fine. Not sure what firebug is complaining about.
The undefined call to FCKeditor is from line 82 of FCKeditor/FCKeditor.body.php. This baffles me since LocalSettings.php loads --> FCKeditor/FCKeditor.php, which loads --> FCKeditor/fckeditor/fckeditor.php, which loads --> fckeditor_php5.php. It looks like this last file declares the FCkeditor class and constructor. After all of this FCkeditor.php loads the offending file, FCkeditor.body.php. Why would the FCKeditor class be undefined if the php5 file was loaded just before it?
Note: to get the order of events listed above I switched lines 53 and 54 of FCKeditor/FCKeditor.php from this:
to this:
No other changes to source code were made.
I've never used php or fckeditor in my life, how do I go about troubleshooting this type of problem?? I've been working on this for a week and am willing to do what is needed to get things running. Please help.
I'm running:
MediaWiki 1.13.2
PHP 5.2.6 (apache2handler)
MySQL 5.0.56
~~~~~~~~~
syntax error
[Break on this error] <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML...TR/xhtml1/DTD/xhtml1-transitional.dtd">\n
FCKeditor is not defined
[Break on this error] var oFCKeditor = new FCKeditor( "wpTextbox1" ) ;
oFCKeditor is undefined
[Break on this error] oFCKeditor.Height = height ;
~~~~~~~~~~
The console states the syntax error is originating from fckeditor.js, line 1. I looked through an html syntax tutorial and it seems as though this doctype tag is fine. Not sure what firebug is complaining about.
The undefined call to FCKeditor is from line 82 of FCKeditor/FCKeditor.body.php. This baffles me since LocalSettings.php loads --> FCKeditor/FCKeditor.php, which loads --> FCKeditor/fckeditor/fckeditor.php, which loads --> fckeditor_php5.php. It looks like this last file declares the FCkeditor class and constructor. After all of this FCkeditor.php loads the offending file, FCkeditor.body.php. Why would the FCKeditor class be undefined if the php5 file was loaded just before it?
Note: to get the order of events listed above I switched lines 53 and 54 of FCKeditor/FCKeditor.php from this:
require_once dirname(__FILE__) . DIRECTORY_SEPARATOR . "FCKeditor.body.php"; require_once dirname(__FILE__) . DIRECTORY_SEPARATOR . "fckeditor" . DIRECTORY_SEPARATOR . "fckeditor.php";
to this:
require_once dirname(__FILE__) . DIRECTORY_SEPARATOR . "fckeditor" . DIRECTORY_SEPARATOR . "fckeditor.php"; require_once dirname(__FILE__) . DIRECTORY_SEPARATOR . "FCKeditor.body.php";
No other changes to source code were made.
I've never used php or fckeditor in my life, how do I go about troubleshooting this type of problem?? I've been working on this for a week and am willing to do what is needed to get things running. Please help.
I'm running:
MediaWiki 1.13.2
PHP 5.2.6 (apache2handler)
MySQL 5.0.56
Re: missing fckeditor and edit box in mediawiki
BTW, i followed all of the information and instructions listed here:
viewtopic.php?f=6&t=10908&start=0
Re: missing fckeditor and edit box in mediawiki
I think I misinterpreted the line I was looking at. It was not a php constructor that was being called but a javascript constructor. This now leads me to a new question:
Why would this line produce an error
if just a few lines above it (in the html source) there is this line:
fckeditor.js is where the javascript constructor is declared.
Here's the complete html file:
Re: missing fckeditor and edit box in mediawiki
Using the information you provided I can only tell you that you should watch for invalid formations in your XHTML, that's what firebug is really reporting.
In short, you should search the page for empty attribute values or mal-formed tags. I just recently fixed a problem of my own on a site I've built, I used a <script ... src=""></script> and firebug threw up the same error you are explaining. As far as the actual javascript causing the error, I would really have to investigate.
XHTML is great and all, but it's damn picky about formatting and tidiness, something to always watch out for.
If you provide me a link to your site, I can run through it and maybe find something else in the lines of Javascript or other formatting that your Doctype would consider invalid.
Re: missing fckeditor and edit box in mediawiki