PHPackages                             swiftotter/attribute-index-fix - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. swiftotter/attribute-index-fix

ActiveMagento2-module[Utility &amp; Helpers](/categories/utility)

swiftotter/attribute-index-fix
==============================

N/A

v2.2(8y ago)11.4k3[1 issues](https://github.com/SwiftOtter/AttributeIndexFix/issues)OSL-3.0PHPPHP ~7.0.0

Since Jan 18Pushed 8y ago2 watchersCompare

[ Source](https://github.com/SwiftOtter/AttributeIndexFix)[ Packagist](https://packagist.org/packages/swiftotter/attribute-index-fix)[ RSS](/packages/swiftotter-attribute-index-fix/feed)WikiDiscussions master Synced 4w ago

READMEChangelog (6)Dependencies (1)Versions (7)Used By (0)

Attribute Index Fix
===================

[](#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).

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.

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.

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

Here is how to get this running:

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

###  Health Score

25

—

LowBetter than 36% of packages

Maintenance0

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~77 days

Recently: every ~96 days

Total

6

Last Release

3065d ago

Major Versions

1.0.2 → v2.12018-01-24

### Community

Maintainers

![](https://www.gravatar.com/avatar/0caf0b4442f87bd5fa93aec6a384421bb76a9f4b2e316e3e30a642783512a482?d=identicon)[JosephMaxwell](/maintainers/JosephMaxwell)

---

Top Contributors

[![JosephMaxwell](https://avatars.githubusercontent.com/u/1151186?v=4)](https://github.com/JosephMaxwell "JosephMaxwell (11 commits)")

### Embed Badge

![Health badge](/badges/swiftotter-attribute-index-fix/health.svg)

```
[![Health](https://phpackages.com/badges/swiftotter-attribute-index-fix/health.svg)](https://phpackages.com/packages/swiftotter-attribute-index-fix)
```

###  Alternatives

[easyrdf/easyrdf

EasyRdf is a PHP library designed to make it easy to consume and produce RDF.

61631.9M44](/packages/easyrdf-easyrdf)[jolicode/jolitypo

Microtypography fixer for the web.

3481.1M5](/packages/jolicode-jolitypo)[sweetrdf/easyrdf

EasyRdf is a PHP library designed to make it easy to consume and produce RDF.

261.4M12](/packages/sweetrdf-easyrdf)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
