Elasticsuite: Uninstall?

Created on 19 Jan 2017  路  3Comments  路  Source: Smile-SA/elasticsuite

Sadly I've had to uninstall this module for the moment (for reasons out of my control), once I've disabled the module and I go to edit a category the page throws:

Fatal error: Uncaught Error: Class 'Smile\ElasticsuiteVirtualCategory\Model\Category\Attribute\Backend\VirtualRule' not found in /public_html/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php:93 Stack trace: #0 /public_html/vendor/magento/framework/ObjectManager/Factory/Compiled.php(88): Magento\Framework\ObjectManager\Factory\AbstractFactory->createObject('Smile\\Elasticsu...', Array) #1 /public_html/vendor/magento/framework/ObjectManager/ObjectManager.php(57): Magento\Framework\ObjectManager\Factory\Compiled->create('Smile\\Elasticsu...', Array) #2 /public_html/vendor/magento/framework/Validator/UniversalFactory.php(36): Magento\Framework\ObjectManager\ObjectManager->create('Smile\\Elasticsu...', Array) #3 /public_html/vendor/magento/module-eav/Model/Entity/Attribute/AbstractAt in /public_html/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php on line 93

This is after disabling the module, etc. Is there something I'm missing?
Thanks!

Most helpful comment

Hello @nikonratm ,

you will have to delete the attributes the module adds to the categories.

Especially the virtual_rule one which has a custom backend model that can lead to your issue when ElasticSuite is removed.

Try this query to remove it : DELETE FROM eav_attribute where attribute_code='virtual_rule'. This should do the trick for you.

All 3 comments

Hello @nikonratm ,

you will have to delete the attributes the module adds to the categories.

Especially the virtual_rule one which has a custom backend model that can lead to your issue when ElasticSuite is removed.

Try this query to remove it : DELETE FROM eav_attribute where attribute_code='virtual_rule'. This should do the trick for you.

EDIT: flushing Mag cache after doing this fixed it, thanks!

Run the following SQL queries in order to completely remove Smile Elasticsuite from the db.

DELETE FROM setup_module where module='Smile_ElasticsuiteCore';
DELETE FROM setup_module where module='Smile_ElasticsuiteCatalog';
DELETE FROM setup_module where module='Smile_ElasticsuiteCatalogRule';
DELETE FROM setup_module where module='Smile_ElasticsuiteSwatches';
DELETE FROM setup_module where module='Smile_ElasticsuiteCatalogOptimizer';
DELETE FROM setup_module where module='Smile_ElasticsuiteThesaurus';
DELETE FROM setup_module where module='Smile_ElasticsuiteTracker';
DELETE FROM setup_module where module='Smile_ElasticsuiteVirtualCategory';

DELETE FROM eav_attribute where attribute_code='virtual_rule';
DELETE FROM eav_attribute where attribute_code='is_virtual_category';
DELETE FROM eav_attribute where attribute_code='virtual_category_root';
DELETE FROM smile_elasticsuite_optimizer;
DELETE FROM smile_elasticsuite_optimizer_search_container;

DROP TABLE smile_elasticsuite_optimizer_search_container;
DROP TABLE smile_elasticsuite_optimizer;
DROP TABLE smile_elasticsuite_relevance_config_data;
DROP TABLE smile_elasticsuite_thesaurus_expanded_terms;
DROP TABLE smile_elasticsuite_thesaurus_reference_terms;
DROP TABLE smile_elasticsuite_thesaurus_store;
DROP TABLE smile_elasticsuite_thesaurus;
DROP TABLE smile_virtualcategory_catalog_category_product_position;
DROP TABLE smile_elasticsuitecatalog_search_query_product_position;
DROP TABLE smile_elasticsuitecatalog_category_filterable_attribute;

ALTER TABLE catalog_eav_attribute DROP COLUMN is_displayed_in_autocomplete;
ALTER TABLE catalog_eav_attribute DROP COLUMN is_used_in_spellcheck;
ALTER TABLE catalog_eav_attribute DROP COLUMN facet_min_coverage_rate;
ALTER TABLE catalog_eav_attribute DROP COLUMN facet_max_size;
ALTER TABLE catalog_eav_attribute DROP COLUMN facet_sort_order;
ALTER TABLE catalog_eav_attribute DROP COLUMN display_pattern;
ALTER TABLE catalog_eav_attribute DROP COLUMN display_precision;

Taken from this page https://github.com/Smile-SA/elasticsuite/wiki/ModuleUninstall

Was this page helpful?
0 / 5 - 0 ratings

Related issues

rvitaliy picture rvitaliy  路  3Comments

JonathanBBD picture JonathanBBD  路  3Comments

vahir2016 picture vahir2016  路  4Comments

gihovani picture gihovani  路  4Comments

tschirmer picture tschirmer  路  4Comments