FLOW3 requires the PHP setting "magic_quotes_gpc" set to Off. (Error #1224003190)

1.8k views Asked by At

While configuring FLOW3 on mac, I modified the php.ini in terms of setting magic_quotes_gpc = off and on restarting server I get the magic_quotes_gpc = off by browsing http://localhost:8888/MAMP/phpinfo.php But on running:

$ ./flow3 kickstart:package Acme.Demo

I get the following error message:

FLOW3 requires the PHP setting "magic_quotes_gpc" set to Off. (Error #1224003190)

Can anyone have an idea whats going wrong with it?

3

There are 3 answers

0
David Ung On

If you're using MAMP Pro, editing the php.ini file directly results in it being overwritten when MAMP Pro restarts. I had to edit through the MAMP Pro GUI to turn off 'magic_quotes_gpc'.

In MAMP Pro, go to

File > Edit Template > PHP > [The PHP you're using, in my case PHP 5.3.14 php.ini] 

(img link: https://i.stack.imgur.com/ToUqF.png).

There, you can look for 'magic_quotes_gpc = On' and set that to 'magic_quotes_gpc = Off'. Save the file and restart MAMP Pro.

If you only see 'magic_quotes_sybase = Off', which happened to me, I modified it with these lines:

; Magic quotes for incoming GET/POST/Cookie data.
magic_quotes_gpc = Off

; Magic quotes for runtime-generated data, e.g. data from SQL, from exec(), etc.
magic_quotes_runtime = Off    

; Use Sybase-style magic quotes (escape ' with '' instead of \').
magic_quotes_sybase = Off

(img link: https://i.stack.imgur.com/HsyPw.png)

Hope that helps!

1
NT88 On

You call phpinfo() through a browser, right? But kickstart uses the PHP
CLI binary. I bet you have another binary and/or another configuration for
that one.

Try php -i and look at the path for the config file(s) and the values of
the relevant settings.

Make sure any config file you edit is actually used by the PHP binary you call!

1
evotopid On

Eventually you could also do the easy way and disable it in a .htaccess file.

This code should work:

php_flag magic_quotes_gpc Off