This is because most of the files in the package erroneously begin with the following three characters (hexadecimal) EF BB BF!! This makes for example the image browser not to work (with PHP). I would say this is a major problem and it is present in both FCKeditor_2.4.1.zip and FCKeditor_2.4.1.tar.gz and I even checked version 2.4.0 - same thing. I ended up writing a little script that goes through all the files recursively and removes these three bytes from the beginning of each file if present (not all files are corrupt in this way, but most of them are). This should be fixed by the developers ASAP as this is IMHO a major problem with fckeditor. The files are corrupt in the distribution packages, this is a shame!
The real problem with this is that the files are saved in utf-8 format when they should be saved in utf-8 no BOM format.. that's why you get those errors. Im not sure why they decided to do this since it's pretty much screwed all new installs for us The way to fix it is by resaving those files in the same directories as your config files all as utf-8 no BOM and you'll be good to go.
For those without a hex editor, but who own Dreamweaver, open the docs listed above in DW, click Page Properties, and uncheck the unicode BOM checkbox. In my specific instance, I needed to change only three files:
the strange chars have nothing to do with a php bug, but a bad editor that isn't linux compatibel. /fckeditor$ grep '' * -ri | wc -l 188
there is still 188 files with the chars in them in release 2.4.2. so you still need to go edit them away before you have a clean release executing the following command will remove them all find . -type f -exec sed -i 's///' {} \;
if there are any files they are in twice, you will have to execute them once more and then they are gone.
It's strange that you say that this isn't related to a bug in PHP, but they have a bug open for this issue: http://bugs.php.net/bug.php?id=22108
Also if you check previous version of the editor you'll find that those characters were also all over the place, the problem with the 2.4.1 version was that the new packager added it wrongly to php files, but it isn't a problem at all to have js or xml files with the unicode BOM.
RE:  -> What is this?
RE:  -> What is this?
RE:  -> What is this?
RE:  -> What is this?
Hi,
tssajo -> would it be possible for you to share the little script you wrote or does anybody know how to do it...?
Thanks
/Jesper
RE:  -> What is this?
RE:  -> What is this?
Look i downloaded a hexadecimal editor (http://www.chmaas.handshake.de/delphi/f ... /xvi32.htm) and then clean the files that i needed, using php would be like 15 or 20 files, easy ^_^.
RE:  -> What is this?
RE:  -> What is this?
The real problem with this is that the files are saved in utf-8 format when they should be saved in utf-8 no BOM format.. that's why you get those errors. Im not sure why they decided to do this since it's pretty much screwed all new installs for us The way to fix it is by resaving those files in the same directories as your config files all as utf-8 no BOM and you'll be good to go.
RE:  -> What is this?
A great idea with the hex editor but instead of taking the 300+ files does anybody know which files that is necessary to change?
It would really be a great help to know that
Have a nice weekend......
RE:  -> What is this?
./fckeditor.php
./fckeditor_php4.php
./fckeditor_php5.php
./fckpackager.xml
./fckstyles.xml
./fcktemplates.xml
./fckconfig.js
./fckeditor.js (this one I dont know xD)
./editor/fckdebug.html
./editor/fckdialog.html
./editor/fckeditor.html
./editor/fckeditor.original.html
./editor/dialog/fck_image.html
./editor/dialog/fck_link.html
./editor/dialog/fck_image/*.*
./editor/dialog/fck_link/*.*
./editor/dialog/fck_smiley.html
I think that's all, you have to change just the things you need.
RE:  -> What is this?
That is just awesome I'm using PHP as well.
Just need to say that I removed the signs in:
./editor/filemanager/browser/default/connectors/php/*.*
After that - it now works completely as it should.
Enjoy the weekend and thanks for your input Augusto Ruibal
/Jesper
RE:  -> What is this?
./fckeditor.php
./fckeditor_php4.php
./fckeditor_php5.php
Actual mileage may vary.
RE:  -> What is this?
/fckeditor$ grep '' * -ri | wc -l
188
there is still 188 files with the chars in them in release 2.4.2. so you still need to go edit them away before you have a clean release executing the following command will remove them all find . -type f -exec sed -i 's///' {} \;
if there are any files they are in twice, you will have to execute them once more and then they are gone.
regards
Jesper
RE:  -> What is this?
It's strange that you say that this isn't related to a bug in PHP, but they have a bug open for this issue: http://bugs.php.net/bug.php?id=22108
Also if you check previous version of the editor you'll find that those characters were also all over the place, the problem with the 2.4.1 version was that the new packager added it wrongly to php files, but it isn't a problem at all to have js or xml files with the unicode BOM.