4571 Posts in 1382 Topics by 1376 members
|Go to End|
25 March 2011 at 3:06am
I have seen this before and always ignored it without any problems, but today I got curious... The warning:
Titled: magic_quotes_gpc option turned off
magic_quotes_gpc is set to '1' in php.ini. This should be turned off, as it can cause issues with cookies. More specifically, unserializing data stored in cookies.
In my .htaccess file I tried each of the following:
php_value magic_quotes_gpc 1
php_value magic_quotes_gpc 0
php_value magic_quotes_gpc off
Each time the Description of the warning changed to reflect what value I had set, but it never went away. Is this cause I edited .htaccess and not php.ini? This is a pretty silly error message :
magic_quotes_gpc is set to 'off' in php.ini. This should be turned off, as it can cause issues with cookies. More specifically, unserializing data stored in cookies.
25 March 2011 at 12:12pm
Actually... are you allowing to override the configuration in the httpd.conf via AllowOverride?
28 April 2011 at 4:53am
I get the same warning even if i set the magic_quotes_gpc to Off! It just won´t disappear. Is there a solution or can I just proceed with the install ignoring that warning?
28 April 2011 at 5:11am
aaah so simple it´s almost embarassing.... since I´m using MAMP PRO I found the solution here http://forum.mamp.info/viewtopic.php?f=2&t=6770 that fixed the final warning and I could install SS with "green lights" for the first time
so if anyone using MAMP discovered the same warning at install check out the above link!
14 October 2011 at 9:42pm
I have the same problem, but not on MAMP but on a hosted server. It says: magic_quotes_gpc is set to 'off' in php.ini. This should be turned off...
Hove someone solved this?
How can i check if magic_quotes_gpc really is checked off? I dont know so much about these things...
15 October 2011 at 5:29am
I think it might have something to do with the way ini_get() interpretes php settings. If set to 'Off' within php.ini, ini_get() will return an emty string, and that's what the SS install script is checking on (Install.php, around line 386).
It seems that if you set magic_quotes_gpc to 'Off' (or false or 0) anywhere else, ini_get() might retrieve the 'real' value. And as 'Off' is not an empty string, the install check will fail. So if it says 'Off' in the warning, just go ahead and install, I guess...
15 October 2011 at 5:59am
Is there a way to check if it really is set to Off? Not the way that install is doing, but the right way?
As said, I don't know so much about these things.
15 October 2011 at 7:24am
I think you can always phpinfo() would tell you. You likely know this, but just in case: create a php file in the site root like this:
I suppose it'll pick up .htaccess settings as well. Not the ones you make in SilverStripe configs though...
|Go to Top|