Magento 2 - Error: Attribute with attributeCode “X” does not exist
Magento 2 - Error: Attribute with attributeCode “X” does not exist
我为产品创建了一个新属性并将其添加到默认属性集中。然后,当我单击导航到“产品”>“目录”以便我可以实施该属性时,我收到以下错误:
属性代码为 "X" 的属性不存在。
关于如何解决这个问题有什么建议吗?
我一直在关注这个教程:https://www.templatemonster.com/help/magento-2-x-create-manage-product-attributes.html
并且这个错误发生在第9步。
运行 以下命令使用 ssh。
php bin/magento cache:clean
php bin/magento indexer:reindex
我通过清除 var/generation 的内容解决了这个错误。
问题来自属性工厂。在重建之前,它不知道您的属性存在
我为产品创建了一个新属性并将其添加到默认属性集中。然后,当我单击导航到“产品”>“目录”以便我可以实施该属性时,我收到以下错误:
属性代码为 "X" 的属性不存在。
关于如何解决这个问题有什么建议吗?
我一直在关注这个教程:https://www.templatemonster.com/help/magento-2-x-create-manage-product-attributes.html
并且这个错误发生在第9步。
运行 以下命令使用 ssh。
php bin/magento cache:clean
php bin/magento indexer:reindex
我通过清除 var/generation 的内容解决了这个错误。 问题来自属性工厂。在重建之前,它不知道您的属性存在