First off, thanks for a great project. Once I get the latest version to work I will happily donate
My problem:
My editor doesnt seem to load, and I cant for the life of me find out what is wrong by searching this forum or the documentation, which I must say btw leaves a LOT to be desired. I have tried on 2 different servers and I get the same result (one of them has a JS error too):
http://wcms.xio.no/FCKeditor/_samples/default.html
I am using PHP and here is my invocation code:
$oFCKeditor = new FCKeditor('description'); $oFCKeditor->Value = 'test';
$oFCKeditor->Create();
And before you ask, my paths are all (include path and basebath) correct, as this has been triple checked. The editor resides in the recommended /FCKeditor/ folder on the root of the server.
It really should work at least in the sample directory, as I have done nothing but upload the files in the exact way specified. These are pretty standard webhosts I am using as well.
I have tested in the latest IE, Opera 7.23 (displays a normal textarea) and Firefox 1.0 to no avail.
Here is a link to PHP INFO if that is of interest:
http://wcms.xio.no/phpinfo.php
What could be wrong? I do have Java installed.
Tue, 02/08/2005 - 06:33
#1
RE: Not even samples work!
Anyone?
RE: Not even samples work!
RE: Not even samples work!
not sure if this will solve your problem, but I also had to do a little bit debugging to bring FCKeditor to life:
http://basislager.org/FCKeditor/_samples/default.html
What I did: take for example "sample01.php". Line 42 (or somewhere near there) should be
$sBasePath = $_SERVER['PATH_INFO'] ;
The variable "PATH_INFO" does not exist in the version of php installed on my server (4.1.2) and also on yours (checked it). I don't know if it's a bit of a dilletant solution, but "../../" as $sBasePath works for me.
RE: Not even samples work!
It's very odd that the code seems to load correctly, but still only shows a blank space instead of the editor. You would think it would show the standard textarea instead. I know this from looking at the page source:
<input type="hidden" id="description" name="description" value="So, the other one should display then... grrr"><input type="hidden" id="description___Config" value=""><iframe id="description___Frame" src="/FCKeditor/editor/fckeditor.html?InstanceName=description&Toolbar=Default" width="100%" height="200" frameborder="no" scrolling="no"></iframe>
RE: Not even samples work!
RE: Not even samples work!
Funny it should happen on two different servers though, allthough a similar thing has happened before when I transferred files with SmartFTP.
How embarrasing!
Oh well, no to work out how to fix the image browser...
RE: Not even samples work!
nice to hear that ) (you installed FCKeditor under a new address? - the old address still isn't working ...).
well, the image-browser: my file-upload is working, but I don't get any of the uploaded files displayed in the browser (would like it the same way as it is on the FCK demo-site). Any time I hit the button "search server ..." the frame that is supposed to display my images stays empty. As I'm using firefox (for me FCKeditor only works with this browser) I used the javascript-console for tracing the error. Any time I hit "search server ..." I got this error:
"Error: this.DOMDocument has no properties. Source:
http://mydomain/FCKeditor/editor/filema ... fault/js/f
ckxml.js"
I guess this has something to do with the problem but I have not yet been able to figure out what. There is another post in the support-forum connected with this issue:
https://sourceforge.net/tracker/index.p ... tid=543654
the post describes exactly the problem I have but until now no solution has been offered.
By the way: In order to bring my file-upload to life I had to uncomment line 115 in "fckconfig.js":
FCKConfig.ImageBrowserURL = FCKConfig.BasePath + "filemanager/browser/default/browser.html?Type=Image&Connector=connectors/php/connector.php" ;
this preference is set to the asp-connector in the original package of FCKeditor (
ok, gonna keep on diggin', but let me (and probably lots of others) know when you've been successful. thanx!
stefan
RE: Image browser
Yes, I got it to work actually!
I uncommented the line in the same way you did, then created a UserFiles dir in the root of my webserver and chmod'ed it to 777.
And yes, I have indeed set it up on a different server than the one I linked to earlier
RE: Image browser
RE: Not even samples work!
Sorry I cant be of more help, but all I did was as described in the post above. In addition to uploading all files over the old ones so that the missing files were put in place.
Will let you know if I come across something.