Hello,
I didn't really know where to post this question. I hope I'm in the right forum.
Anyway, every day I'm getting a few emails with errors from cron jobs. One of them is the following:
Email subject:
Cron <root@cwp> /usr/local/cwp/php71/bin/php /usr/local/cwpsrv/htdocs/resources/admin/include/cron_notificate_user.php
Email content:
PHP Warning: count(): Parameter must be an array or an object that implements Countable in /usr/local/cwpsrv/htdocs/resources/admin/include/cron_notificate_user.php on line 0
PHP Warning: count(): Parameter must be an array or an object that implements Countable in /usr/local/cwpsrv/htdocs/resources/admin/include/cron_notificate_user.php on line 0
PHP Warning: count(): Parameter must be an array or an object that implements Countable in /usr/local/cwpsrv/htdocs/resources/admin/include/cron_notificate_user.php on line 0
PHP Warning: count(): Parameter must be an array or an object that implements Countable in /usr/local/cwpsrv/htdocs/resources/admin/include/cron_notificate_user.php on line 0
The funny thing is that I'm not actually running php 7.1 and I can't figure out why cron/CWP are using it.
In php version switcher v2 the version used it 7.3.18.
In php selector v2 version 7.1 is not even installed. Version 7.2 is installed.
In php-fpm selector it is installed, but there are many other php version installed too.
To make a long story short - how can I get rid of these errors, and how can I make sure cron/cwp are using the latest php version installed/defined?
TIA.