Page 1 of 1

obsolete function(Deprecated: Function get_magic_quotes_gpc(

PostPosted: 15 Jun 2021, 14:26
by akagass
Hi,

We need your support to check and fix below error that we found today on our site web

Deprecated: Function get_magic_quotes_gpc() is deprecated in /home/customer/www/immobilier224.biz/public_html/framework/web/CHttpRequest.php on line 130
//
My domain is https://www.immobilier224.biz/ .

according to my research I have found this in below

<<get_magic_quotes_gpc() has been useless ever since PHP 5.4.0. It would tell you whether you have magic quotes switched on in the configuration or not. Magic quotes were a terrible idea and this feature was removed for security reasons (PHP developers believed in magic & superstitions and wrote unsecure code).>>

Re: obsolete function(Deprecated: Function get_magic_quotes_

PostPosted: 17 Jun 2021, 10:20
by Foton
Hello,

Try to add to index.php
Code: Select all
error_reporting(E_ERROR | E_WARNING | E_PARSE | E_NOTICE);

or
Code: Select all
error_reporting(E_ALL ^ E_DEPRECATED);

Re: obsolete function(Deprecated: Function get_magic_quotes_

PostPosted: 19 Jun 2021, 15:01
by akagass
Hi

be informed that we did but the error is still there.
Thanks to tell us for the directory where "index.php" is located

Re: obsolete function(Deprecated: Function get_magic_quotes_

PostPosted: 22 Jun 2021, 17:12
by andipas
akagass wrote:Hi

be informed that we did but the error is still there.
Thanks to tell us for the directory where "index.php" is located


index.php located in the crown of the site.

Or you can configure in php.ini on the server:
error_reporting = E_ALL & ~E_DEPRECATED