My website is currently running SilverStripe 3.1 on PHP 5.3.27. My web host recently migrated my site to a new server and since then, I have observed the following problem when attempting to insert images into pages.
Code that should look like this:
<img class="leftAlone" title="Cineraria" src="assets/Uploads/cineraria-senecio-cruentus.jpg" alt="cineraria">
Comes out looking like this:
<img class="\"leftAlone\"" title="\"Cineraria\"" src="\"assets/Uploads/cineraria-senecio-cruentus.jpg\"" alt="\"cineraria\"">
On the page, rather than an image I see the following text (using the above example):
\"cineraria\"
I cannot use the TinyMCE HTML editor to correct the tags. Pressing "Publish" will result in the above error in the pages.
I only installed SilverStripe last month as per this. At the time, my .htaccess contained this line:
<IfModule mod_php5.c>
php_value memory_limit 128M
</IfModule>
SetEnv PHPRC "/home/mysite/public_html/silverstripe/"
I have since had to remove this to prevent an Error 500:
SetEnv PHPRC "/home/mysite/public_html/silverstripe/"
My phpinfo() file shows that magic quotes are off but I wonder if this is related.
Can anyone help? Pages created before the upgrade are still fine.