Deprecated function - get_magic_quotes

My DEV environment uses PHP 7.3.12. I have successfully deployed the project to a linux server running PHP 7.4. My customer now wants to run the application on a WAMP server - this is running PHP 7.4.26. Every time I run the application in the PROD on this server I continually get ‘Function get_magic_quotes_gpc() is deprecated…’ message.

Is there any way to get around this. Any help/advice would be appreciated.

1 Like

Try to fix that in php.ini. Imho, this function is deprecated since php 5.5 or so, but 7.4 is complaining. But You might need to scan your code for this line and change / remove it manually as Scriptcase does NOT support 7.4.

1 Like

Thank you for that. I don’t use that particular function myself and it isn’t anywhere in my code. However, when searching in Scriptcase/app/‘project’/ it appears numerous times, mainly in index.php files. I assume it is part of the source code generation by Scriptcase?

You can suppress the message by adding this php command

error_reporting(E_ALL & ~E_DEPRECATED & ~E_NOTICE);

1 Like

Many thanks for your help. All sorted.