Skip to content
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

Uninstall script missing eav_attribute column #3390

Open
vseager opened this issue Sep 18, 2024 · 2 comments
Open

Uninstall script missing eav_attribute column #3390

vseager opened this issue Sep 18, 2024 · 2 comments
Assignees

Comments

@vseager
Copy link
Contributor

vseager commented Sep 18, 2024

The module adds a sort_direction column to eav_attribute but this isn't included in the uninstall script:

public function addSortDirectionAttribute($eavSetup)
{
// Installing the new attribute.
$eavSetup->addAttribute(
Category::ENTITY,
'sort_direction',
[
'type' => 'varchar',

https://github.com/Smile-SA/elasticsuite/wiki/ModuleUninstall

Preconditions

Latest version

Steps to reproduce

  1. Install latest version of Elasticsuite
  2. Uninstall Elasticsuite and run SQL commands: https://github.com/Smile-SA/elasticsuite/wiki/ModuleUninstall

Expected result

  1. You can edit categories in the admin

Actual result

  1. Can't edit categories in Magento admin
ReflectionException: Class "Smile\ElasticsuiteCatalog\Model\Category\Attribute\Source\SortDirection" does not exist in /vendor/magento/framework/Code/Reader/ClassReader.php:34
@ablary-silicon
Copy link

same problem on my environment

@vahonc vahonc self-assigned this Sep 23, 2024
@vahonc
Copy link
Collaborator

vahonc commented Sep 23, 2024

Hi guys,

You need to perform this command: DELETE FROM eav_attribute where attribute_code='sort_direction';

Thanks for your feedback, I'll update the UnInstall commands in our Wiki.

BR,
Vadym

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants