Have successfully installed OpenChurch but when trying to edit existing content or add new content, backslashes are being added to the html code and other code is being stripped out when I save the content. So this:

<h3>Come Visit Us at United Family Fellowship!</h3>
<p>We are located at 3318 Maryland Avenue in Klamath Falls Oregon, just west of Altamont Drive. Come on down and see us! We're here!</p>
<p><img src="/sites/default/files/map.gif" alt="map to our location" /></p>
<p><small><a href="http://maps.google.com">View Larger Map</a></small></p>

ends up to be this when the page is saved:

<h3>Come Visit Us at United Family Fellowship!</h3>
<p>We are located at 3318 Maryland Avenue in Klamath Falls Oregon, just west of Altamont Drive. Come on down and see us! We\'re here!</p>
<p><img src="\" alt="\&quot;map" /></p>
<p><small><a href="\">View Larger Map</a></small></p>

Even existing images on the default installation are stripped out if I edit the content, such as losing the clock image from the Weekly Meeting Times box on the home page when I changed the meeting times.

I've made sure php_value magic_quotes_gpc 0 is in the .htaccess, and my hosting admin said to try php_flag magic_quotes_gpc 0 instead. Neither makes any difference. I've also tried changing 0 to OFF in both cases, with no results. In searching for this problem in Drupal, I've also created a php.ini file with php_value magic_quotes_gpc 0 on the root (no change) and in the cgi-bin directory (also no change).

I don't know if this is an OpenChurch issue, a Drupal issue or a server issue, but I am running other Drupal sites on the server with no problems. I'm running on PHP5.

Comments

CABass’s picture

Solved. I merely commented out the magic_quotes lines in .htaccess and the problem is fixed.

CABass’s picture

Status: Active » Fixed

(changing status to fixed)

drupalninja99’s picture

Ya you definitely dont want magic quotes turned on

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.