Question

I have updated magento version 2.1.3 to 2.1.4 via composer.

Its updated successfully without any error.Everything works perfectly ! except product catalog admin grid.

But after update 2.1.4 version i am unable to open product details from admin grid.

From Admin when i click on Products -> Catalog -> Its displays all the products in the grid -> but when i click on single product for edit details -> It shows blank.

Below is the screenshots :

enter image description here

On the console I have checked it shows below error :

_wasOpened is not defined

Below is the screenshot for error :

enter image description here

I have already done below steps but still error remains same :

  • rm -rf var/di var/generation
  • php bin/magento cache:flush
  • php bin/magento setup:upgrade
  • php bin/magento setup:static-content:deploy
  • php bin/magento setup:di:compile
  • php bin/magento indexer:reindex

Note : Its happened with all the grid ,unable to open detail view of cms pages as well..

Was it helpful?

Solution

The error you're getting comes from the app/code/Magento/Ui/view/base/web/templates/form/fieldset.html :

<div class="admin__fieldset-wrapper-content"
     css="'admin__collapsible-content': collapsible, '_show': opened, '_hide': !opened()">
    <fieldset
            if="opened() || _wasOpened"
            class="admin__fieldset"
            each="data: elems, as: 'element'" render=""/>
</div>

This _wasOpened property is supposed to be defined in app/code/Magento/Ui/view/base/web/js/form/components/fieldset.js :

    initConfig: function () {
        this._super();
        this._wasOpened = this.opened || !this.collapsible;

        return this;
    },

It's hard to say what's causing the issue, my guess is that there is a custom JS (extensions ?) that conflicts with the core JS because, as you can see from the GitHub history, there was no change to those two files between 2.1.3 and 2.1.4. So if I were you, I would start debugging in the JS file and see if the property declaration works properly and if it happens before the call in the HTML file.

UPDATE :

Main problem of here is browser cookies , Removed browser cookies and caching history and all manually or open link in private window(incognito) mode you will resolved your error

OTHER TIPS

The problem is caused due to custom extension, which overlay default fieldset.js file. Custom extension is using old js content and now content is changed, so we got situation, when custom extension do not declare variable, but default template is using it.

Please see Ui components, which modify fieldset.js file.

Licensed under: CC-BY-SA with attribution
Not affiliated with magento.stackexchange
scroll top