If you do not already have a php.ini file in your Drupal root follow these simple steps from Christopher to override the setting and turn off magic quotes...
If do not have a php.ini file in your Drupal roothttp://drupal.org/node/1437998#comment-5940550 Posted by Christopher Jam... http://drupal.org/user/495096 on *May 1, 2012 at 6:38am*
- Create a blank text file and add the line: magic_quotes_gpc = Off
- Save the text file as "php.ini" (without the double quotes)
- Upload the php.ini file to your Drupal root directory.
On Tue, May 1, 2012 at 12:17 PM, Anthony tony@tony-mac.com wrote:
Bluehost mail to me "Hi, It is a drupal problem in the fact that drupal was written to work on a centos environment and that a change from centos 5 to centos 6 results in the problems you experienced. Its a known bug with drupal and yes, we did make the upgrade, but it is still a drupal issue with the centos 6 environment.
You have two options to stop the escape characters from being inserted:
- Change to PHP 5.3 and update your Drupal installation to the most
recent version. This can be done in the PHP Config section of the cPanel.
Simply click on the radio button to the left of PHP 5.3 or PHP 5.3 Single (depending on which php.ini behavior you prefer) and then save the changes.
- You may also disable magic_quotes_gpc in the php.ini.
This is done by finding the php.ini that applies to your Drupal installation in the File Manager, and Editing it. Once inside, search (the ctrl+f find function is recommended) for the line magic_quotes_gpc=On and set this variable to magic_quotes_gpc=Off
Here is a thread on the drupal forums themselves that goes more into detail about the problem and some fixes: http://drupal.org/node/1437998 " Tony
On Tue, May 1, 2012 at 6:28 AM, Joel Willers joel.willers@sigler.comwrote:
I'm on BlueHost and I experienced the problem on an updated installation of D7 and D6. It was very annoying, and the fact that Drupal automatically turns it off really made it difficult to diagnose. Sadly, Drupal's attempts to turn it off failed, and I needed to edit the php.ini file in the server root to turn it off. Simple enough, but it sure was a pain to figure out. It's all better now, though.
Joel
-----Original Message----- From: support-bounces@drupal.org [mailto:support-bounces@drupal.org] On Behalf Of Earnie Boyd Sent: Tuesday, May 01, 2012 7:01 AM To: support@drupal.org Subject: Re: [support] Strange characters in source of block
On Mon, Apr 30, 2012 at 3:56 PM, Jamie Holly hovercrafter@earthlink.net wrote:
There was some chatter on Twitter about this happening on HostMonster suddenly on Friday. Apparently them and BlueHost are connected. I've got a couple client sites that haven't seen the problems yet, but it makes you wonder if they aren't rolling out some change.
I'm on BlueHost and don't see a problem yet. I've a D6 site that is aggregating RSS into nodes and they are usually filled with quote characters.
-- Earnie
-- https://sites.google.com/site/earnieboyd
[ Drupal support list | http://lists.drupal.org/ ]
[ Drupal support list | http://lists.drupal.org/ ]
--
*Anthony Stefan Maciejowski*
-- [ Drupal support list | http://lists.drupal.org/ ]