magesuite / magesuite

The main MageSuite (meta)package to rule them all
Open Software License 3.0
170 stars 44 forks source link

MageSuite, as an infection, cannot be removed from Magento without problems! #85

Open Alex7Lem opened 3 years ago

Alex7Lem commented 3 years ago

After installing and removing the creativestyle/magesuite modules, errors occur when:

Run CLI commands: bin/magento setup:upgrade bin/magento indexer:reindex

Opening pages in the admin panel: Catalog / Products / Action / Edit Catalog / Categories

Magento ver. 2.4.2

Install:

composer require creativestyle/magesuite
bin/magento setup:upgrade
bin/magento setup:di:compile

Remove:

composer remove creativestyle/creative-patterns creativestyle/magesuite creativestyle/magesuite-brand-management creativestyle/magesuite-cache creativestyle/magesuite-category creativestyle/magesuite-category-hero creativestyle/magesuite-category-icon creativestyle/magesuite-clear-attributes creativestyle/magesuite-cms-duplicate creativestyle/magesuite-cms-product-backlink creativestyle/magesuite-cms-tag-manager creativestyle/magesuite-common-blocks creativestyle/magesuite-content-constructor creativestyle/magesuite-content-constructor-admin creativestyle/magesuite-content-constructor-asset creativestyle/magesuite-content-constructor-category-page creativestyle/magesuite-content-constructor-frontend creativestyle/magesuite-content-constructor-remove-layout-validation creativestyle/magesuite-daily-deal creativestyle/magesuite-defer-js creativestyle/magesuite-discount creativestyle/magesuite-dynamic-directives creativestyle/magesuite-elasticsuite-addons creativestyle/magesuite-email-attachments creativestyle/magesuite-extended-exception creativestyle/magesuite-file-upload creativestyle/magesuite-frontend creativestyle/magesuite-gdpr creativestyle/magesuite-google-api creativestyle/magesuite-image-optimization creativestyle/magesuite-image-resize creativestyle/magesuite-js-translation-fix creativestyle/magesuite-maintenance-page creativestyle/magesuite-media creativestyle/magesuite-navigation creativestyle/magesuite-opengraph creativestyle/magesuite-pagination creativestyle/magesuite-persistent-sitemap creativestyle/magesuite-product-bestsellers-ranking creativestyle/magesuite-product-details-reorder creativestyle/magesuite-product-positive-indicators creativestyle/magesuite-product-tile creativestyle/magesuite-products-renderer creativestyle/magesuite-sentry-io creativestyle/magesuite-seo-canonical creativestyle/magesuite-seo-hreflang creativestyle/magesuite-server-side-swatches creativestyle/magesuite-shipping-addons creativestyle/magesuite-soft-db-status-validation creativestyle/magesuite-sorting creativestyle/magesuite-theme-helpers creativestyle/magesuite-thumbnail-remove creativestyle/magesuite-translation-center creativestyle/magesuite-url-regeneration creativestyle/magesuite-url-rewrite creativestyle/magesuite-url-rewrite-mass-actions creativestyle/theme-creativeshop

Error: bin/magento setup:upgrade

Class MageSuite\BrandManagement\Model\Source\BrandList does not exist

Error: bin/magento indexer:reindex

Product EAV index exception: Class MageSuite\BrandManagement\Model\Source\BrandList does not exist

Error: Catalog / Products / Action / Edit

1 exception(s):
Exception #0 (ReflectionException): Class MageSuite\BrandManagement\Model\Source\BrandList does not exist

