Hello,
I apologise for my lack of knowledge, but I have another question: Do you need to apply all these migrations, and if so, how should they be applied?
I followed the tutorial at this link: How to update Mautic — Mautic Documentation 0.1 documentation
Everything went smoothly up until the "mautic:update
–finish" step, but I’m uncertain which migrations are necessary.
The two features I’ve noticed aren’t working are:
- Email sending in Channels > Emails, only sends emails to the owner.
- Forms are also not functioning.
[~/mautic]# bin/console mautic:update:apply
Are you sure you wish to update Mautic to the latest version? yes
Step 1 [>---------------------------] Running pre-update checks...
One or more errors occurred while checking your environment prior to updating Mautic:
- Great! You are running the current version of Mautic.
[~/mautic]# bin/console mautic:update:apply --finish
Step 2 [============================] Success! You are now running version 5.1.1 of Mautic.
[~/mautic]# bin/console doctrine:schema:validate
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.
[~/mautic]#
[~/mautic]# bin/console doctrine:migrations:up-to-date
[ERROR] Out-of-date! 6 migrations are available to execute.
[ERROR] You have 49 previously executed migrations in the database that are not registered migrations.
[~/mautic]# bin/console doctrine:migrations:status
+----------------------+----------------------+------------------------------------------------------------------------+
| Configuration |
+----------------------+----------------------+------------------------------------------------------------------------+
| Storage | Type | Doctrine\Migrations\Metadata\Storage\TableMetadataStorageConfiguration |
| | Table Name | migrations |
| | Column Name | version |
|----------------------------------------------------------------------------------------------------------------------|
| Database | Driver | Doctrine\DBAL\Driver\PDO\MySQL\Driver |
| | Name | vivia552_mautic |
|----------------------------------------------------------------------------------------------------------------------|
| Versions | Previous | Mautic\Migrations\Version20240416112112 |
| | Current | Mautic\Migrations\Version20240708153845 |
| | Next | Mautic\Migrations\Version20201026101117 |
| | Latest | Mautic\Migrations\Versionzz20230929183000 |
|----------------------------------------------------------------------------------------------------------------------|
| Migrations | Executed | 85 |
| | Executed Unavailable | 49 |
| | Available | 42 |
| | New | 6 |
|----------------------------------------------------------------------------------------------------------------------|
| Migration Namespaces | Mautic\Migrations | /home2/vivia552/mautic/app/migrations |
+----------------------+----------------------+------------------------------------------------------------------------+
[~/mautic]# bin/console doctrine:migrations:list
+-------------------------------------------+-------------------------+---------------------+----------------+-------------+
| Migration Versions | |
+-------------------------------------------+-------------------------+---------------------+----------------+-------------+
| Migration | Status | Migrated At | Execution Time | Description |
+-------------------------------------------+-------------------------+---------------------+----------------+-------------+
| 20180508202930 | migrated, not available | 2023-12-13 01:35:30 | | |
| 20180702014364 | migrated, not available | 2023-12-13 01:35:30 | | |
| 20180702014365 | migrated, not available | 2023-12-13 01:35:31 | | |
| 20180821144204 | migrated, not available | 2023-12-13 01:35:32 | | |
| 20180921144421 | migrated, not available | 2023-12-13 01:35:33 | | |
| 20181111095447 | migrated, not available | 2023-12-13 01:35:34 | | |
| 20190704154940 | migrated, not available | 2023-12-13 01:35:34 | | |
| 20190724110039 | migrated, not available | 2023-12-13 01:35:37 | | |
| 20191017140848 | migrated, not available | 2023-12-13 01:35:37 | | |
| 20191126093923 | migrated, not available | 2023-12-13 01:35:38 | | |
| 20191206113956 | migrated, not available | 2023-12-13 01:35:39 | | |
| 20191219155630 | migrated, not available | 2023-12-13 01:35:40 | | |
| 20200211095409 | migrated, not available | 2023-12-13 01:35:41 | | |
| 20200212141530 | migrated, not available | 2023-12-13 01:35:42 | | |
| 20200220172041 | migrated, not available | 2023-12-13 01:35:42 | | |
| 20200227110431 | migrated, not available | 2023-12-13 01:35:42 | | |
| 20200302164801 | migrated, not available | 2023-12-13 01:35:42 | | |
| 20200331160919 | migrated, not available | 2023-12-13 01:35:42 | | |
| 20200409102100 | migrated, not available | 2023-12-13 01:35:43 | | |
| 20200422144300 | migrated, not available | 2023-12-13 01:35:43 | | |
| 20200507122854 | migrated, not available | 2023-12-13 01:35:44 | | |
| 20200729170800 | migrated, not available | 2023-12-13 01:35:45 | | |
| 20200805185714 | migrated, not available | 2023-12-13 01:35:45 | | |
| 20200810153131 | migrated, not available | 2023-12-13 01:35:46 | | |
| 20200812180900 | migrated, not available | 2023-12-13 01:35:47 | | |
| 20200815153711 | migrated, not available | 2023-12-13 01:35:47 | | |
| 20200924080139 | migrated, not available | 2023-12-13 01:35:48 | | |
| 20201015084627 | migrated, not available | 2023-12-13 01:35:48 | | |
| 20201102120710 | migrated, not available | 2023-12-13 01:35:48 | | |
| 20201102133546 | migrated, not available | 2023-12-13 01:35:48 | | |
| 20201105120328 | migrated, not available | 2023-12-13 01:35:49 | | |
| 20201120122846 | migrated, not available | 2023-12-13 01:35:49 | | |
| 20201123070813 | migrated, not available | 2023-12-13 01:35:50 | | |
| 20201125155904 | migrated, not available | 2023-12-13 01:35:50 | | |
| 20201130201631 | migrated, not available | 2023-12-13 01:35:50 | | |
| 20201207114926 | migrated, not available | 2023-12-13 01:35:50 | | |
| 20201207140911 | migrated, not available | 2023-12-13 01:35:51 | | |
| 20201228041109 | migrated, not available | 2023-12-13 01:35:51 | | |
| 20210104171005 | migrated, not available | 2023-12-13 01:35:52 | | |
| 20210203143600 | migrated, not available | 2023-12-13 01:35:52 | | |
| 20210223174702 | migrated, not available | 2023-12-13 01:35:53 | | |
| 20210502162314 | migrated, not available | 2023-12-13 01:35:53 | | |
| 20210520100503 | migrated, not available | 2023-12-13 01:35:53 | | |
| 20210609191822 | migrated, not available | 2023-12-13 01:35:55 | | |
| 20210614151138 | migrated, not available | 2023-12-13 01:35:55 | | |
| 20210623071326 | migrated, not available | 2023-12-13 01:35:55 | | |
| 20220111202917 | migrated, not available | 2023-12-13 01:35:55 | | |
| 20230519081315 | migrated, not available | 2023-12-13 01:35:55 | | |
| 20230522115137 | migrated, not available | 2023-12-13 01:35:56 | | |
| Mautic\Migrations\Version020230615115326 | migrated | 2024-10-25 14:49:38 | 1.392s | |
| Mautic\Migrations\Version20190326190241 | migrated | 2024-10-25 14:49:40 | 0.345s | |
| Mautic\Migrations\Version20190410143658 | migrated | 2024-10-25 14:49:40 | 0.288s | |
| Mautic\Migrations\Version20190524124819 | migrated | 2024-10-25 14:49:40 | 0.31s | |
| Mautic\Migrations\Version20191106152509 | migrated | 2024-10-25 14:49:41 | 0.001s | |
| Mautic\Migrations\Version20200415135706 | migrated | 2024-10-25 14:49:41 | 0.33s | |
| Mautic\Migrations\Version20200513162918 | migrated | 2024-10-25 14:49:41 | 0.441s | |
| Mautic\Migrations\Version20200917152259 | migrated | 2024-10-25 14:49:41 | 0.264s | |
| Mautic\Migrations\Version20201026101117 | not migrated | | | |
| Mautic\Migrations\Version20210112162046 | migrated | 2024-10-25 14:49:42 | 0.257s | |
| Mautic\Migrations\Version20210217115150 | migrated | 2024-10-25 14:49:42 | 0.349s | |
| Mautic\Migrations\Version20210420113309 | migrated | 2024-10-25 14:49:42 | 0.325s | |
| Mautic\Migrations\Version20211026152443 | migrated | 2024-10-25 14:49:43 | 0.312s | |
| Mautic\Migrations\Version20211026153057 | migrated | 2024-10-25 14:49:43 | 0.286s | |
| Mautic\Migrations\Version20211110070503 | migrated | 2024-10-25 14:49:43 | 0.311s | |
| Mautic\Migrations\Version20211209022550 | migrated | 2024-10-25 14:49:44 | 0.042s | |
| Mautic\Migrations\Version20220216161028 | migrated | 2024-10-25 14:49:44 | 0.084s | |
| Mautic\Migrations\Version20220429091934 | migrated | 2024-10-25 14:49:44 | 0.323s | |
| Mautic\Migrations\Version20220722074516 | migrated | 2024-10-25 14:49:44 | 0.352s | |
| Mautic\Migrations\Version20221010121758 | migrated | 2024-10-25 14:49:44 | 0.033s | |
| Mautic\Migrations\Version20221014061125 | migrated | 2024-10-25 14:49:45 | 0.296s | |
| Mautic\Migrations\Version20221014081742 | migrated | 2024-10-25 14:49:45 | 0.337s | |
| Mautic\Migrations\Version20221128145933 | not migrated | | | |
| Mautic\Migrations\Version20230131133732 | migrated | 2024-10-25 14:49:45 | 0.387s | |
| Mautic\Migrations\Version20230307083702 | migrated | 2024-10-25 14:49:46 | 0.078s | |
| Mautic\Migrations\Version20230311195347 | migrated | 2024-10-25 14:49:46 | 0.003s | |
| Mautic\Migrations\Version20230321133733 | migrated | 2024-10-25 14:49:46 | 0.359s | |
| Mautic\Migrations\Version20230424083829 | migrated | 2024-10-25 14:49:46 | 0.268s | |
| Mautic\Migrations\Version20230519154448 | migrated | 2024-10-25 14:49:46 | 0.3s | |
| Mautic\Migrations\Version20230522141144 | not migrated | | | |
| Mautic\Migrations\Version20230525202700 | migrated | 2024-10-25 14:49:47 | 0.323s | |
| Mautic\Migrations\Version20230606111852 | not migrated | | | |
| Mautic\Migrations\Version20230615101328 | migrated | 2024-10-25 14:49:47 | 0.001s | |
| Mautic\Migrations\Version20230621074925 | migrated | 2024-10-25 14:49:47 | 0.605s | |
| Mautic\Migrations\Version20230627140512 | not migrated | | | |
| Mautic\Migrations\Version20231110103625 | migrated | 2024-10-25 14:49:48 | 0.001s | |
| Mautic\Migrations\Version20231206152313 | migrated | 2024-10-25 14:49:48 | 0.518s | |
| Mautic\Migrations\Version20231207235400 | migrated | 2024-10-25 14:49:48 | 0.423s | |
| Mautic\Migrations\Version20240226114528 | migrated | 2024-10-25 14:49:49 | 0.371s | |
| Mautic\Migrations\Version20240416112112 | migrated | 2024-10-25 14:49:49 | 0.31s | |
| Mautic\Migrations\Version20240708153845 | migrated | 2024-10-25 14:49:49 | 0.02s | |
| Mautic\Migrations\Versionzz20230929183000 | not migrated | | | |
+-------------------------------------------+-------------------------+---------------------+----------------+-------------+
[~/mautic]# bin/console doctrine:migrations:latest
Mautic\Migrations\Versionzz20230929183000