YunoHost-Apps / opensondage_ynh

OpenSondage for YunoHost
https://framadate.org/
GNU Affero General Public License v3.0
16 stars 14 forks source link

[fix] PHPMailer SMTP Error: Could not connect to SMTP host #102

Closed zamentur closed 6 months ago

zamentur commented 6 months ago

Problem

Can't create a poll, blank page is displayed instead.

2024/04/24 23:12:36 [error] 3636370#3636370: *160529 FastCGI sent in stderr: "PHP message: PHP Fatal error:  Uncaught PHPMailer\PHPMailer\Exception: SMTP Error: Could not connect to SMTP host. in /var/www/opensondage/vendor/phpmailer/phpmailer/src/PHPMailer.php:2157
Stack trace:
#0 /var/www/opensondage/vendor/phpmailer/phpmailer/src/PHPMailer.php(1981): PHPMailer\PHPMailer\PHPMailer->smtpConnect()
#1 /var/www/opensondage/vendor/phpmailer/phpmailer/src/PHPMailer.php(1653): PHPMailer\PHPMailer\PHPMailer->smtpSend()
#2 /var/www/opensondage/vendor/phpmailer/phpmailer/src/PHPMailer.php(1491): PHPMailer\PHPMailer\PHPMailer->postSend()
#3 /var/www/opensondage/app/classes/Framadate/Services/MailService.php(67): PHPMailer\PHPMailer\PHPMailer->send()
#4 /var/www/opensondage/create_date_poll.php(213): Framadate\Services\MailService->send()
#5 {main}
  thrown in /var/www/opensondage/vendor/phpmailer/phpmailer/src/PHPMailer.php on line 2157" while reading response header from upstream, client: 92.92.115.142, server: date.xxxxx.org, request: "POST /create_date_poll.php HTTP/2.0", upstream: "fastcgi://unix:/var/run/php/php8.2-fpm-opensondage.sock:", host: "date.xxxxx.org", referrer: "https://date.xxxxx.org/create_date_poll.php"

Solution

https://github.com/YunoHost-Apps/opensondage_ynh/issues/95#issuecomment-2029562939

PR Status

zamentur commented 6 months ago

!testme

yunohost-bot commented 6 months ago

:worm: Test Badge

yunohost-bot commented 6 months ago

:v: Test Badge

zamentur commented 6 months ago

!testme

yunohost-bot commented 6 months ago

:worm: Test Badge