2017 © Pedro Peláez
 

magento2-module attribute-index-fix

N/A

image

swiftotter/attribute-index-fix

N/A

  • Tuesday, February 6, 2018
  • by JosephMaxwell
  • Repository
  • 2 Watchers
  • 1 Stars
  • 402 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 1 Open issues
  • 7 Versions
  • 2 % Grown

The README.md

Attribute Index Fix

Magento 2 supports custom source models for attributes except for indexing them into the catalog_product_index_eav table (which feeds layered navigation)., (*1)

The original problem is found in \Magento\Catalog\Model\ResourceModel\Product\Indexer\Eav\Source:302 where it ensures that the values saved exist in the eav_attribute_option table. When using that custom source model, those values do not exist., (*2)

The first / easy solution is to comment out those lines. That doesn't work for production so a more durable method needs to be had. While using a preference is not preferrable, this will solve the problem in the short term., (*3)

After some research and many hours spent, I found that @maderlock has a good fix: https://github.com/magento/magento2/issues/417#issuecomment-265146285, (*4)

Here is how to get this running:, (*5)

  • composer require swiftotter/attribute-index-fix
  • php bin/magento module:enable SwiftOtter_AttributeIndexFix
  • php bin/magento cache:clean

The Versions

06/02 2018

dev-master

9999999-dev

N/A

  Sources   Download

OSL-3.0 AFL-3.0

The Requires

  • php ~7.0.0
  • lib-libxml *

 

06/02 2018

v2.2

2.2.0.0

N/A

  Sources   Download

OSL-3.0 AFL-3.0

The Requires

  • php ~7.0.0
  • lib-libxml *

 

24/01 2018

v2.1

2.1.0.0

N/A

  Sources   Download

OSL-3.0 AFL-3.0

The Requires

  • php ~7.0.0
  • lib-libxml *

 

30/09 2017

2

2.0.0.0

N/A

  Sources   Download

OSL-3.0 AFL-3.0

The Requires

  • php ~7.0.0
  • magento/framework 100.1.*
  • lib-libxml *

 

18/01 2017

1.0.2

1.0.2.0

N/A

  Sources   Download

OSL-3.0 AFL-3.0

The Requires

  • php ~7.0.0
  • magento/framework 100.1.*
  • lib-libxml *

 

18/01 2017

1.0.1

1.0.1.0

N/A

  Sources   Download

OSL-3.0 AFL-3.0

The Requires

  • php ~7.0.0
  • magento/framework 100.1.*
  • lib-libxml *

 

18/01 2017

1.0.0

1.0.0.0

N/A

  Sources   Download

OSL-3.0 AFL-3.0

The Requires

  • php ~7.0.0
  • magento/framework 100.1.*
  • lib-libxml *