Your software
My Mautic version is: 6.0.7
My PHP version is: 8.3.20
My Database type and version is: MySQL 8
Your problem
My problem is: Update from 5 to 6 is done through the composer, but the home page keep directing to the installer page(Install | Mautic)
These errors are showing in the log: no error except this one
hassan@mautic-deploy-prod-instance:/var/www/mautic$ sudo -u www-data php /var/www/mautic/bin/console doctrine:schema:validate
PHP Warning: Module "mbstring" is already loaded in Unknown on line 0
Mapping
-------
[FAIL] The entity-class Mautic\DynamicContentBundle\Entity\DynamicContentLeadData mapping is invalid:
* The association Mautic\DynamicContentBundle\Entity\DynamicContentLeadData#dynamicContent refers to the inverse side field Mautic\DynamicContentBundle\Entity\DynamicContent#id which is not defined as association.
* The association Mautic\DynamicContentBundle\Entity\DynamicContentLeadData#dynamicContent refers to the inverse side field Mautic\DynamicContentBundle\Entity\DynamicContent#id which does not exist.
Database
--------
[ERROR] The database schema is not in sync with the current mapping file.
Steps I have tried to fix the problem:
hassan@mautic-deploy-prod-instance:/var/www/mautic$ sudo -u www-data php /var/www/mautic/bin/console doctrine:migrations:status
PHP Warning: Module "mbstring" is already loaded in Unknown on line 0
+----------------------+----------------------+------------------------------------------------------------------------+
| Configuration |
+----------------------+----------------------+------------------------------------------------------------------------+
| Storage | Type | Doctrine\Migrations\Metadata\Storage\TableMetadataStorageConfiguration |
| | Table Name | edraak_migrations |
| | Column Name | version |
|----------------------------------------------------------------------------------------------------------------------|
| Database | Driver | Doctrine\DBAL\Driver\PDO\MySQL\Driver |
| | Name | mautic6 |
|----------------------------------------------------------------------------------------------------------------------|
| Versions | Previous | Mautic\Migrations\Version20240725105507 |
| | Current | Mautic\Migrations\Version20250207035735 |
| | Next | Mautic\Migrations\Version20190326190241 |
| | Latest | Mautic\Migrations\Versionzz20230929183000 |
|----------------------------------------------------------------------------------------------------------------------|
| Migrations | Executed | 20 |
| | Executed Unavailable | 0 |
| | Available | 62 |
| | New | 42 |
|----------------------------------------------------------------------------------------------------------------------|
| Migration Namespaces | Mautic\Migrations | /var/www/mautic/docroot/app/migrations |
+----------------------+----------------------+------------------------------------------------------------------------+
[2026-01-08 11:34:29] [notice] Table edraak_sync_object_mapping does not exist or the index edraak_internal_object_id_idx already exists.
[2026-01-08 11:34:29] [notice] Migration Mautic\Migrations\Version20241212090146 skipped during Pre-Checks. Reason: "Schema includes this migration"
[2026-01-08 11:34:29] [notice] Column is_read_only already exists
[2026-01-08 11:34:29] [notice] Migration Mautic\Migrations\Version20241227065658 skipped during Pre-Checks. Reason: "Schema includes this migration"
[2026-01-08 11:34:29] [notice] Migration Mautic\Migrations\Versionzz20230929183000 skipped during Pre-Checks. Reason: "There are no local config files to migrate. Skipping the migration."
[2026-01-08 11:34:29] [notice] finished in 1815.7ms, used 58.5M memory, 42 migrations executed, 0 sql queries
[2026-01-08 11:34:29]
[2026-01-08 11:34:29]
[2026-01-08 11:34:29] [OK] Successfully migrated to version: Mautic\Migrations\Versionzz20230929183000
[2026-01-08 11:34:29]
[2026-01-08 11:34:29]
[2026-01-08 11:34:29]
Cache cleared also.
What’s the issue here?