Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Call to undefined method on Nextcloud 26 with php 8.1 #26

Open
Luticus opened this issue Apr 7, 2023 · 3 comments
Open

Call to undefined method on Nextcloud 26 with php 8.1 #26

Luticus opened this issue Apr 7, 2023 · 3 comments

Comments

@Luticus
Copy link
Contributor

Luticus commented Apr 7, 2023

Call to undefined method OC\Mail\Message::getSwiftMessage() in file '/var/www/nextcloud/apps/gpgmailer/lib/Service/GpgMessageConvertService.php' line 94"

"Exception":"Exception","Message":"Call to undefined method OC\Mail\Message::getSwiftMessage() in file '/var/www/nextcloud/apps/gpgmailer/lib/Service/GpgMessageConvertService.php' line 94","Code":0,"Trace":[{"file":"/var/www/nextcloud/lib/private/AppFramework/App.php","line":183,"function":"dispatch","class":"OC\AppFramework\Http\Dispatcher","type":"->"

I should also mention that I'm using Nextcloud 26.

@rg-ac
Copy link

rg-ac commented Jul 10, 2023

Same Error here: Ubuntu 22.04.2 (64bit), Nextcloud 26.0.3, Apache2, PHP 8.1, PGP Mailer App 0.0.4

@zkyworks
Copy link

Same error here. It appears Swiftmailer has been deprecated; if this function were rewritten using Symfony Mailer, it might fix this bug: https://symfony.com/blog/the-end-of-swiftmailer

@tacruc
Copy link
Owner

tacruc commented Jan 17, 2024

Thats probably it.
One could try if it is sufficient to replace

getSwiftMessage -> getSymfonyEmail

setSwiftMessage -> setSymfonyEmail

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants