FOR MAMP
Go to MAMP application -> Preferences (button) -> PHP (tab) -> Choose 5.3.1 or greater -> choose OK.
Go to the MAMP folder -> bin -> php -> php5.3.26 -> conf -> edit php.ini -> add
“magic_quotes_gpc = Off” a few lines above “magic_quotes_sybase = Off”.
Restart MAMP’s servers.