Apostrophe and WYSIWYG editing problem
5 posts by 2 authors in: Forums > CMS Builder
Last Post: May 5, 2010 (RSS)
By cnorthey - May 5, 2010
I am having a serious problem with a website I have developed. My client has recently updated a couple of pages, putting new next in one of the WYSIWYG text editor fields, however whenever this content is updated, a series of 5 backslashes appear next to any apostrophes.
In an attempt to fix this I cleared all text out and updated it, so it should have been a blank page. However it doesn't update, keeping the text and adding a new lot of backslashes. This has only started happening recently and I haven't touched any of the CMS builder files, so wondering what this may be?
The website URL where it's occuring is http://www.minimoko.com.au/ordering/
Thanks for your help
Re: [cnorthey] Apostrophe and WYSIWYG editing problem
By Dave - May 5, 2010
This is due to a php "feature" called magic_quotes: http://php.net/manual/en/security.magicquotes.php
The authors of PHP discourage the use of this feature but some hosts still turn it on.
If you upgrade to the latest CMSB (v2.04) it should fix it. We've added code to detect and disable that setting when it's present.
Hope that helps! Let me know if you have any more problems with that.
interactivetools.com
Re: [Dave] Apostrophe and WYSIWYG editing problem
By cnorthey - May 5, 2010
Thanks for the very speedy response. I will look in to updating now, however last time I updated a site using an older version of CMS builder I ran into some problems regarding the directories that were uploaded. I replaced all the old files under the csmAdmin directory with the new files, however I was told I shouldn't have only replaced a couple of folders/directories (I can't remember which ones). The upgrade instructions tell me to upload and replace the entire cmsAdmin folder, so I'm wondering if this is safe to do with the latest release before I go ahead?
Thanks again
Chris
Re: [cnorthey] Apostrophe and WYSIWYG editing problem
By Dave - May 5, 2010
yes, we've made it simpler. Just upload /cmsAdmin/.
But be sure to download a backup copy of you old /cmsAdmin/ first just to be extra safe.
Also, note that you don't want to "replace" the /cmsAdmin/ folder, just upload the new files over-top of the ones that are already there. So don't erase the existing /cmsAdmin/ or anything like that.
Let me know how it goes.
interactivetools.com
Re: [Dave] Apostrophe and WYSIWYG editing problem
By cnorthey - May 5, 2010
The update seemed to work fine. Thanks for the advice.