Skip to content

[Bug]: NC 25 Error: Object of class OC\User\User could not be converted to string #34139

@AndyXheli

Description

@AndyXheli

⚠️ This issue respects the following points: ⚠️

  • This is a bug, not a question or a configuration/webserver/proxy issue.
  • This issue is not already reported on Github (I've searched it).
  • Nextcloud Server is up to date. See Maintenance and Release Schedule for supported versions.
  • Nextcloud Server is running on 64bit capable CPU, PHP and OS.
  • I agree to follow Nextcloud's Code of Conduct.

Bug description

Might be similar to

Below tickers are from NC 13 & NC 16
#13433
#6534

Steps to reproduce

1.N/A

Expected behavior

N/A

Installation method

Community Manual installation with Archive

Operating system

Debian/Ubuntu

PHP engine version

PHP 8.0

Web server

Apache (supported)

Database engine version

MariaDB

Is this bug present after an update or on a fresh install?

Updated to a major version (ex. 22.2.3 to 23.0.1)

Are you using the Nextcloud Server Encryption module?

Encryption is Disabled

What user-backends are you using?

  • Default user-backend (database)
  • LDAP/ Active Directory
  • SSO - SAML
  • Other

Configuration report

No response

List of activated Apps

NA

Nextcloud Signing status

No response

Nextcloud Logs

{"reqId":"7Wljl0ynW8JKT7DniyNk","level":3,"time":"2022-09-19T14:15:03+00:00","remoteAddr":"","user":"--","app":"core","method":"","url":"--","message":"Error while running background job (class: OCA\\Activity\\BackgroundJob\\EmailNotification, arguments: )","userAgent":"--","version":"25.0.0.11","exception":{"Exception":"Error","Message":"Object of class OC\\User\\User could not be converted to string","Code":0,"Trace":[{"file":"/var/www/nextcloud/lib/private/Log.php","line":405,"function":"strtr"},{"file":"/var/www/nextcloud/lib/private/Log.php","line":326,"function":"interpolateMessage","class":"OC\\Log","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/Logger.php","line":125,"function":"logException","class":"OC\\Log","type":"->"},{"file":"/var/www/nextcloud/apps/activity/lib/MailQueueHandler.php","line":420,"function":"logException","class":"OC\\AppFramework\\Logger","type":"->"},{"file":"/var/www/nextcloud/apps/activity/lib/MailQueueHandler.php","line":165,"function":"sendEmailToUser","class":"OCA\\Activity\\MailQueueHandler","type":"->"},{"file":"/var/www/nextcloud/apps/activity/lib/BackgroundJob/EmailNotification.php","line":61,"function":"sendEmails","class":"OCA\\Activity\\MailQueueHandler","type":"->"},{"file":"/var/www/nextcloud/lib/private/BackgroundJob/Job.php","line":54,"function":"run","class":"OCA\\Activity\\BackgroundJob\\EmailNotification","type":"->"},{"file":"/var/www/nextcloud/lib/private/BackgroundJob/TimedJob.php","line":60,"function":"execute","class":"OC\\BackgroundJob\\Job","type":"->"},{"file":"/var/www/nextcloud/cron.php","line":152,"function":"execute","class":"OC\\BackgroundJob\\TimedJob","type":"->"}],"File":"/var/www/nextcloud/lib/private/Log.php","Line":405,"message":"Error while running background job (class: OCA\\Activity\\BackgroundJob\\EmailNotification, arguments: )","CustomMessage":"Error while running background job (class: OCA\\Activity\\BackgroundJob\\EmailNotification, arguments: )"},"id":"632879e857023"}

Additional info

No response

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions