Udate to 4.2 runs into ERR_TOO_MANY_REDIRECTS

Your software
My Mautic version is: 4.2
My PHP version is: PHP 7.4.28
My Database type and version is: Ver 15.1 Distrib 10.5.12-MariaDB, for debian-linux-gnu (x86_64)

Your problem

These errors are showing in the log:

Steps I have tried to fix the problem: Deleted /var/cache/*

I updated successfully via command line. Since then the page is not accessible.
I have another Mautic (4.2) running on the same server. This one is running without problems although it is running on the same Apache server.

Many thanks for your help


Hi, I smell an SSL error or URL setting problem in the air.
Can you check if you are using the right protocol in your config file and not http instead of https?
It’s in /app/config/local.php if you can’t open your Mautic’s config page.

Many thanks Joey, I checked this and I’m using https.
What seems strange to me is that this other installation (on the same server) is running perfect. And I did there the same update from 4.0 to 4.2 three weeks ago.

Hi, can you confirm, that the right https value is in your local.php file?
what happens if you add

$_SERVER['HTTPS'] = 'on';

To second line in index.php just after the opening php tag?

No change, same 403 error, unfortunately.

Can you try to access mautic via incognito mode / private mode browser ?

Also please run this command from mautic root directory

rm -rf var/cache/dev/* var/cache/prod/*

No change with this, too.

It turned out that the problem was not on Mautic site, as assumed by most of you, but on the redirect site.
I’m sorry for that, and thankful, for your all help!
I changed the redirect and now it is working properly.
Why this change came with Mautic 4.2 I can’t tell.

I’m using ispConfig for the server management and had there configured a 301 redirect to the mautic folder.
Now I changed it via Apache directives and changed the Document Root path.

Kind regards and many thanks for your help