How to turn off magic quotes gpc for Joomla 3

Disabling magic_quotes_gpc for Joomla 3

 

The magic_quotes_gpc PHP directive was removed entirely in PHP 5.4 and later. If you are seeing a Joomla error about magic quotes, you are likely running PHP 5.3 or earlier, which is extremely outdated and no longer supported.

 

The Fix: Update Your PHP Version

  1. Log into cPanel
  2. Go to MultiPHP Manager
  3. Select your domain and change the PHP version to 8.1 or newer
  4. Click Apply

 

Joomla 3.x supports PHP 7.x and PHP 8.x (with some compatibility patches). Joomla 4+ requires PHP 7.2.5 or later. Updating PHP will resolve the magic_quotes error and also give your site significant performance and security improvements.

 

If you are still on an older Joomla version that requires PHP 5.x, it is strongly recommended to update Joomla to the latest version. Older Joomla installations have known security vulnerabilities that are actively exploited.

  • 148 Users Found This Useful

Was this answer helpful?

Related Articles

Joomla Warning: Parameter 2 to frontpage()

The error: Joomla Warning: Parameter 2 to frontpage() can occur when you use an out-dated install...

How do I reset Zen Cart administrator password?

First login to your control panel with us, then click on the "phpMyAdmin" icon. Click the...

Moodle: Notice: Only variable references should be returned by reference

Notice: Only variable references should be returned by reference The issue is with Moodle...

Turn off PHP error messages via htaccess

From time to time you may encounter a script which has error messages you do not wish to see....

Best WP Plugins

The best wp plugins we believe at this time are W3Total Cache, WordFence, Yoast SEO and iThemes...



Save 30% on web hosting - Use coupon code Hosting30