Jump to:

5512 Posts in 1732 Topics by 1218 members

Customising the CMS

SilverStripe Forums » Customising the CMS » Help: Image elements contain \"

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Page: 1
Go to End
Author Topic: 424 Views
  • AdamDimech
    Avatar
    Community Member
    4 Posts

    Help: Image elements contain \" Link to this post

    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="\&quot;leftAlone\&quot;" title="\&quot;Cineraria\&quot;" src="\&quot;assets/Uploads/cineraria-senecio-cruentus.jpg\&quot;" alt="\&quot;cineraria\&quot;">

    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.

  • AdamDimech
    Avatar
    Community Member
    4 Posts

    Re: Help: Image elements contain \&quot; Link to this post

    I eventually managed to figure out this problem.

    The solution is available on my website.

    424 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.