Mautic stops working (after 2+ weeks) after configuration changes, numerous attempts at installs, error 'Parameter "S" must be defined'

Your software
My Mautic version is: 4.4.3
My PHP version is: 8.0
My Database type and version is: MySQL 8.0.28

Your problem
My problem is: Install/Config changes eventually causes “The site is currently offline due to encountering an error”

These errors are showing in the log:

Sep 29 19:38:10 [Fri Sep 30 02:38:10.058943 2022] [php:notice] [pid 21] [client 172.18.0.1:54114] Symfony\Component\DependencyInjection\Exception\InvalidArgumentException: The parameter “S” must be defined. - in file /app/data/public/var/cache/prod/Container4uY04e2/appAppKernelProdContainer.php - at line 7145
Sep 29 19:38:10 - - - [30/Sep/2022:02:38:10 +0000] “GET / HTTP/1.1” 500 1124 “-” “Mozilla (CloudronHealth)”
Sep 29 19:38:20 - - - [30/Sep/2022:02:38:20 +0000] “GET / HTTP/1.1” 500 1124 “-” “Mozilla (CloudronHealth)”
Sep 29 19:38:20 [Fri Sep 30 02:38:20.051966 2022] [php:notice] [pid 35] [client 172.18.0.1:39978] PHP Warning - Undefined variable $inline - in file /app/data/public/offline.php - at line 77
Sep 29 19:38:20 [Fri Sep 30 02:38:20.051991 2022] [php:warn] [pid 35] [client 172.18.0.1:39978] PHP Warning: Undefined variable $inline in /app/data/public/offline.php on line 77
Sep 29 19:38:20 [Fri Sep 30 02:38:20.052003 2022] [php:notice] [pid 35] [client 172.18.0.1:39978] Symfony\Component\DependencyInjection\Exception\InvalidArgumentException: The parameter “S” must be defined. - in file /app/data/public/var/cache/prod/Container4uY04e2/appAppKernelProdContainer.php - at line 7145
Sep 29 19:38:30 [Fri Sep 30 02:38:30.055112 2022] [php:notice] [pid 22] [client 172.18.0.1:49768] PHP Warning - Undefined variable $inline - in file /app/data/public/offline.php - at line 77
Sep 29 19:38:30 [Fri Sep 30 02:38:30.055204 2022] [php:warn] [pid 22] [client 172.18.0.1:49768] PHP Warning: Undefined variable $inline in /app/data/public/offline.php on line 77
Sep 29 19:38:30 [Fri Sep 30 02:38:30.055255 2022] [php:notice] [pid 22] [client 172.18.0.1:49768] Symfony\Component\DependencyInjection\Exception\InvalidArgumentException: The parameter “S” must be defined. - in file /app/data/public/var/cache/prod/Container4uY04e2/appAppKernelProdContainer.php - at line 7145
Sep 29 19:38:30 - - - [30/Sep/2022:02:38:30 +0000] “GET / HTTP/1.1” 500 1124 “-” “Mozilla (CloudronHealth)”
Sep 29 19:38:40 [Fri Sep 30 02:38:40.038020 2022] [php:notice] [pid 21] [client 172.18.0.1:55524] PHP Warning - Undefined variable $inline - in file /app/data/public/offline.php - at line 77
Sep 29 19:38:40 [Fri Sep 30 02:38:40.038077 2022] [php:warn] [pid 21] [client 172.18.0.1:55524] PHP Warning: Undefined variable $inline in /app/data/public/offline.php on line 77
Sep 29 19:38:40 [Fri Sep 30 02:38:40.038825 2022] [php:notice] [pid 21] [client 172.18.0.1:55524] Symfony\Component\DependencyInjection\Exception\InvalidArgumentException: The parameter “S” must be defined. - in file /app/data/public/var/cache/prod/Container4uY04e2/appAppKernelProdContainer.php - at line 7145
Sep 29 19:38:40 - - - [30/Sep/2022:02:38:40 +0000] “GET / HTTP/1.1” 500 1124 “-” “Mozilla (CloudronHealth)”

Steps I have tried to fix the problem:

As of note: I run Mautic as an app already packaged within Cloudron. However, I installed a full LAMP stack and it produces the same error (see below attempts).

Attempt 1: Already had Mautic installed the past few weeks and have been playing around with it. Yesterday, I went into the Configuration and made some changes (added some Google Analytics, Monitored Email Inbox, etc.). While making changes, it gave me the error that:

“The site is currently offline due to encountering an error. If the problem persists, please contact the system administrator.”

I tried to also upgrade (through Cloudron) the Mautic application from 4.4.2 to 4.4.3. This didn’t fix it.

Around this same time I was upgrading the Linux kernel from 5.15.0-47 to 5.15.0-051500 thinking some kernel level stuff might be throwing things off. Apparently not.

Attempt 2: Re-install the app, fresh installation

Then went into the configuration, added a slew of configuration items, then it failed. Same error.

Attempt 3: Install a LAMP stack, install Mautic 4.4.3

It started the configuration wizard, got through the steps. Went into the Configuration to make some changes, and it failed. Same error.

Attempt 4: Spawned up a brand spankin’ new Ubuntu v22.04 LTS server, installed LAMP stack, install Mautic 4.4.3

Didn’t make it past the configuration wizard. It failed. Same error.

Attempt 5: Same brand new Ubuntu server, installed LAMP stack, installed Mautic 4.4.2

Thinking that maybe something wrong with the version, tried v4.4.2.

Made it past the configuration wizard… Went into configuration to make some changes/additions, and it failed. Same error.

==========================================

ALL attempts basically crash with:

  1. Initial screen saying there was an error
  2. It then goes into offline mode (how is MAUTIC_OFFLINE defined and how can I undefine it?) and displays the offline web page
  3. Logs show errors (e.g. below)

Likewise, trying to execute below produces the same error:

==========================================
root@host:/app/data/public# php bin/console

In appAppKernelProdContainer.php line 7145:

The parameter “S” must be defined.

==========================================

Or, like the log, again,

==========================================
Sep 29 18:45:11 [Fri Sep 30 01:45:11.588328 2022] [php:notice] [pid 39] [client x.x.x.x:47408] Symfony\Component\DependencyInjection\Exception\InvalidArgumentException: The parameter “S” must be defined. - in file /app/data/public/var/cache/prod/Container4uY04e2/appAppKernelProdContainer.php - at line 7145, refei

==========================================

I’m really at a loss as to why this isn’t working now. I’ve almost exhausted some possibilities.

I don’t see anyone else having this issue after searching everywhere including forums here.

Anyone have any ideas?

Thanks in advance!

-gregg

UPDATE

Nobody spend time on this for now, please. I did some process of elimination and might have found a bug in the code. I’ll write more as soon as I confirm after a few days. :slight_smile:

Thanks.

I almost forgot to come back to this post and post my findings.

This seems to be a very simple and straightforward bug in the code.

In the Configuration → Email Settings, I had a very long generated password that contained symbols/punctuation as well. Once I didn’t include any punctuation characters in the password, then it no longer gave this error.

I forget offhand if it was the “Password for the selected mail service” or the “IMAP password”.