[SOLVED] Problems with PHP version and Cron

Good morning,
Today I’m asking for your help with two issues regarding this app:

  1. Since I updated my PHP installation to version 8.2 so that the app could keep working, I’ve been seeing the following error in the logs:
    2.“Composer detected issues in your platform: Your Composer dependencies require a PHP version “>= 8.2.0”. You are running 8.1.27”*
  2. Since I updated my Nextcloud installation to version 31.0.8, Cron gives me the following error:
    4.“Too few arguments to function OCA\News\Cron\UpdaterJob::__construct(), 0 passed in /var/www/nextcloud/lib/private/BackgroundJob/JobList.php on line 326 and exactly 4 expected”*
    and it doesn’t execute correctly. However, if I disable the option to update News using Cron, everything works again.

Could it be that both errors are related?

Thank you very much for your attention.

This suggests you overlooking updating the PHP CLI when you updated your PHP installation.

2 Likes

Good morning,

I’m very sorry for the delay in replying. Are you referring to the PHP-CLI installation? If so, I’ve checked and it is installed in version 8.2 and up to date, just like the rest of the PHP modules.

I’ve also checked if I had any other PHP installation, and I confirmed that the only one currently installed on the system is version 8.2.

Thank you very much for your attention.

SOLVED!!

The error was in my crontab. I edit the crontab with crontab -u www-data -e and change the line adding php8.2

Thank you for your help!!

1 Like

This topic was automatically closed 8 days after the last reply. New replies are no longer allowed.