How to move MAUTIC from PHP 8.0 to 8.1

Your software
My Mautic version is: 5.0.3
My PHP version is: 8.0.28
My Database type and version is: MySQL 8.0.35

Your problem
My problem is:
Seems like when using PHP8.0-FPM on my NGINX, MAUTIC 5.0.3 works OK. :white_check_mark:

But… when I switch the MAUTIC site over to PHP8.1-FPM, I get the red offline message (see screenshot). :x:

What am I missing?
Could anybody please direct me on how to move MAUTIC to PHP 8.1?

These errors are showing in the log:

Steps I have tried to fix the problem:

Please provide logs from <mautic-root>/var/logs .

My guess some PHP extensions are not installed. Also I would try to install composer packages.

Could someone please post an organized HOW-TO on how to fully migrate MAUTIC 5 from PHP 8.0 to PHP 8.1?
*required PHP extensions
*composer modules, modification & commands (if required)

I’ve installed every imaginable PHP8.1 extension and when I switch over from PHP8.0-FPM to PHP8.1-FPM on NGINX, I still get that red error message so I have to switch it back to 8.0 for it to work again. Are you sure MAUTIC 5.0.3 supports PHP 8.1?

Yes, it just have to be small enough version of 8.1:

For some reason, 5.0.3 runs on 8.0 but not on 8.1.
What’s missing?

Did you install all the necessary php extensions and reinstall php dependencies using php 8.1?

What is the error that you are getting ?

Best, M.