Closed RichardJRL closed 1 year ago
Fixed in #36351 for >=NC26.
The actual PR in #36351 can't be backported as-is to NC25 because mail.php
no longer exists.
If you need a manual fix for NC25 you can try applying this one, which looks somewhat similar to your own fix:
https://github.com/nextcloud/server/pull/36351#issuecomment-1460034829
⚠️ This issue respects the following points: ⚠️
Bug description
Using the encryption app, when setting up per-user keys, Nextcloud fails to send emails to all users when the occ
php occ encryption:encrypt-all
command is issued, with the fileapps/encryption/templates/mail.php
generating an error on line 10 as the php command there cannot find the imagelogo-mail.png
.The file does exist at
core/img/logo/logo-mail.png
.The error produced is
If
mail.php
is edited to remove the php and add the full web address oflogo-mail.php
e.g.:<img src="https://nextcloud.example.com/core/img/logo/logo-mail.png" alt="<?php p($theme->getName()); ?>"/>
then themail.php
file executes without error and emails are correctly sent to all users.Steps to reproduce
I'm using a set of docker containers with the nextcloud version nextcloud:25.0.2-fpm-alpine. I appear to have no other issues with missing images in the web interface.
Expected behavior
Emails derived from the template
apps/encryption/templates/mail.php
should be sent to all users, containing their auto-generated private key password and instructions on how to change it to their current login password in the nextcloud web interface.Installation method
Community Docker image
Operating system
Debian/Ubuntu
PHP engine version
PHP 8.1
Web server
Nginx
Database engine version
MariaDB
Is this bug present after an update or on a fresh install?
Fresh Nextcloud Server install
Are you using the Nextcloud Server Encryption module?
Encryption is Enabled
What user-backends are you using?
Configuration report
List of activated Apps
Nextcloud Signing status
Nextcloud Logs
Additional info
No response