New answers tagged object-manager
1
vote
Fatal error: Cannot instantiate interface in Magento 2?
I tried this mentioned in another thread but it didn't solve:
redis-cli flushall
Finally, got solved by running setup:upgrade:
bin/magento setup:upgrade
# also run, if in production mode
bin/magento ...
Top 50 recent answers are included
Related Tags
object-manager × 157magento2 × 130
dependency-injection × 25
magento-2.1 × 14
product × 9
di × 9
php × 8
magento2.2 × 7
object × 7
model × 6
factory × 6
module × 5
collection × 5
controllers × 5
unit-tests × 5
magento2.3 × 4
category × 4
product-collection × 4
best-practice × 4
phpunit × 4
construct × 4
attributes × 3
event-observer × 3
customer × 3
product-attribute × 3