Hi
I am running a website at a swiss hosting provider. The provider updated php-Version to 5.3.16 and set the magic-quotes_gpc setting to on. They will not set it to off and will not downgrade to Version 5.2.
The hosted website uses MaxiGallery and now there is backslahes all over!! My client needs MaxiGallery to put on a new auction soon. Is there any way to trick the hosting provider and set the setting to off?
Thanks for helping me.
Markus
-
☆ A M B ☆
- 1,780 Posts
Wow, that sucks. Time to look at other options.
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.
-
☆ A M B ☆
- 24,524 Posts
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:
The ironic thing about this is that the setting is removed altogether in PHP 5.4
-
☆ A M B ☆
- 24,524 Posts
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.
-
☆ A M B ☆
- 24,524 Posts
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".
-
☆ A M B ☆
- 24,524 Posts
Ah, sorry. If neither of the directives work in the .htaccess, and adding a custom php.ini in the /manager/ folder didn't work, then unless you can change hosting you'll have to figure out a plugin or something similar to remove the extraneous slashes.
-
☆ A M B ☆
- 24,524 Posts