I created a "Property Listing" content type and added a field with the full HTML text format to add image thumbnails and hyperlink them to the full size image. However, after I click save and go back to the content of the property listing, the images don't load. Upon going back to the edit feature, I see that there are extra "\" marks at the beginning and end of each tag and also in between some of the words in the property description. Every time I try to edit this and save it again, the system adds even more forward slashes. This issue is occurring at the following link: http://bizwiseconsulting.com/1410_annajeane_placentia_ca. Any help would be greatly appreciated!

Comments

vm’s picture

what field type are you using for the url to the image?

skelleyh’s picture

YES! The same thing is happening to me. It just started today, and the only changes I made involve Clean URLs, though backing out those changes did not fix this problem. Half the links in my site are hosed, as well as some forms: http://kelleyharrell.com/content/gift-dreamtime
I found record of this issue from 2009, though no fix.
Any insight? Thanks!

ar-jan’s picture

skelleyh’s picture

Funny, that. My host is Bluehost, as well. Thanks for posting this. How do I edit the php.ini file?
Thanks.

vm’s picture

starlightcosmo’s picture

I use hostmonster for my hosting. This happened to me last night when I went in for a routine update to one of my pages. Ended up messing with it for an hour on 3 different computers, trying to fix it. Just ended up with back slash armageddon. Came here and saw this post and after reading the comments changed the php.ini to turn off magic quotes. It didn't seem to work and I messed around with it for another hour and gave up - went to bed. Woke up this morning and checked on it again. Same problem. So I went into cpanel and started messing around. Until this morning my PHP version was set at 5.2 and my Drupal version was 7.2 (I think). So I upgraded Drupal to 7.4. Then updated PHP to 5.4. I really don't know what I'm doing, just trying stuff because I'm crazy like that. So I tried editing a test page again in the editor and BLAM! it worked. Magic quotes are still turned off in the php.ini and I'm leaving it that way. I suspect that maybe since it automagically updated and rewrote the php.ini when I went to version 5.4, that might have had something to do with it, but I really don't know. Maybe someone else would know better.

skelleyh’s picture

Check out this thread: http://drupal.org/node/1549800#comment-5931900

I copied the base php.ini to the subdirectory where the problem was, then edited that one to turn magic_quotes off. Others noted turning it off in one place, but I had to turn it off in two. Once I did that I could correct my code, save it, and it *stayed* correct.

gonz’s picture

Just today a client told me about his page not working after he made a small update. After inspecting the HTML I saw multiple "\"s

I created a new Page content type -> added simple HTML code for an image hosted on my server.

The images did not show up and they are littered with "\"s magic quotes.

Uggg- Turns out this client is on Bluehost.

I will review that thread above :(

gonz’s picture

Yup Bluehost was the culprit -> php.ini fixed this for me