- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Can no longer add or edit products in the magento 2 admin
Hello I have magento 2.1.8 community version installed; I have successfully added 3 simple products in my admin but now I can no longer add or edit the existing products. Please note the error I get using chrome dev tools:
select.js:67 Uncaught TypeError: data.some is not a function
at findFirst (select.js:67)
at UiClass.clear (select.js:285)
at UiClass.setInitialValue (select.js:299)
at UiClass.setInitialValue (wrapper.js:109)
at UiClass.initialize (abstract.js:70)
at UiClass.initialize (wrapper.js:109)
at UiClass._super (wrapper.js:106)
at UiClass.initialize (select.js:119)
at UiClass.initialize (wrapper.js:109)
at new UiClass (class.js:49)
The file is located here: {base_url}/files/html/vendor/magento/module-ui/view/base/web/js/form/element/select.js
Has anyone experienced this type of error before? What can I do to try and fix this so that I can add and edit products again?
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: Can no longer add or edit products in the magento 2 admin
Hello,
Yes, I have experienced the exact some error and Im unable to add or edit products in Magento 2.2.0.
something is wrong with:
data.some(function (node) { value = node.value; if (Array.isArray(value)) { value = findFirst(value); } return !_.isUndefined(value); });
i have changed this to (please correct me if I'm wrong)
data = _.some(data, function (node) { value = node.value; if (Array.isArray(value)) { value = findFirst(value); } return !_.isUndefined(value); });
ran the following command:
rm -R pub/static/*
php bin/magento setup:static-content:deploy -f
Now, I can edit/add products.