Fixed :Error ‘magic_quotes_runtime + gpc’ in PHP

Last updated on October 30th, 2020 at 04:26 pm.

Fixed :Error ‘magic_quotes_runtime’ is no longer available in PHP in Uknown line 0

The error:

Fatal Error: Directive ‘magic_quotes_runtime’ is no longer available in PHP in Unknown line 0

Or any way that the error is displayed to you.

The fix:

Open your php.ini file. Php.ini will be found in the PHP folder path within xampp or wamp.In Xampp the php.ini is located in the root of the Xampp folder in the’ PHP’ directory (C:xampp/php). In Wamp it is located in the bin directory (C:wamp/bin/php) Either way find the php.ini file and edit the following lines as indicated.

magic_quotes_gpc = On

magic_quotes_runtime = On

magic_quotes_sybase = On

edit the 3 lines to reflect as follows

magic_quotes_gpc = Off

magic_quotes_runtime = Off

magic_quotes_sybase = Off

If any of them is already Off then no need to alter it.

Happy editing.

Comment Here

Need WordPress help? Linux Server help? Talk to us.

  • We are your own WordPress customer service.
  • We set up Linux servers and install or migrate WordPress. Learn more here.
  • We support WooCommerce too.
  • Check out our WordPress customer support plans here or contact us below .

If you have any questions regarding WordPress support, Linux server support or any of our services, feel free to reach out or read more on our services page.

Join this free course:

How to host multiple WordPress
websites on a VPS

Close me!