I guess on code restructure one function call was forgotten to be adapted with the new logo parameters:
Creating shares works without errors and no errors in the log with custom mail template class.
Updated from a MINOR version (ex. 28.0.1 to 28.0.2)
{"reqId":"U9sl2V4TMbKYY9EsDtlv","level":3,"time":"2024-08-22T13:35:06+00:00","remoteAddr":"","user":"--","app":"core","method":"","url":"--","message":"Error while running background job OCA\\Activity\\BackgroundJob\\EmailNotification (id: 2, arguments: null)","userAgent":"--","version":"29.0.5.1","exception":{"Exception":"TypeError","Message":"OC\\Mail\\EMailTemplate::__construct(): Argument #4 ($logoWidth) must be of type ?int, string given, called in /var/www/nextcloud/lib/private/Mail/Mailer.php on line 136","Code":0,"Trace":[{"file":"/var/www/nextcloud/lib/private/Mail/Mailer.php","line":136,"function":"__construct","class":"OC\\Mail\\EMailTemplate","type":"->"},{"file":"/var/www/nextcloud/apps/activity/lib/MailQueueHandler.php","line":324,"function":"createEMailTemplate","class":"OC\\Mail\\Mailer","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/nextcloud/apps/activity/lib/MailQueueHandler.php","line":124,"function":"sendEmailToUser","class":"OCA\\Activity\\MailQueueHandler","type":"->"},{"file":"/var/www/nextcloud/apps/activity/lib/BackgroundJob/EmailNotification.php","line":58,"function":"sendEmails","class":"OCA\\Activity\\MailQueueHandler","type":"->"},{"file":"/var/www/nextcloud/lib/public/BackgroundJob/Job.php","line":80,"function":"run","class":"OCA\\Activity\\BackgroundJob\\EmailNotification","type":"->"},{"file":"/var/www/nextcloud/lib/public/BackgroundJob/TimedJob.php","line":102,"function":"start","class":"OCP\\BackgroundJob\\Job","type":"->"},{"file":"/var/www/nextcloud/lib/public/BackgroundJob/TimedJob.php","line":92,"function":"start","class":"OCP\\BackgroundJob\\TimedJob","type":"->"},{"file":"/var/www/nextcloud/cron.php","line":177,"function":"execute","class":"OCP\\BackgroundJob\\TimedJob","type":"->"}],"File":"/var/www/nextcloud/lib/private/Mail/EMailTemplate.php","Line":337,"message":"Error while running background job OCA\\Activity\\BackgroundJob\\EmailNotification (id: 2, arguments: null)","exception":[],"CustomMessage":"Error while running background job OCA\\Activity\\BackgroundJob\\EmailNotification (id: 2, arguments: null)"},"id":"66c754f1d3fbd"}
Bug description
I guess on code restructure one function call was forgotten to be adapted with the new logo parameters:
server/lib/private/Mail/Mailer.php
Line 136 in 5b8bbd3
Steps to reproduce
Expected behavior
Creating shares works without errors and no errors in the log with custom mail template class.
Installation method
Community Manual installation with Archive
Nextcloud Server version
29
Operating system
Debian/Ubuntu
PHP engine version
PHP 8.2
Web server
Apache (supported)
Database engine version
MariaDB
Is this bug present after an update or on a fresh install?
Updated from a MINOR version (ex. 28.0.1 to 28.0.2)
Are you using the Nextcloud Server Encryption module?
None
What user-backends are you using?
Configuration report
No response
List of activated Apps
No response
Nextcloud Signing status
No response
Nextcloud Logs
{"reqId":"U9sl2V4TMbKYY9EsDtlv","level":3,"time":"2024-08-22T13:35:06+00:00","remoteAddr":"","user":"--","app":"core","method":"","url":"--","message":"Error while running background job OCA\\Activity\\BackgroundJob\\EmailNotification (id: 2, arguments: null)","userAgent":"--","version":"29.0.5.1","exception":{"Exception":"TypeError","Message":"OC\\Mail\\EMailTemplate::__construct(): Argument #4 ($logoWidth) must be of type ?int, string given, called in /var/www/nextcloud/lib/private/Mail/Mailer.php on line 136","Code":0,"Trace":[{"file":"/var/www/nextcloud/lib/private/Mail/Mailer.php","line":136,"function":"__construct","class":"OC\\Mail\\EMailTemplate","type":"->"},{"file":"/var/www/nextcloud/apps/activity/lib/MailQueueHandler.php","line":324,"function":"createEMailTemplate","class":"OC\\Mail\\Mailer","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/nextcloud/apps/activity/lib/MailQueueHandler.php","line":124,"function":"sendEmailToUser","class":"OCA\\Activity\\MailQueueHandler","type":"->"},{"file":"/var/www/nextcloud/apps/activity/lib/BackgroundJob/EmailNotification.php","line":58,"function":"sendEmails","class":"OCA\\Activity\\MailQueueHandler","type":"->"},{"file":"/var/www/nextcloud/lib/public/BackgroundJob/Job.php","line":80,"function":"run","class":"OCA\\Activity\\BackgroundJob\\EmailNotification","type":"->"},{"file":"/var/www/nextcloud/lib/public/BackgroundJob/TimedJob.php","line":102,"function":"start","class":"OCP\\BackgroundJob\\Job","type":"->"},{"file":"/var/www/nextcloud/lib/public/BackgroundJob/TimedJob.php","line":92,"function":"start","class":"OCP\\BackgroundJob\\TimedJob","type":"->"},{"file":"/var/www/nextcloud/cron.php","line":177,"function":"execute","class":"OCP\\BackgroundJob\\TimedJob","type":"->"}],"File":"/var/www/nextcloud/lib/private/Mail/EMailTemplate.php","Line":337,"message":"Error while running background job OCA\\Activity\\BackgroundJob\\EmailNotification (id: 2, arguments: null)","exception":[],"CustomMessage":"Error while running background job OCA\\Activity\\BackgroundJob\\EmailNotification (id: 2, arguments: null)"},"id":"66c754f1d3fbd"}Additional info
No response