How to turn off magic quotes gpc for Joomla 3

How to turn off magic quotes gpc for Joomla 3

Here are few solution that may help if you are getting error “Magic quotes needs to be turned off ” while logging to administrator panel for joomla or while installing Joomla and shows error on requirement check. Here are the few tips on “How to turn off magic quotes gpc for Joomla 3”

 Way 1  ( custom php.ini, for hosts running on suphp)

Create or edit php.ini in public_html or your root folder where you install Joomla. Add the following lines

magic_quotes_gpc = Off
magic_quotes_runtime = Off
magic_quotes_sybase = Off

Now check the requirement check page or administrator login page by refreshing it. It will work.

If you see the error still, Open the .htaccess and add the following line

SetEnv PHPRC /home/youruser/public_html/php.ini

Make necessary changes in the url where your php.ini is. Test if error goes away


Way 2  (.htaccess way, less supported and error prone)

Add the following to .htaccess

php_flag magic_quotes_gpc off

Way 3 ( on hosts running on Fast-cgi and mostly windows servers)

Create a .user.ini in the document root or where you are installing Joomla

Add the following line and save it

magic_quotes_gpc = Off

See if the error goes.

Hope this ways , error will be gone. Post any comments