Skip to main content

Documentation

IMPORTANT

This is the outdated SI-documentation which will be adapted soon. A huge part may be obsolete!

Magic Quotes

It is a basic requirement from Joomla 3.0 onwards to disable the magic_quotes_gpc. Otherwise, whenever a form was posted on the server, PHP would automatically escape quotes with a preceding slash.

Disable magic_quotes_gpc on htaccess

Some hosting providers do allow you to turn this option off just by overriding the settings in the .htaccess file.

  1. Login to your account using SSH.
  2. Use your favorite text editor to modify the .htaccess file.

    php_flag magic_quotes_gpc  off
    
  3. Save the changes and exit the text editor.
  4. Verify the changes in the Joomla PHP information.

Disable magic_quotes_gpc on php.ini

Some hosting providers do allow you to create a php.ini file in the document root to override the default php.ini settings.

  1. Open the php.ini file using your favorite text editor.
  2. Find the magic_quotes_gpc in the php.ini file.
  3. Change it from On to Off.

    magic_quotes_gpc=off
    
  4. Save the changes and verify the changes in the Joomla PHP information.

If you are unsure how to do this, it's best to contact your hosting provider for clarification.
We use cookies
We use cookies on our website. Some of them are essential for the operation of the site, while others help us to improve this site and the user experience. You can decide whether you want to allow cookies or not. Please note that if you reject them, you may not be able to use all the functionalities of the site.