Fixed :Error ‘magic_quotes_runtime + gpc’ in PHP

Laravel artisan commands

Last updated on June 3rd, 2018 at 04:38 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