Extra backslashes when Saving chunk in ModX Evolution




While editing chunk in ModX CMS all the quotes  became with extra backslashes.

So, code was:

But after pressing button Save code became like this with extra backslashes:

No so long before I moved my site to a new server and there php variable "magic_quotes_gpc" had value "On", but ModX needs it to be "Off".

The solution of this problem is to set  "magic_quotes_gpc" to value "Off" in php.ini.

So you need to find php.ini and insert (or change) values:

After changing php.ini you need to restart apache. In windows it’s like this:

In Linux you need to restart apache from root, syntax like this:

If to restart under not-root account console asks to enter root password.

 




MarkiMarta.com. Notes of web-specialist
Since 2009
18+