Nextcloud error after update: Object of class OC\User\User could not be converted to string

NethServer Version: 7.9
Module: Nextcloud 24.07

After the current update I have to recognize an error.
“Error: Object of class OC\User\User could not be converted to string”

Error: Object of class OC\User\User could not be converted to string
/usr/share/nextcloud/lib/private/Log.php - line 402:
strtr()
/usr/share/nextcloud/lib/private/Log.php - line 323:
OC\Log->interpolateMessage()
/usr/share/nextcloud/lib/private/AppFramework/Logger.php - line 125:
OC\Log->logException()
/usr/share/nextcloud/apps/activity/lib/MailQueueHandler.php - line 420:
OC\AppFramework\Logger->logException()
/usr/share/nextcloud/apps/activity/lib/MailQueueHandler.php - line 165:
OCA\Activity\MailQueueHandler->sendEmailToUser()
/usr/share/nextcloud/apps/activity/lib/BackgroundJob/EmailNotification.php - line 61:
OCA\Activity\MailQueueHandler->sendEmails()
/usr/share/nextcloud/lib/private/BackgroundJob/Job.php - line 54:
OCA\Activity\BackgroundJob\EmailNotification->run()
/usr/share/nextcloud/lib/private/BackgroundJob/TimedJob.php - line 60:
OC\BackgroundJob\Job->execute()
/usr/share/nextcloud/cron.php - line 151:
OC\BackgroundJob\TimedJob->execute()

Seems to be the same, like here: [Bug]: NC 25 Error: Object of class OC\User\User could not be converted to string · Issue #34139 · nextcloud/server · GitHub
But mail server works fine.

Best regards, Marko

…the same error log every 5 minutes…

The Nextcloud cron job seems affected.

Please check if you can reproduce the error on command line by running it manually:

sudo -u apache /usr/bin/scl enable php80 -- php -d memory_limit=512M -d apc.enable_cli=1 -f /usr/share/nextcloud/cron.php

1 Like

yes, I can.