Page 1 of 1

Error php plugin

Posted: Wed Jun 22, 2022 9:55 am
by carlosbr12
Deprecated: Required parameter $protocol follows optional parameter $port in /usr/share/magicspam/php/lib/lib.HTTPSocket.php on line 63 Warning: session_id(): Session ID cannot be changed after headers have already been sent in /usr/share/magicspam/php/index.php on line 54 Warning: session_start(): Session cannot be started after headers have already been sent in /usr/share/magicspam/php/index.php on line 58 Warning: Undefined variable $_SESSION in /usr/share/magicspam/php/modules/countryStatsModule.php on line 65 Warning: Undefined variable $_SESSION in /usr/share/magicspam/php/modules/countryStatsModule.php on line 66

centos 7x latest directadmin latest version

Re: Error php plugin

Posted: Thu Jun 23, 2022 3:42 pm
by magicspam
Hello Carlos,

Based on our understanding, the MagicSpam Admin Panel is operational but you are receiving PHP warning messages. Did we understand you correctly?

These PHP warning messages in the MagicSpam Admin Panel can be safely ignored. To silence these warning messages, please run the following terminal command as root:

Code: Select all

sed -i -e 's/error_reporting  =  E_ALL/error_reporting  =  E_ALL ^ E_WARNING ^ E_DEPRECATED/g' /usr/local/directadmin/plugins/magicspam/php.ini
Afterwards access the MagicSpam Admin Panel and make sure that these PHP warning messages no longer show up.

Note that we have informed our development team about these PHP warning messages for them to permanently fix in a future release. Would you also please provide us with the output of the following terminal commands ran as root:

Code: Select all

/usr/local/directadmin/directadmin v
/usr/local/directadmin/custombuild/build options | grep PHP
/usr/local/bin/php -v
Thank you.