Can I install Mautic 5 and after using the database of the 4.1.0 version?

Your software
My Mautic version is: 4.1.0
My PHP version is: 7.4 but I can set it up to 8.3
My Database type and version is: 10.6.16-MariaDB-cll-lve-log

Your problem
My problem is: that I can’t do any update or upgrade from the 4.1.0 version.

These errors are showing in the log: not, but I have “403 forbidden” if I try to do the update

Steps I have tried to fix the problem:
I have tried to use Composer and Notification Update, but I don’t have any solutions.
I ask you if I can do a backup of the database of the 4.1.0 Mautic installation. After doing a new Mautic 5.x installation and after restoring the backup of the Mautic 4.1.0 into the database of the new Mautic 5.x installation.
I want to use the new version of Mautic, but I don’t want to lose all the data from the old database…

1 Like

Hi,
I have tried the following solution to update from 4.1.0 to 4.4.11, after the Mautic update I edited the .htaccess and now I don’t the 403 forbidden error message, but I have another error message that I cannot display the login form…

Do a full backup of source and database, then try to update mautic using CLI,

see this for detals:

https://docs.mautic.org/en/5.x/getting_started/how_to_update_mautic.html

Hello, I’ll try this on my instance to see if can have upgrade with CLI.

Usually when tried to upgrade from GUI I got this frustrated 403 forbidden error. Which I had to rollback after on previous version. I’d like to have the latest, but somehow to overcome this trouble.

Hi,

I also follow the steps of the GUI part and got the 403. Mautic try to check my user with https://mautic.ddev.site/index_dev.php/s/login_check

The steps:

I use the project ddev and select the git branch Mautic 4.4. and I

$ ddev ddev-setup-mautic

I update the config.yml

php_version: "8.0"
webimage_extra_packages: [php8.0-imap]

$ ddev restart

Then, I try to update mautic

$ ddev exec php bin:console mautic:update:apply
$ ddev exec php bin:console mautic:update:apply --finish

# Success! You are now running version 5.1.0 of Mautic.

I update to php 8.2

php_version: "8.2"
webimage_extra_packages: [php8.2-imap]

$ ddev restart

I open my browser on https://mautic.ddev.site/s/login

Finally I got 403 forbidden because Mautic tries to check my user admin with
https://mautic.ddev.site/index_dev.php/s/login_check

I suppose there is an issue with the .htaccess ?