Exception #0 (ReflectionException): Class MageSuite\BrandManagement\Model\Source\BrandList does not exist
<pre>#1 Magento\Framework\Code\Reader\ClassReader->getConstructor() called at [vendor/magento/framework/ObjectManager/Definition/Runtime.php:54]
#2 Magento\Framework\ObjectManager\Definition\Runtime->getParameters() called at [vendor/magento/framework/ObjectManager/Factory/Dynamic/Developer.php:48]
#3 Magento\Framework\ObjectManager\Factory\Dynamic\Developer->create() called at [vendor/magento/framework/ObjectManager/ObjectManager.php:56]
#4 Magento\Framework\ObjectManager\ObjectManager->create() called at [vendor/magento/framework/Validator/UniversalFactory.php:36]
#5 Magento\Framework\Validator\UniversalFactory->create() called at [vendor/magento/module-eav/Model/Entity/Attribute/AbstractAttribute.php:642]
#6 Magento\Eav\Model\Entity\Attribute\AbstractAttribute->getSource() called at [generated/code/Magento/Catalog/Model/ResourceModel/Eav/Attribute/Interceptor.php:824]
#7 Magento\Catalog\Model\ResourceModel\Eav\Attribute\Interceptor->getSource() called at [vendor/magento/module-catalog/Ui/DataProvider/Product/Form/Modifier/Eav.php:696]
#8 Magento\Catalog\Ui\DataProvider\Product\Form\Modifier\Eav->setupAttributeMeta() called at [vendor/magento/module-catalog/Ui/DataProvider/Product/Form/Modifier/Eav.php:408]
#9 Magento\Catalog\Ui\DataProvider\Product\Form\Modifier\Eav->getContainerChildren() called at [vendor/magento/module-catalog/Ui/DataProvider/Product/Form/Modifier/Eav.php:381]
#10 Magento\Catalog\Ui\DataProvider\Product\Form\Modifier\Eav->addContainerChildren() called at [vendor/magento/module-catalog/Ui/DataProvider/Product/Form/Modifier/Eav.php:356]

Error: Catalog / Categories

1 exception(s):
Exception #0 (ReflectionException): Class MageSuite\Frontend\Model\Category\Attribute\Source\CategoryDisplay does not exist

Exception #0 (ReflectionException): Class MageSuite\Frontend\Model\Category\Attribute\Source\CategoryDisplay does not exist
<pre>#1 Magento\Framework\Code\Reader\ClassReader->getConstructor() called at [vendor/magento/framework/ObjectManager/Definition/Runtime.php:54]
#2 Magento\Framework\ObjectManager\Definition\Runtime->getParameters() called at [vendor/magento/framework/ObjectManager/Factory/Dynamic/Developer.php:48]
#3 Magento\Framework\ObjectManager\Factory\Dynamic\Developer->create() called at [vendor/magento/framework/ObjectManager/ObjectManager.php:56]
#4 Magento\Framework\ObjectManager\ObjectManager->create() called at [vendor/magento/framework/Validator/UniversalFactory.php:36]
#5 Magento\Framework\Validator\UniversalFactory->create() called at [vendor/magento/module-eav/Model/Entity/Attribute/AbstractAttribute.php:642]
#6 Magento\Eav\Model\Entity\Attribute\AbstractAttribute->getSource() called at [generated/code/Magento/Catalog/Model/ResourceModel/Eav/Attribute/Interceptor.php:824]
#7 Magento\Catalog\Model\ResourceModel\Eav\Attribute\Interceptor->getSource() called at [vendor/magento/module-catalog/Model/Category/DataProvider.php:427]
#8 Magento\Catalog\Model\Category\DataProvider->getAttributesMeta() called at [vendor/magento/framework/Interception/Interceptor.php:58]
#9 Magento\Catalog\Model\Category\DataProvider\Interceptor->___callParent() called at [vendor/magento/framework/Interception/Interceptor.php:138]
#10 Magento\Catalog\Model\Category\DataProvider\Interceptor->Magento\Framework\Interception\{closure}() called at [vendor/magento/framework/Interception/Interceptor.php:153]
LotsofPixels commented 3 years ago

Find in eav_attribute an entry with source_model : MageSuite\Frontend\Model\Category\Attribute\Source\CategoryDisplay and delete this entry. Even better, find all source_model entries starting with MageSuite\ and delete these.

fritzmg commented 3 years ago

This problem is not unique to MageSuite btw. In general it is possible in Magento to define custom attributes which will then be stored in the database. If you uninstall an extension which provided such an attribute, such entries are always left behind.