Cron PHP Error

Started by Starburst, October 05, 2020, 02:14:15 AM

Previous topic - Next topic

Starburst

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.

cinique

They don't care!
I've previously pointed out the non-words that are used but was ignored, as usual.

Starburst

Quote from: cynique 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.

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.

cinique

Here's another persistent cron error message:
/usr/local/cwp/php71/bin/php-cgi -d max_execution_time=10000000 -q /usr/local/cwpsrv/htdocs/resources/admin/include/cron_newbackup.php
QuotePHP 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

Starburst

Quote from: cynique on October 05, 2020, 11:33:05 PM
Here's another persistent cron error message:
/usr/local/cwp/php71/bin/php-cgi -d max_execution_time=10000000 -q /usr/local/cwpsrv/htdocs/resources/admin/include/cron_newbackup.php
QuotePHP 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

Sandeep

hi try to u[date cwp and check if this error is still there?

cinique

@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).

josemnunez

Please can you create a support ticket and mention this thread, I will gladly help you solve it

cinique

#8
Quote from: josemnunez 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
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;
QuoteCREATION FAILEDS (or FAILURES): 0
CREATEDS: 0
RENEWAL FAILEDS (or FAILURES): 0
RENEWEDS RENEWALS: 0