docker-freescout
docker-freescout copied to clipboard
Saving settings outgoing email on mailbox fails
Summary
Setting up a mailbox, configuring the outgoing mail. When clicking "Save Settings" I get an error "Whoops, looks like something went wrong — check logs in /storage/logs"
Steps to reproduce
Create a new mailbox and define the outgoing mail settings.
Relevant logs and/or screenshots
No errors in the logs from the Docker containers.
Environment
Used the default docker-compose file
- Image version / tag: tiredofit/freescout:latest
- Host OS: Ubuntu 20.04 (not that that would matter)
You should be able to find a log in /www/logs/laravel
inside the container.
Also try setting DISPLAY_ERRORS=TRUE
in environment variables and retry and we should get some detailed info.
Ah tnx
[2022-10-18 18:38:00] production.ERROR: preg_match(): Passing null to parameter #2 ($subject) of type string is deprecated {"userId":1,"email":"[email protected]","exception":"[object] (ErrorException(code: 0): preg_match(): Passing null to parameter #2 ($subject) of type string is deprecated at /www/html/app/Http/Controllers/MailboxesController.php:337)
only replaced the domainname from the mail address
Hm. I'm not sure that's a docker image issue. Have you posted that at https://github.com/freescout-helpdesk/freescout ?
Inside the container is an environment variable PHP_BASE (echo $PHP_BASE
) that when submitting to the source code repo what PHP version you are getting that error on.
If it does turn out to be an error in image, let me know I'll come back at this.
It shows version PHP 8.1
I am also not sure if it's an error of the docker image, I can save the settings in Mange->Settings->Mail settings That works fine. I will post the same issue at https://github.com/freescout-helpdesk/freescout
OK. If you wanted to do some sleuthing and try on a different PHP version I also build some undocumented images;
:1.15.68_php8.1
:1.15.68_php8.0
:1.15.68_php7.4
Sure, I will try those
Ah with php7.4 the problem is gone. Not expected that but for now my problem is solved ;)