Welcome Guest ( Log In | Register )

Bump TopicReply to this topicRSS feed Start new topic Start Poll

Outline · [ Standard ] · Linear+

> Compile error notice

lilypoter
post Feb 2 2018, 11:13 AM, updated 7 months ago

New Member
*
Group: Newbie
Posts: 1

Joined: Jan 2018
"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\Helper\Data.php
Magento\Framework\App\Config\ScopeConfigInterface already exists in content object""

Could somebody explain and help me with this? "
DoumekiSaoryan
post Feb 2 2018, 12:28 PM

New Member
*
Group: Newbie
Posts: 2

Joined: Jan 2018
QUOTE(lilypoter @ Feb 2 2018, 11:13 AM)
"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\Helper\Data.php
Magento\Framework\App\Config\ScopeConfigInterface already exists in content object""

Could somebody explain and help me with this? "
*
This error appears because the parent class that your helper extended have ""Magento\Framework\App\Config\ScopeConfigInterface"" 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""
Otherwise, you could click here to know the easiest & most optimal approach to this issue

This post has been edited by DoumekiSaoryan: Feb 2 2018, 12:29 PM

Bump TopicReply to this topicTopic OptionsStart new topic
 

Switch to:
| Lo-Fi Version
0.0572sec    4.81    5 queries    GZIP Disabled
Time is now: 16th August 2018 - 05:53 PM