<![CDATA[ How to set magic-quotes_gpc to off when hosting provider will not set it off? - My Forums]]> https://forums.modx.com/thread/?thread=81292 <![CDATA[Re: How to set magic-quotes_gpc to off when hosting provider will not set it off?]]> https://forums.modx.com/thread/81292/how-to-set-magic-quotes-gpc-to-off-when-hosting-provider-will-not-set-it-off?page=2#dis-post-448117
I tried this one, but as written in Dave's Blog it is only working with php 5.2 and not php 5.3. I will screw this hosting company...


Quote from: sottwell at Dec 23, 2012, 05:57 PM
Here's a solution http://davidchu.net/blog/2012/01/fixed-modx-evo-site-running-namecheap-hosting/
]]>
all4webdesign Dec 23, 2012, 12:16 PM https://forums.modx.com/thread/81292/how-to-set-magic-quotes-gpc-to-off-when-hosting-provider-will-not-set-it-off?page=2#dis-post-448117
<![CDATA[Re: How to set magic-quotes_gpc to off when hosting provider will not set it off?]]> https://forums.modx.com/thread/81292/how-to-set-magic-quotes-gpc-to-off-when-hosting-provider-will-not-set-it-off#dis-post-448115 http://davidchu.net/blog/2012/01/fixed-modx-evo-site-running-namecheap-hosting/]]> sottwell Dec 23, 2012, 11:57 AM https://forums.modx.com/thread/81292/how-to-set-magic-quotes-gpc-to-off-when-hosting-provider-will-not-set-it-off#dis-post-448115 <![CDATA[Re: How to set magic-quotes_gpc to off when hosting provider will not set it off?]]> https://forums.modx.com/thread/81292/how-to-set-magic-quotes-gpc-to-off-when-hosting-provider-will-not-set-it-off#dis-post-448114 sottwell Dec 23, 2012, 11:55 AM https://forums.modx.com/thread/81292/how-to-set-magic-quotes-gpc-to-off-when-hosting-provider-will-not-set-it-off#dis-post-448114 <![CDATA[Re: How to set magic-quotes_gpc to off when hosting provider will not set it off?]]> https://forums.modx.com/thread/81292/how-to-set-magic-quotes-gpc-to-off-when-hosting-provider-will-not-set-it-off#dis-post-448113
here the link to the phpinfo: http://www.rusterholtz.ch/phpinfo.php

Quote from: sottwell at Dec 23, 2012, 05:48 PM
You can check its value in the Manager in Reports, System Info, and the phpinfo link. Scroll down a bit in the PHP Core section, and you should see that magic_quotes_gpc has a local value of "off", and the master value is "on".
]]>
all4webdesign Dec 23, 2012, 11:53 AM https://forums.modx.com/thread/81292/how-to-set-magic-quotes-gpc-to-off-when-hosting-provider-will-not-set-it-off#dis-post-448113
<![CDATA[Re: How to set magic-quotes_gpc to off when hosting provider will not set it off?]]> https://forums.modx.com/thread/81292/how-to-set-magic-quotes-gpc-to-off-when-hosting-provider-will-not-set-it-off#dis-post-448112 sottwell Dec 23, 2012, 11:48 AM https://forums.modx.com/thread/81292/how-to-set-magic-quotes-gpc-to-off-when-hosting-provider-will-not-set-it-off#dis-post-448112 <![CDATA[Re: How to set magic-quotes_gpc to off when hosting provider will not set it off?]]> https://forums.modx.com/thread/81292/how-to-set-magic-quotes-gpc-to-off-when-hosting-provider-will-not-set-it-off#dis-post-448111
Quote from: sottwell at Dec 23, 2012, 05:44 PM
Are you talking about Nextron? I have a long-time client with them, and I see they've upgraded and magic_quotes_gpc is on, so it's probably them.

I added the line
php_flag magic_quotes_gpc Off

to the .htaccess, and it did the trick.
]]>
all4webdesign Dec 23, 2012, 11:47 AM https://forums.modx.com/thread/81292/how-to-set-magic-quotes-gpc-to-off-when-hosting-provider-will-not-set-it-off#dis-post-448111
<![CDATA[Re: How to set magic-quotes_gpc to off when hosting provider will not set it off?]]> https://forums.modx.com/thread/81292/how-to-set-magic-quotes-gpc-to-off-when-hosting-provider-will-not-set-it-off#dis-post-448110
I added the line
php_flag magic_quotes_gpc Off

to the .htaccess, and it did the trick.]]>
sottwell Dec 23, 2012, 11:44 AM https://forums.modx.com/thread/81292/how-to-set-magic-quotes-gpc-to-off-when-hosting-provider-will-not-set-it-off#dis-post-448110
<![CDATA[Re: How to set magic-quotes_gpc to off when hosting provider will not set it off?]]> https://forums.modx.com/thread/81292/how-to-set-magic-quotes-gpc-to-off-when-hosting-provider-will-not-set-it-off#dis-post-448108
Thanks for your help, both ways not working at all.

The .htaccess solution gave me a "500 internal server error" and the php.ini solution didn't change the situation with the backslashes...

Maybe I have to change the hosting company, by the way this is the biggest in Switzerland!!!

Any other solutions?
Thanks
Markus


Quote from: sottwell at Dec 22, 2012, 12:43 PM
You can try either of the following directives in the .htaccess file:

php_flag magic_quotes_gpc Off
php_value magic_quotes_gpc Off


If those don't work, you can try putting a php.ini file in the /manager/ directory with the directive:

magic_quotes_gpc = Off


The ironic thing about this is that the setting is removed altogether in PHP 5.4

]]>
all4webdesign Dec 23, 2012, 11:32 AM https://forums.modx.com/thread/81292/how-to-set-magic-quotes-gpc-to-off-when-hosting-provider-will-not-set-it-off#dis-post-448108
<![CDATA[Re: How to set magic-quotes_gpc to off when hosting provider will not set it off?]]> https://forums.modx.com/thread/81292/how-to-set-magic-quotes-gpc-to-off-when-hosting-provider-will-not-set-it-off#dis-post-448034
php_flag magic_quotes_gpc Off
php_value magic_quotes_gpc Off


If those don't work, you can try putting a php.ini file in the /manager/ directory with the directive:

magic_quotes_gpc = Off


The ironic thing about this is that the setting is removed altogether in PHP 5.4

]]>
sottwell Dec 22, 2012, 06:43 AM https://forums.modx.com/thread/81292/how-to-set-magic-quotes-gpc-to-off-when-hosting-provider-will-not-set-it-off#dis-post-448034
<![CDATA[Re: How to set magic-quotes_gpc to off when hosting provider will not set it off?]]> https://forums.modx.com/thread/81292/how-to-set-magic-quotes-gpc-to-off-when-hosting-provider-will-not-set-it-off#dis-post-448029
How long do you have till the auction? Here's a thought...

A quick move might be worth the effort. Try MODX Cloud for 15 days, move the site to a dev cloud and show the client how simple it can be. Then move to a new production cloud.

Setting up a standard server might be a lot of work with your time frame in mind, but it wouldn't be with cloud. Email would take some extra time though.]]>
frogabog Dec 22, 2012, 05:29 AM https://forums.modx.com/thread/81292/how-to-set-magic-quotes-gpc-to-off-when-hosting-provider-will-not-set-it-off#dis-post-448029