get_magic_quotes_gpc() is deprecated
Hi
First, I want to clarify that the page where this is happening is using UNA 12.1.0 and PHP 7.4.33 (screenshot attached).
When a user creates a profile, the following message appears:
Deprecated: Function get_magic_quotes_gpc() is deprecated in /home/hypatiac/public_html/tnea.ar/modules/boonex/antispam/classes/BxAntispamModule.php on line 92
Warning: Cannot modify header information - headers already sent by (output started at /home/hypatiac/public_html/tnea.ar/modules/boonex/antispam/classes/BxAntispamModule.php:92) in /home/hypatiac/public_html/tnea.ar/modules/base/profile/classes/BxBaseModProfileFormsEntryHelper.php on line 236
I'm unsure what to do, since I hadn't planned on upgrading to UNA version 14 yet, because the change will likely create some issues to resolve, and I don't have much time right now.
Alternatives (I'm not sure if these are better options):
1) Disable error display by configuring one of the following files:
- In PHP: `ini_set('display_errors', 0);`
- In .htaccess: `php_flag display_errors Off`
2) Adjust the PHP version, i.e., change it to a lower version, such as 7.3
3) Modify the code in the Antispam module, that is, in the file /modules/boonex/antispam/classes/BxAntispamModule.php Line 92: where get_magic_quotes_gpc() is used.
What would be the best option? Even considering that upgrading to version 14 might be the best option.
Thanks.
-
-
·
LeonidS
- ·
Hello @Claudio Acosta !
As UNA 12 and PHP 7.4 both are obsolete you may suppress this notice by modifying inc/header.inc.php file by changing:
error_reporting(E_ALL);
to
error_reporting(E_ALL & ~E_NOTICE & ~E_DEPRECATED & ~E_STRICT);
-
·
LeonidS
-
- · Claudio Acosta
- ·