Running Drupal 6. Suddenly having an issue with CKEditor butchering code for inserted images. See http://www.loveandtruthchurch.com/v2/ckeditortest For a test page I setup to duplicate the problem. When I insert an image, the preview is fine and the code looks good. If I save the page, the code is replaced with the garbage you see on the test page. It has worked fine for the past month, and suddenly today does not. Ideas? This happens regardless of the input format, however the default for the site is Full HTML without restriction.
I have uninstalled and reinstalled CKEditor, trying different versions as well, and I get the same result regardless. Never had this happen before, and this page has been up for a little over a month, still in dev.
It appears as though CKEditor is butchering the code for inserting images, and possibly other things. Here's a screenshot of the source code before saving:
http://i48.tinypic.com/34ngnyt.png
and after:
http://i45.tinypic.com/vf53p.png
Any help would be appreciated, because at this point, the only thing I know to do is rebuild the site in a subfolder :(
Comments
Comment #1
Lolaisabel commentedI have a drupal 5 install and have the same problem (since last friday)
PLEASE Help
Comment #2
Lolaisabel commentedI have found that the problem seams to be the double quotes, If I removed them then the image is shown.
But in HTML SCR= should have double quotes to define the image path. And we are not able to include ANY double quotes on the code for example youtube embedded.
Please help us to fix this bug.
Comment #3
craujax commentedI am having the same problem since last Friday, 4/27 but with Drupal 7.12 in at least five different and unrelated sites. The sites have a combination of CKEditor/IMCE/WYSIWYG/Media.
I have been troubleshooting and found out that past following solutions for this kind of issue don't change the problem:
. Editing filter to convert media to tags.
. Installing different editors.
. Commenting out "magic_quotes_gpc = Off" in .htaccess.
. Editing magic quotes to off in php.ini for incoming GET/POST/Cookie data.
The sites are mostly in HostMonster & BlueHost.
All modules are up to date.
PHP 5.2.17
PHP register globals Disabled
Database system MySQL, MariaDB, or equivalent is OK
Database system version 5.1.61-community-log
Cron & Caches are run in a regular basis.
There are other open issue tags concerning the same issue.
Here is the most recent: http://drupal.org/node/1548426
Thanks for the help!
Comment #4
craujax commentedFixed by editing php.ini but this time as suggested in this post: http://drupal.org/node/1549800
I can breathe again!
Claudia
Comment #5
myk.robinson commentedResolved. Thanks to all who posted, the php.ini fix worked for me as well. My site(s) are on Hostmonster too.