Page 1 of 1

Joomla 3.1.5 Error RE: Magic Quotes

Posted: Fri Aug 02, 2013 3:29 pm
by spock9458
I am running Joomla 3.1 in a test environment, and just installed the upgrade to version 3.1.5. Now in the Admin back end I have an error on every page at the top, with a pink background, that says:

Error

Your host needs to disable magic_quotes_gpc to run this version of Joomla!

I have checked with my host, and I have verified by running a phpinfo() file, all settings for magic quotes say "Off".

How do I fix this problem? Any help will be appreciated. Thanks.

Re: Joomla 3.1.5 Error RE: Magic Quotes

Posted: Fri Aug 02, 2013 3:42 pm
by brian
On many hosts they turn off magic quotes with a local php.INI file but this needs to be done on every directory on some server configurations. It looks like this is what your hosts have done. You can confirm this by putting the phpinfo file in the /administrator folder.

Re: Joomla 3.1.5 Error RE: Magic Quotes

Posted: Fri Aug 02, 2013 3:47 pm
by spock9458
You were exactly right, Brian. I uploaded the php.ini file they had provided for me, to the administrator directory, and the error message has disappeared. Thanks for your help.

Re: Joomla 3.1.5 Error RE: Magic Quotes

Posted: Fri Aug 02, 2013 4:22 pm
by brian
Glad to have helped. I wish host would get a clue though and disable it properly

Re: Joomla 3.1.5 Error RE: Magic Quotes

Posted: Mon Aug 12, 2013 4:46 am
by sgriesbach
yes thank you! this fixes the problem on Hostgator dedicated server

Re: Joomla 3.1.5 Error RE: Magic Quotes

Posted: Tue Sep 10, 2013 7:06 pm
by K2a
Hi! I am a beginner I encounter the same problem, I would like to know where to find the php.ini file should I ask my hosting provider?
thank you for help me

Re: Joomla 3.1.5 Error RE: Magic Quotes

Posted: Tue Sep 10, 2013 7:10 pm
by brian
Ask your hosting provider the best way to disable magic quotes in THEIR server. There are many ways to do it and YOUR hosting provider can do this best for you.

Re: Joomla 3.1.5 Error RE: Magic Quotes

Posted: Wed Oct 16, 2013 4:00 am
by ozneilau
brian wrote:On many hosts they turn off magic quotes with a local php.INI file but this needs to be done on every directory on some server configurations. It looks like this is what your hosts have done. You can confirm this by putting the phpinfo file in the /administrator folder.
Thanks Brian, this helped me too! :)

Rather than copy the php.ini to the /administrator folder, you can add a line to your .htaccess file like this:

Code: Select all

SetENV PHPRC /home/[account-name]/public_html
(or something similar depending on the folder structure on the server) so the php.ini settings apply to your whole website.

Re: Joomla 3.1.5 Error RE: Magic Quotes

Posted: Wed Mar 11, 2015 9:03 am
by ozneilau
You may be able to disable magic quotes via your hosting control panel. Look for "PHP Settings" or similar.

Or ask your hosting company.

Re: Joomla 3.1.5 Error RE: Magic Quotes

Posted: Fri Oct 23, 2015 5:27 am
by bhaumik
Thanks a lot brian :) , your following trick did worked for me.

On many hosts they turn off magic quotes with a local php.INI file but this needs to be done on every directory on some server configurations. It looks like this is what your hosts have done. You can confirm this by putting the phpinfo file in the /administrator folder.