-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adding this plugin breaks Mautic completly through SQL error (even without being installed) #290
Comments
Please run So either you have installed it before or there is some DB call that is not checked against the plugin being published. If you find such place please let us know! I'd suggest to install the plugin properly to fix this particular issue until the problematic query is found. |
This is very helpful. We need to add if (!$this->isEnabled()) {
return;
} If anyone would have spare 10 minutes to create the PR please do. |
….php to solve issue acquia#290
Very glad to see active dev/community here, and happy to contribute. Also I was not able to reset my system to the original state where the error occurred in the first place, to test if the fix is working. The plugin was always enabled already, even if I removed it from the plugin folder and cleared the cache in the hard way |
Mautic Version
4.2.x series
PHP version
7.4.30
What browsers are you seeing the problem on?
Firefox
What happened?
CustomObjectsBundle: v1.0.0 (installed via composer)
Mautic: v4.4.5 (installed via composer)
Using DDEV
Adding this plugin the first time to an installation breaks Mautic completely through a SQL error (see below). Not the dashboard nor any other page is accessible anymore. This happens before reaching over to the plugin-configuration page to enable/install this plugin.
It happened already in Mautic v4.4.3, just updated to v4.4.5 because there have been some PRs regarding this plugin.
Reason:
It seems some SQL queries already expecting the table
custom_object
to be present, also the plugin was not installed yet and had no chance to update the database (to create the plugin related tables).How can we reproduce this issue?
Step 1: Install Mautic via composer and login to see everything is working
Step 1: Install the plugin via
composer require acquia/mc-cs-plugin-custom-objects
Step 2: Clear the cache
php bin/console cache:clear
Step 3: Trying to open the Mautic dashboard or any other page will result in the message "Uh oh! I think I broke it. If I do it again, please report me to the system administrator!"
Relevant log output
The text was updated successfully, but these errors were encountered: