Author Topic: Cron PHP Error  (Read 6342 times)

0 Members and 1 Guest are viewing this topic.

Offline
*****
Cron PHP Error
« on: October 05, 2020, 02:14:15 AM »
When the cron email received:

Suject: Cron <root@srv> /usr/local/cwp/php71/bin/php /usr/local/cwpsrv/htdocs/resources/admin/include/cron_autossl_all_domains.php


PHP Notice:  Undefined index: CN in /usr/local/cwpsrv/htdocs/resources/admin/include/libs/ssl/traits/ssl_general_trait.php on line 0
CREATION FAILEDS: 0
CREATEDS: 0
RENEWAL FAILEDS: 0
RENEWEDS: 0


SSL Certificates are not set to auto create or renew.
« Last Edit: October 05, 2020, 02:20:32 AM by Starburst »

Re: Cron PHP Error
« Reply #1 on: October 05, 2020, 09:50:40 AM »
They don't care!
I've previously pointed out the non-words that are used but was ignored, as usual.

Offline
*****
Re: Cron PHP Error
« Reply #2 on: October 05, 2020, 10:17:45 PM »
They don't care!
I've previously pointed out the non-words that are used but was ignored, as usual.

Sandepp and Igor are usually good. But they are busy, and it does take them awhile sometimes.

I've gotten help from other users as well, which I think is why the forums exist.

I know I try to reply soemtimes.

Re: Cron PHP Error
« Reply #3 on: October 05, 2020, 11:33:05 PM »
Here's another persistent cron error message:
Code: [Select]
/usr/local/cwp/php71/bin/php-cgi -d max_execution_time=10000000 -q /usr/local/cwpsrv/htdocs/resources/admin/include/cron_newbackup.php
Quote
PHP Warning:  count(): Parameter must be an array or an object that implements Countable in /usr/local/cwpsrv/htdocs/resources/admin/addons/class_backupmanager.php on line 0

Offline
*****
Re: Cron PHP Error
« Reply #4 on: October 05, 2020, 11:49:43 PM »
Here's another persistent cron error message:
Code: [Select]
/usr/local/cwp/php71/bin/php-cgi -d max_execution_time=10000000 -q /usr/local/cwpsrv/htdocs/resources/admin/include/cron_newbackup.php
Quote
PHP Warning:  count(): Parameter must be an array or an object that implements Countable in /usr/local/cwpsrv/htdocs/resources/admin/addons/class_backupmanager.php on line 0

Try changing it to:

/usr/local/cwp/php71/bin/php -d max_execution_time=18000 -q /usr/local/cwpsrv/htdocs/resources/admin/include/cron_newbackup.php


For some reason the cron editor on CentOS 7 & 8 hasn't been working.

Cron jobs are located in /var/spool/cron

Offline
*****
Re: Cron PHP Error
« Reply #5 on: October 06, 2020, 03:27:08 AM »
hi try to u[date cwp and check if this error is still there?

Re: Cron PHP Error
« Reply #6 on: October 06, 2020, 05:56:52 PM »
@Starburst
I'm not exactly a noob!
1. Seasoned *nix users use crontab -e
2. /var/spool/cron contains live crons, not cron definitions.
3. The error is not in the execution time of the cron task, it is an error in /usr/local/cwpsrv/htdocs/resources/admin/addons/class_backupmanager.php (an encoded obscured file, of course).

Offline
*****
Re: Cron PHP Error
« Reply #7 on: October 06, 2020, 09:42:38 PM »
Please can you create a support ticket and mention this thread, I will gladly help you solve it

Re: Cron PHP Error
« Reply #8 on: October 07, 2020, 11:46:01 AM »
Please can you create a support ticket and mention this thread, I will gladly help you solve it
Directed at the OP?
Both these errors appear to be problems in the coding of the php files. :-/ The CN error does suggest:
1. the variable hasn't been defined in php
2. the Common Name isn't being populated for some reason.

It looks like class_backupmanager.php isn't checking for a zero/null value before calling count().

As previously stated elsewhere, LMFTFY;
Quote
CREATION FAILEDS (or FAILURES): 0
CREATEDS: 0
RENEWAL FAILEDS (or FAILURES): 0
RENEWEDS RENEWALS: 0


« Last Edit: October 07, 2020, 11:52:46 AM by cynique »