I am working on a Magento 2.1.7 shop. To achieve this, I have created a child-theme of Magento Blank.
I have installed the Bannerslider module.
I run the commands:
- php bin/magento module:enable Magestore_Bannerslider
- php bin/magento setup:upgrade
- php bin/magento setup:di:compile
All was ok in my local development environment, but on staging environment I get an error
Incorrect dependency in class Magestore\Bannerslider\Controller\Index in /var/www/staging.domain.com/app/code/Magestore/Bannerslider/Controller/Index.php
\Magento\Framework\ObjectManagerInterface already exists in context object in the console.
Error log record number: 1455276823131 error in the browser (frontend).
Why is that? What is the fix? Thank you!