You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Run manually scheduled task: /usr/bin/php /var/www/TeamPass/sources/scheduler.php
Expected behaviour
Correct completion of background tasks.
Actual behaviour
PHP Fatal error: Uncaught InvalidArgumentException: Invalid value: it should be '*' or between 0 and 23. in /var/www/TeamPass/vendor/peppeocchi/php-cron-scheduler/src/GO/Traits/Interval.php:411
Stack trace:
#0 /var/www/TeamPass/vendor/peppeocchi/php-cron-scheduler/src/GO/Traits/Interval.php(387): GO\Job->validateCronRange()
#1 /var/www/TeamPass/vendor/peppeocchi/php-cron-scheduler/src/GO/Traits/Interval.php(85): GO\Job->validateCronSequence()
#2 /var/www/TeamPass/sources/scheduler.php(108): GO\Job->daily()
#3 /var/www/TeamPass/sources/scheduler.php(59): runTask()
#4 {main}
thrown in /var/www/TeamPass/vendor/peppeocchi/php-cron-scheduler/src/GO/Traits/Interval.php on line 411
Due to incorrect completion of this task, the planned tasks are not executed: resetting the password, sending emails, rebuilding the cache, etc.
Updated from an older Teampass or fresh install:
Updated from early v3 via git pull.
PLEASE attach to this issue the file /includes/config/tp.config.php.
PHP Fatal error: Uncaught InvalidArgumentException: Invalid value: it should be '*' or between 0 and 23. in /var/www/TeamPass/vendor/peppeocchi/php-cron-scheduler/src/GO/Traits/Interval.php:411
Stack trace:
#0 /var/www/TeamPass/vendor/peppeocchi/php-cron-scheduler/src/GO/Traits/Interval.php(387): GO\Job->validateCronRange()
#1 /var/www/TeamPass/vendor/peppeocchi/php-cron-scheduler/src/GO/Traits/Interval.php(85): GO\Job->validateCronSequence()
#2 /var/www/TeamPass/sources/scheduler.php(108): GO\Job->daily()
#3 /var/www/TeamPass/sources/scheduler.php(59): runTask()
#4 {main}
thrown in /var/www/TeamPass/vendor/peppeocchi/php-cron-scheduler/src/GO/Traits/Interval.php on line 411
As a fast fix used small modification of Interval.php:
private function validateCronRange($value, $min, $max)
{
if ($value === null || $value === '*') {
return '*';
}
**return 1;**
if (! is_numeric($value) ||
! ($value >= $min && $value <= $max)
) {
throw new InvalidArgumentException(
"Invalid value: it should be '*' or between {$min} and {$max}."
);
}
return (int) $value;
}
The text was updated successfully, but these errors were encountered:
Steps to reproduce
/usr/bin/php /var/www/TeamPass/sources/scheduler.php
Expected behaviour
Correct completion of background tasks.
Actual behaviour
Due to incorrect completion of this task, the planned tasks are not executed: resetting the password, sending emails, rebuilding the cache, etc.
Server configuration
Operating system:
Debian 12
Web server:
Apache/2.4.57 (Debian)
Database:
10.11.4-MariaDB-1~deb12u1-log Debian 12
PHP version:
8.2.17
Teampass version:
3.1.1.17
Teampass configuration file:
Updated from an older Teampass or fresh install:
Updated from early v3 via git pull.
PLEASE attach to this issue the file
/includes/config/tp.config.php
.Client configuration
Browser:
Latest FF, Edge
Operating system:
Win10/11
Logs
####PHP CLI
As a fast fix used small modification of Interval.php:
The text was updated successfully, but these errors were encountered: