-
Notifications
You must be signed in to change notification settings - Fork 642
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
[4.x]: Rebuilding project config throws an Invalid condition class becasue of removed plugins #12881
Comments
Thanks for reporting that! Fixed for the next release. |
@brandonkelly i tried to test it with the fix. now i have problem with another removed plugin and its config:
and stacktrace is: Error: Class "putyourlightson\campaign\elements\CampaignElement" not found in /var/www/html/craft4test/vendor/craftcms/cms/src/elements/conditions/ElementCondition.php:115
|
@vnali That should be fully fixed in 4.4.2. |
Sorry to bother you @brandonkelly, the error
received on elementCondition _construct() and elementType is null so InvalidConfigException is not catched maybe? and parameters are like this:
|
Doh… fixed it for cases where the |
4.4.3 is out with that fix. |
@brandonkelly I just tested 4.4.3 and had same problem . i 'm not sure if it is proper fix but replaced |
@vnali Thanks! Updated for that possibility as well. |
Thanks @brandonkelly with the latest fix i'm able to rebuild the project config |
Craft 4.4.4 is out now with that fix. |
What happened?
Description
After removing a plugin, i can see some configs of that plugin remains in project config. Also rebuilding the project config, throws an error because of those configs. For example:
removing craft commerce and rebuilding project config throws :
Invalid condition class: craft\commerce\elements\conditions\orders\OrderCondition
i can see these lines on loaded project config even after removing the commerce plugin
Craft CMS version
4.3.11
PHP version
No response
Operating system and version
No response
Database type and version
No response
Image driver and version
No response
Installed plugins and versions
The text was updated successfully, but these errors were encountered: