I just added a piece of content. In the standard TITLE text FIELD, I entered "Athene's Theory of Everything" ... when I saved the content, and viewed the page, it looked like "Athene\'s Theory of Everything". So, basically, every " and ' turns into \' and \".

This happened in every text field that I submitted content. And in textareas as well. This is making my site look like a mess. Does anyone know why this is happening, and how I can get it to stop?

You can see the page here...
http://ourshift.org/videos/athenes-theory-everything

I'm using Drupal 7.0, with WYSIWYG and TinyMCE.

Comments

jabbamonkey’s picture

Anyone out there? This is a huge issue that could cause me to move away from Drupal...

WorldFallz’s picture

Threatening to abandon drupal isn't going to prompt a response-- drupal isn't a commercial entity, no one cares, lol. It only makes you look petulant and will actually work against you getting a response.

As for your question, this isn't core behavior. The first thing to do is switch to a core theme and see if it persists.

jabbamonkey’s picture

If people start abandoning Drupal because of issues and constant troubleshooting, then the Drupal community will start dwindling. Without users and followers it would eventually die out, ESPECIALLY if it's not a commercial entity.

If you don't care, that's fine, then you don't need to help. The fact is, other people thinking about using Drupal may see this post, and say "This issue never got resolved? This is a simple thing that I'd need to work with my site - and if it isn't fixable, then I'll try another CMS engine."

I'll try Drupal core and see what the results are.

WorldFallz’s picture

On the contrary, I do care about helping users which is why I've done it thousands of times and continue to do it every day-- in spite of comments like this.

What I do mind is people behaving entitled, petulant, and snide (ie "help me now or i'm taking my toys and leaving, humpf") in ways they never would were they face to face with a volunteer helping them for free.

You want to try another cms go right ahead-- judging from drupal's recent explosive growth, I'm sure we'll manage just fine without entitled users whining in the forums. Besides, very few users that start out with this absurd attitude ever bother converting into productive community members so no great loss.

Users who need help are always welcomed-- tantrums are not.

EDIT:
And yes, I should have mentioned that i have noticed you already jumping in and helping other users-- which is highly commendable (and why I bothered to respond at all). It's just the '... or I'm going to stop using drupal' stuff gets really old, not to mention inappropriate. I tried to keep it light to avoid you going too far down that road, but it seems I hit a nerve.

jabbamonkey’s picture

I disabled all of my modules, changes my theme to the default, and edited my content ... still, the quotes were an issue.

jabbamonkey’s picture

Since this is happening with Drupal core, could this be an issue with my server? Some setting in PHP?

WorldFallz’s picture

not sure-- it doesn't sound like any php setting i know of. I just verified with a fresh d7.8 and it doesn't happen. Maybe try replacing your drupal files with a fresh copy and clear the cache.

jabbamonkey’s picture

Doing that right now. I'll check it out when it's upgraded...

jabbamonkey’s picture

Interesting...

See this image for an example and explanation of what's going on...
http://ourshift.org/images/wysiwyg_prob.jpg
See below for a full explanation...

On this content page (content type 'article')
http://ourshift.org/articles/tantra
The WYSIWYG editors doesn't even show up at all. It's just a text editor. All quotes (') are turned to slash-quote (\') - this happens in ANY text field (like the title), or a text area (like the body). Also, it looks like some javascript functions are mission (for the Disable Rich-Text link, and the Text Format pulldown)

This also happens on my content type 'events'.

However, When I edit this content (content type 'video').
http://ourshift.org/videos/athenes-theory-everything
The WYSIWYG editor shows up for the BODY COPY, and it works fine. The body copy text area does NOT insert/replace any slashes when the copy is submitted. However, the TITLE text field, and the SOURCE link text field, both change the ' to \'.

_complex_’s picture

Hello, I've just installed Drupal in an Intro to Drupal class, and see the same behavior:
* single quotes (plain apostrophes) and back slashes get escaped with back slashes. This is hilarious when you edit the page repeatedly, as the old backslashes get escaped again...
* the editor is plain, without any WYSIWYG toolbar, just as in jabbamonkey's 'how it is' image

My instructor suggested that my host's PHP version is low:
5.2.17 instead of 5.2.5

Drupal 7: PHP 5.2.5* or higher (5.3 recommended)

The hosted server:
Apache version 2.2.17
PHP version 5.2.17
MySQL version 5.0.92-community
Architecture x86_64
Operating system linux

Jabbamonkey: what version of PHP are you running? (forgive me if I missed it, but don't think you mentioned it)
Also -- was this one of your first posts, or the first post in which you used an apostrophe? Or had you done so before without seeing this problem?

The (changeable) test site is:
http://drupal.zarathud.org/

thx,
complex

jabbamonkey’s picture

And when I did the reinstall, I removed ALL the core files from my server, and just left the "sites" folder on there (with my modules and themes). I left the database alone. Then I uploaded 7.8.

Then, I just tried unchecking all of my modules (this was a pain, because I had to also delete some fields from certain field types in order to be ABLE to uncheck some modules). Then I did a CRON and also cleared the CACHE. Then I tried to edit a document.

Any field that submitted anything, would automatically change a quote to a slash-quote. This included text fields, text areas, etc. Very annoying. Fields like TITLE and TAG were converting quotes to slash quotes.

Then, I tried enabling JUST the WYSIWYG module, and editing an article. The moment I hit SAVE, I saw the body field change to HTML code (for the brief second it was processing the page), and saw that it made all the quotes into ' and then it saved the page. So the BODY field with the WYSIWYG editor worked fine ... the other fields did not.

So, I'm going to try and disable a few of the core modules ... however, I'm reluctant to do so. Since the WYSIWYG editor seems to work when it is the only mod running at this point, I can eventually figure out the conflict with another modules as I start to enable the other modules. However, I still need to figure out why all the other fields are submitting slashes infront of the quotes and double quotes.

WorldFallz’s picture

The issue with entity conversions while using a wysiwyg editor was discussed in another one of your threads-- I'm not sure what else I can add to what I already responded there.

The title and tags fields are a different story altogether. I'm not sure where else to go with this though-- all I can say is that I verified that this is not core behavior so something you've configured must be doing it.

Smenzo’s picture

I had a similar Drupal issue with extra slashes displayed with apostrophe and quotes.

I discovered my issue was caused by the server having PHP magic_quotes_gpc set to On.

Drupal PHP Magic_quotes_gpc issue with extra slashes in code.

You should check this setting on your server.