Support

Admin Tools

#16485 Magic Quotes issues

Posted in ‘Admin Tools for Joomla! 4 & 5’
This is a public ticket

Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.

Environment Information

Joomla! version
n/a
PHP version
n/a
Admin Tools version
n/a

Latest post by nicholas on Friday, 28 June 2013 04:56 CDT

amorim
PHP Version 5.3.23
Admin Tools version: 2.5.5

Description of my issue: My host has turned magic_quotes_gpc off. The system information inside Joomla (inside root www-folder) confirms this.
phpinfo.php for root confirms this, too.

So far so good.

I have a subfolder with another Joomla installation, a blog: domain.com/blog

Interestingly, for this subfolder Joomla and phpinfo.php both tell me that magic_quotes_gpc is turned ON!!! I haven't figured out how this could be. Do you have an idea?

But here to the part that concerns AdminTools. I read that I can fix this easily by adding the line "php_flag magic_quotes_gpc off" to my .htacess file. Will AdminTools let me do it and is it okay to do it?

Thanks.

nicholas
Akeeba Staff
Manager
First check if there is a php.ini file in the site inside the subdirectory and its administrator directory. If the magic_quotes_gpc flag exists in those files make sure it's set to off or 0. If such files do not exist you can probably(*) use the .htaccess Maker and the line you mentioned. Just place it in the "Custom .htaccess rules at the bottom of the file" area.

* I say "probably" because this trick only works if your host is running PHP in CGI / FastCGI mode. If your host is running PHP as an Apache module (a.k.a. "DSO") this trick will not work and you'll have to talk to your host. That said, there's a 90% chance that what you're about to do will actually work on your server.

Nicholas K. Dionysopoulos

Lead Developer and Director

πŸ‡¬πŸ‡·Greek: native πŸ‡¬πŸ‡§English: excellent πŸ‡«πŸ‡·French: basic β€’ πŸ• My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

amorim
Sorry, didn't get any email notification and so saw this just today. Yes, it works with the php.ini files inside both folders.

Thank you and have a good weekend!

nicholas
Akeeba Staff
Manager
You're welcome!

Nicholas K. Dionysopoulos

Lead Developer and Director

πŸ‡¬πŸ‡·Greek: native πŸ‡¬πŸ‡§English: excellent πŸ‡«πŸ‡·French: basic β€’ πŸ• My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

Support Information

Working hours: We are open Monday to Friday, 9am to 7pm Cyprus timezone (EET / EEST). Support is provided by the same developers writing the software, all of which live in Europe. You can still file tickets outside of our working hours, but we cannot respond to them until we're back at the office.

Support policy: We would like to kindly inform you that when using our support you have already agreed to the Support Policy which is part of our Terms of Service. Thank you for your understanding and for helping us help you!