docker-freescout icon indicating copy to clipboard operation
docker-freescout copied to clipboard

Saving settings outgoing email on mailbox fails

Open WaarlandIT opened this issue 1 year ago • 7 comments

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)

WaarlandIT avatar Oct 18 '22 10:10 WaarlandIT

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.

tiredofit avatar Oct 18 '22 15:10 tiredofit

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

WaarlandIT avatar Oct 18 '22 16:10 WaarlandIT

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.

tiredofit avatar Oct 18 '22 16:10 tiredofit

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

WaarlandIT avatar Oct 18 '22 16:10 WaarlandIT

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

tiredofit avatar Oct 18 '22 16:10 tiredofit

Sure, I will try those

WaarlandIT avatar Oct 19 '22 07:10 WaarlandIT

Ah with php7.4 the problem is gone. Not expected that but for now my problem is solved ;)

WaarlandIT avatar Oct 19 '22 11:10 WaarlandIT