Warrior Forum - The #1 Digital Marketing Forum & Marketplace

Warrior Forum - The #1 Digital Marketing Forum & Marketplace (https://www.warriorforum.com/)
-   Programming (https://www.warriorforum.com/programming/)
-   -   Compile error notice (https://www.warriorforum.com/programming/1329769-compile-error-notice.html)

Charm Edward 1st February 2018 09:49 PM

Compile error notice
 
I have a After run ""di:compile"" command in SSH, I got this error in magento 2:
""Incorrect dependency in class MageArray\Testimonials\Helper\Data in var\www\magento\app\code\MageArray\Testimonials\He lper\Data.php
Magento\Framework\App\Config\ScopeConfigInterface already exists in content object""

Could somebody explain and help me with this?

Saoryan Doumeki 1st February 2018 10:19 PM

RE: Compile error notice
 
This error appears because the parent class that your helper extended have ""Magento\Framework\App\Config\ScopeConfigInterfac e"" already. In that case, your class extends ""Magento\Framework\View\Element\Template"".
You could remove that variable in your function __construct() in ""MageArray\Testimonials\Helper\Data.php""

Charm Edward 1st February 2018 10:45 PM

RE: Compile error notice
 
It seems great but as advised, I had already asked for some help from those developers from BSSGeek, they gave me a simple instruction and had made some changes accordingly on the site. It works now! But thank you for great support.
Best regards


All times are GMT -6. The time now is 11:30 AM.