2017 © Pedro Peláez
 

magento2-module attribute-index-fix

N/A

image

fidesio/attribute-index-fix

N/A

  • Saturday, September 23, 2017
  • by fidesio
  • Repository
  • 5 Watchers
  • 0 Stars
  • 20 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 0 Open issues
  • 6 Versions
  • 5 % 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 fidesio/attribute-index-fix
  • php bin/magento module:enable SwiftOtter_AttributeIndexFix
  • php bin/magento cache:clean

The Versions

23/09 2017

dev-master

9999999-dev

N/A

  Sources   Download

OSL-3.0 AFL-3.0

The Requires

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

 

23/09 2017

1.1.0

1.1.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/04 2017

1.0.3

1.0.3.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 *