CraftCMS [5.7.1.1] - Cannot Assign Array To Property Verbb\formie\models\Settings::$submissionsBehaviour Of Type String
CraftCMS [5.7.1.1] - Cannot assign array to property verbb\formie\models\Settings::$submissionsBehaviour of type string
CraftCMS is a powerful and flexible content management system (CMS) that allows developers to create custom and scalable websites. However, with the latest update to CraftCMS 5.7.1.1, some users have encountered an error when attempting to update their installation. In this article, we will explore the issue of "Cannot assign array to property verbb\formie\models\Settings::$submissionsBehaviour of type string" and provide a solution to resolve the problem.
When attempting to update CraftCMS to 5.7.1.1, some users have reported encountering the following error:
Cannot assign array to property verbb\formie\models\Settings::$submissionsBehaviour of type string
This error occurs when the Formie plugin is enabled, and it prevents the user from updating CraftCMS and its plugins. The error message suggests that there is an issue with the submissionsBehaviour
property in the Formie plugin's settings.
To reproduce the issue, follow these steps:
- Update CraftCMS to 5.7.1.1.
- Enable the Formie plugin.
- Attempt to update CraftCMS and its plugins.
The Formie plugin's settings may seem relevant to the issue, but in this case, they are not. The settings are as follows:
- Multi-page form: No
- Submission Method: Page Reload
- Client-side Validation: No
- Custom Form Templates: No
However, as mentioned earlier, these settings are not relevant to the issue.
The Craft CMS version being used is 5.7.1.1.
The Formie plugin version being used is 3.0.25.
Yes, the Craft CMS installation is a multi-site setup.
Unfortunately, there is no additional context provided to help resolve the issue.
To resolve the issue, follow these steps:
- Revert the database: Revert the database to a previous version before the update to 5.7.1.1.
- Disable the Formie plugin: Disable the Formie plugin to prevent the error from occurring.
- Update Craft CMS and plugins: Update Craft CMS and its plugins to the latest version.
- Re-enable the Formie plugin: Re-enable the Formie plugin and check if the error occurs.
The issue of "Cannot assign array to property verbb\formie\models\Settings::$submissionsBehaviour of type string" is a known problem with the Formie plugin and Craft CMS 5.7.1.1. To resolve the issue, revert the database, disable the Formie plugin, update Craft CMS and plugins, and then re-enable the Formie plugin. This should resolve the error and allow you to update Craft CMS and its plugins successfully.
If you encounter any issues while following the solution, here are some troubleshooting tips:
- Check the Formie plugin settings: Ensure that the Formie plugin settings are correct and not causing the issue.
- Check the Craft CMS logs: Check the Craft CMS logs for any errors or warnings that may indicate the cause of the issue.
- Contact the Formie plugin support: If the issue persists, contact the Formie plugin support team for further assistance.
If you encounter any related issues, here are some possible solutions:
- Formie plugin update: Update the Formie plugin to the latest version to resolve any known issues.
- Craft CMS update: Update Craft CMS to the latest version to resolve any known issues.
- Plugin conflict: Check for any plugin conflicts that may be causing the issue.
By following the solution and troubleshooting tips outlined in this article, you should be able to resolve the issue of "Cannot assign array to property verbb\formie\models\Settings::submissionsBehaviour of type string**
Q: What is the issue with the Formie plugin and Craft CMS 5.7.1.1?
A: The issue is a known problem with the Formie plugin and Craft CMS 5.7.1.1, where the Formie plugin's submissionsBehaviour
property is set to an array, but it should be a string.
Q: What is the error message I see when I try to update Craft CMS?
A: The error message you see is: Cannot assign array to property verbb\formie\models\Settings::$submissionsBehaviour of type string
.
Q: How do I resolve the issue? A: To resolve the issue, follow these steps:
- Revert the database: Revert the database to a previous version before the update to 5.7.1.1.
- Disable the Formie plugin: Disable the Formie plugin to prevent the error from occurring.
- Update Craft CMS and plugins: Update Craft CMS and its plugins to the latest version.
- Re-enable the Formie plugin: Re-enable the Formie plugin and check if the error occurs.
Q: What if I don't want to revert the database? A: If you don't want to revert the database, you can try updating the Formie plugin to the latest version, which may resolve the issue.
Q: What if I'm still experiencing issues after following the solution? A: If you're still experiencing issues after following the solution, try checking the Formie plugin settings, Craft CMS logs, and contacting the Formie plugin support team for further assistance.
Q: Is this issue specific to the Formie plugin? A: No, this issue is not specific to the Formie plugin. It's a known problem with Craft CMS 5.7.1.1 and the Formie plugin.
Q: Can I update Craft CMS and plugins without disabling the Formie plugin? A: No, you cannot update Craft CMS and plugins without disabling the Formie plugin, as the error will occur and prevent the update from completing.
Q: What if I'm using a multi-site setup? A: If you're using a multi-site setup, you may need to update each site individually, as the issue may occur on each site.
Q: Can I contact the Craft CMS support team for further assistance? A: Yes, you can contact the Craft CMS support team for further assistance. They may be able to provide additional guidance or resolve the issue for you.
Q: What if I'm not comfortable updating Craft CMS and plugins myself? A: If you're not comfortable updating Craft CMS and plugins yourself, consider hiring a professional developer or contacting a Craft CMS support team for assistance.
Q: Is there a patch available for this issue? A: Yes, there is a patch available for this issue. You can contact the Formie plugin support team or the Craft CMS support team for more information.
Q: Can I prevent this issue from occurring in the future? A: Yes, you can prevent this issue from occurring in the future by updating the Formie plugin to the latest version and following the solution above.
By following the Q&A section, you should be able to resolve the issue of "Cannot assign array to property verbb\formie\models\Settings::$submissionsBehaviour of type string" and update Craft CMS and its plugins successfully.