0

Whenever I run bin/magento indexer:reindex I'm faced with the following error:

PHP Fatal error:  Uncaught Error: Call to a member function isStatic() on boolean in /var/www/public/vendor/magento/module-eav/Model/Entity/Collection/AbstractCollection.php:483
Stack trace:
#0 /var/www/public/vendor/magento/module-catalog/Model/ResourceModel/Product/Collection.php(668): Magento\Eav\Model\Entity\Collection\AbstractCollection->addAttributeToSelect('quote_item_sku', 'left')
#1 /var/www/public/vendor/magento/module-rule/Model/Condition/Product/AbstractProduct.php(357): Magento\Catalog\Model\ResourceModel\Product\Collection->addAttributeToSelect('quote_item_sku', 'left')
#2 /var/www/public/vendor/magento/module-catalog-rule/Model/Rule/Condition/Combine.php(69): Magento\Rule\Model\Condition\Product\AbstractProduct->collectValidatedAttributes(Object(Magento\Catalog\Model\ResourceModel\Product\Collection\Interceptor))
#3 /var/www/public/vendor/magento/module-catalog-rule/Model/Rule.php(352): Magento\CatalogRule\Model\Rule\Condition\Combine->collectValidatedAttributes(Object(Magento\Catalog\Model\ResourceModel\Product in /var/www/public/vendor/magento/module-eav/Model/Entity/Collection/AbstractCollection.php on line 483

And when I run bin/magento cron:run it generates a table like this:

catalogrule_product__temp146b378f
catalogrule_product__temp29bae801
catalogrule_product__temp41b7fd10
catalogrule_product__temp59104e94
catalogrule_product__temp7628296b
catalogrule_product__tempc0c4f525
catalogrule_product__tempc8b1ca4c
catalogrule_product__tempd7bcfdb2
catalogrule_product__tempec75ebbf
.
.
.
etc

And since I put cron:run as a cronjob on my server, I have more then 6000 tables such as the above.

Can somebody help me with this issue?

  • For indexing issue, have you check that any custom extension create new attribute and now those attribute source file is mission either remove or something? – Dhiren Vasoya Nov 15 '18 at 14:20

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.