Nextcloud log reports incorrect version of PHP

Nextcloud logging reports:

[PHP] Error: Error: Composer detected issues in your platform: Your Composer dependencies require a PHP version “>= 8.0.0”. You are running 7.4.33. at /var/www/html/nextcloud/apps/contacts/vendor/composer/platform_check.php#24 at <>

Nextcloud > System> PHP reports I am running version 8.0.27 as does an info.php file in /var/www/html

However, from server console: php --version reports 7.4.33

I have included php 8.0-fpm.conf in my nextcloud vhost file.

I would really like to solve this problem because I am having problems with Maps App not placing contacts on its map. Contacts App seems to be working fine but it is mentioned in the log error message.

i had the same problem
a lot of error mails…

go to file
nextcloud/apps/contacts/vendor/composer/platform_check.php
change the line on the top
if (!(PHP_VERSION_ID >= 80000)) {
to
if (!(PHP_VERSION_ID >= 70000)) {
save and exit

That’s a terrible fix @UweT !

Any chance you configured a cronjob for cron.php and need to update the php version there too?

I ran:
sudo update-alternatives --config php
and chose v 8.0
I hope this will at least stop the error messages.

I have checked cron.php joblist in MariaDB:
select * from nextcloud.oc_jobs;

There is nothing in there referring to:

OCA\DAV\CardDAV\SyncJob (or anything else relating to Contacts)

I’m thinking that may be part of my Contacts/Map App problem but that’s not really relevant to this post.

I’m pretty sure you have given me the fix for my error logging issue however.

Thank you.