Control Web Panel

WebPanel => CentOS-WebPanel GUI => Topic started by: ring_c on July 03, 2020, 04:30:36 AM

Title: cron_notificate_user
Post by: ring_c on July 03, 2020, 04:30:36 AM
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.

Title: Re: cron_notificate_user
Post by: Sandeep on July 04, 2020, 06:35:13 AM
it can be safely ignored.
Title: Re: cron_notificate_user
Post by: ring_c on July 04, 2020, 06:11:20 PM
it can be safely ignored.
But I don't want to get it, it's annoying.
And what about it being php 7.1 while I'm using 7.3?
Title: Re: cron_notificate_user
Post by: mirdul611 on July 05, 2020, 09:30:05 AM
CWP itself uses php 7.1 at the backend. Take a look at the path.

Any try updating your cron job defining the php path.

/usr/local/bin/php /path/to/the/file.php