Register Advertise with usHelp Desk Today's Posts Search

Thread Tools Search this Thread
Unread 1st Feb 2018, 09:49 PM   #1
Warrior Member
 
Charm Edward's Avatar
 
Join Date: 2018
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default
Compile error notice
Share on: 
fb share twitter share gplus share more share

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?
Charm Edward is offline   Reply With Quote
Unread 1st Feb 2018, 10:19 PM   #2
Warrior Member
 
Saoryan Doumeki's Avatar
 
Join Date: 2018
Posts: 4
Thanks: 2
Thanked 0 Times in 0 Posts
Default
RE: Compile error notice
Share on: 
fb share twitter share gplus share more share

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""
Saoryan Doumeki is offline   Reply With Quote
Unread 1st Feb 2018, 10:45 PM   #3
Warrior Member
 
Charm Edward's Avatar
 
Join Date: 2018
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default
RE: Compile error notice
Share on: 
fb share twitter share gplus share more share

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
Charm Edward is offline   Reply With Quote


Bookmarks

Tags
compile, error, notice


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




All times are GMT -6. The time now is 05:37 AM.