Giter Site home page Giter Site logo

Comments (11)

lamda avatar lamda commented on May 27, 2024 12

If you delete the following block from the UI Component xml file, things appear to be working normally for me:

<argument name="context" xsi:type="configurableObject"> <argument name="class" xsi:type="string">Magento\Framework\View\Element\UiComponent\Context</argument> <argument name="namespace" xsi:type="string">prince_faq_index</argument> </argument>

from magento2-faq.

rustavellyne avatar rustavellyne commented on May 27, 2024 12

just add to app/etc/di.xml
<item name="2" xsi:type="string">Magento\Framework\View\Element\UiComponent\ContextInterface</item>

 <type name="Magento\Framework\View\Element\UiComponent\Argument\Interpreter\ConfigurableObject">
        <arguments>
            <argument name="classWhitelist" xsi:type="array">
                <item name="0" xsi:type="string">Magento\Framework\Data\OptionSourceInterface</item>
                <item name="1" xsi:type="string">Magento\Framework\View\Element\UiComponent\DataProvider\DataProviderInterface</item>
                <item name="2" xsi:type="string">Magento\Framework\View\Element\UiComponent\ContextInterface</item>
            </argument>
        </arguments>
    </type>

from magento2-faq.

lamda avatar lamda commented on May 27, 2024 4

Could you explain what you mean by that? Why is not good? And any pointers on how one could add that to di.xml?

from magento2-faq.

mrtuvn avatar mrtuvn commented on May 27, 2024 1

delete is not good way. Add di.xml for whitelist class instead

from magento2-faq.

lamda avatar lamda commented on May 27, 2024

Does anyone have any pointers on how to solve this?

from magento2-faq.

hidonet avatar hidonet commented on May 27, 2024

@lamda yes. it's worked for me too. Thanks.

from magento2-faq.

shinesoftware avatar shinesoftware commented on May 27, 2024

Why do we need to delete these rows? What is changed in the last version of Magento?

from magento2-faq.

ilnytskyi avatar ilnytskyi commented on May 27, 2024

Or just implement Magento\Framework\Data\OptionSourceInterface for that Context class

from magento2-faq.

DylanHopman avatar DylanHopman commented on May 27, 2024

@lamda got the right fix for it. You can find the file in your module -> etc/view/adminhtml/ui_component

from magento2-faq.

jithutj avatar jithutj commented on May 27, 2024

just add to app/etc/di.xml
<item name="2" xsi:type="string">Magento\Framework\View\Element\UiComponent\ContextInterface</item>

 <type name="Magento\Framework\View\Element\UiComponent\Argument\Interpreter\ConfigurableObject">
        <arguments>
            <argument name="classWhitelist" xsi:type="array">
                <item name="0" xsi:type="string">Magento\Framework\Data\OptionSourceInterface</item>
                <item name="1" xsi:type="string">Magento\Framework\View\Element\UiComponent\DataProvider\DataProviderInterface</item>
                <item name="2" xsi:type="string">Magento\Framework\View\Element\UiComponent\ContextInterface</item>
            </argument>
        </arguments>
    </type>

Thank You its working!!!

from magento2-faq.

virtualLast avatar virtualLast commented on May 27, 2024

I added this to an over ride di.xml file and its resolved the issue. I wasnt sure if app/etc/di.xml would be over ridden in future core magento updates. Can someone explain a little about what the above is doing?

from magento2-faq.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.