Error backup with cron job

Search
Other Bug Reports questions
Forum

Error backup with cron job

M Manshanden's Avatar M Manshanden
I make backups with akeeba using cron jobs. Now I get this error:

ParseError {#462
#message: "syntax error, unexpected '|', expecting ';' or '{'"
#code: 0
#file: "./www/mysite.nl/public_html/libraries/regularlabs/src/ArrayHelper.php"
#line: 166
trace: {
./www/mysite.nl/public_html/libraries/regularlabs/src/ArrayHelper.php:166 {
Composer\Autoload\includeFile($file)
› */
› public static function applyMethodToValues(array $attributes, string $class = '', string $method = '', int $array_number_in_attributes = 0): array|object|null
› {
}

Any idea what goed wrong?
Peter van Westen's Avatar Peter van Westen ADMIN
Your cron jobs are not running on PHP 8.1 or higher.
If you don't know how to change the php version for cron jobs, ask your host about it.
Please post a rating at the Joomla! Extensions Directory
M Manshanden's Avatar M Manshanden
Yes, this was the problem. I changed php for cron jobs which solved the error.
Thanks Peter!
You can only post on this forum if you log in