Search | View Active Threads | View New Posts
Current Time: 04:26 PM

 

+ Reply to Thread
Results 1 to 4 of 4
  1. #1
    Join Date
    Jan 2018
    Posts
    4

    Compile error notice in magento 2

    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?

  2. #2
    Join Date
    Jan 2018
    Posts
    3

    Re: Compile error notice

    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""

  3. #3
    Join Date
    Jan 2018
    Posts
    4

    Rep

    Quote Originally Posted by Doumeki View Post
    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""
    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

  4. #4
    Join Date
    May 2018
    Posts
    131
    f you want to get rid of any of the module from compilation,
    You just need to remove registration.php file from your module. Removing registration.php file from module, module will not consideration inside di:compile
    if you just disable module using command at that time compilation consider all of those files of module.
    Best way is remove registration.php file or rename it to get rid off from compilation.

    Best Psychic Astrologer in Toronto | Psychic Reader in Canada | Black Magic Removal in Canada | Psychic Reading in Toronto | Psychic Reading Services in Canada | Psychic Reader in Toronto | Top Indian Astrologer in Canada | Astrologer in Canada | Top Astrologer in Toronto

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  

Sponsors

Domain Escrow Services
Above.com Domain Registrar, Marketplace and Revenue Optimizer
Trellian Direct Search Network

Industry Events

11-14 August 2019
Affiliate Summit East
New York, NY

4-6 March 2019
LeadsCon
Las Vegas

15-18 September 2018
MERGE 2018
Orlando, FL

Poll

How do you invest in domains?
to see the Poll results!
DomainState.com
Domain Tools | Domain Directory | Registrar Stats | Domain Glossary | Industry Events | FAQ | Members | Terms | RSS | Link To Us | Advertise | Contact Us
Other Related Trellian Services:
Above.com Registrar  |  Above.com Marketplace  |  Above.com Domain Manager  |  Free Search Toolbar  |  Free Webpage Builder  |  Keyword Research
Direct Search Navigation  |  Search Engine Submission and SEO Tools
Copyright © 2002 DomainState.com a Trellian Company 2014 Bronze Sponsor - Internet Commerce Association