cancel
Showing results for 
Search instead for 
Did you mean: 

Add Product page loads forever 2.1.2

Add Product page loads forever 2.1.2

Hello,

 

I am facing a strange problem. I can not Add a new product. When i click on Add Simple Product for example, the add product page comes out but the loading does not go away. You can see the page in the background, but you can not edit anything because of the loading image that is on top. It keeps loading forever. Has any of you come to have such a problem?

 

Thanks

3 REPLIES 3

Re: Add Product page loads forever 2.1.2

I am having a similar issue however my backend locks up only when I try to change the (brand new, blank) products' attribute set.

 

I have noticed that when changing the attribute set, that the price field is highlighted red with "This is a required field" behind the loading overlay. Perhaps there is something internal going on that is preventing the page to load/switch because the required field is not letting the page move. I think of this similar to when you're on another website and you are prompted with "Are you sure you want to leave this page? There are unsaved changes." or something along those lines.

 

I will post back if I can find a cause or an answer! You should do the same. Smiley Happy

 

System: Magento 2.1.2 on Ubuntu 16.04 w/ Apache2.4, PHP 7.08, and MySQL 5.7.

 

PS I have a funny feeling too that it could be a PHP memory_limit problem, however I have my CLI and webserver php.ini memory_limits set to 768M which is the recommended memory_limit for Magento 2.

 

Update:

 So I opened up the console log on the product page and clicked a new attribute set from the list. I then recieved this error and a stack trace.

Uncaught TypeError: Cannot read property 'length' of undefined(…)@VM38279:3
atvisible(eval at createBindingsStringEvaluator (http://000.000.000.000/pub/static/adminhtml/Magento/backend/en_CA/knockoutjs/knockout.js:2624:16), :3:87)
atupdate(http://000.000.000.000/pub/static/adminhtml/Magento/backend/en_CA/knockoutjs/knockout.js:4558:47)
atko.dependentObservable.disposeWhenNodeIsRemoved(http://000.000.000.000/pub/static/adminhtml/Magento/backend/en_CA/knockoutjs/knockout.js:3004:33)
atevaluateImmediate(http://000.000.000.000/pub/static/adminhtml/Magento/backend/en_CA/knockoutjs/knockout.js:1737:103)
atko.subscription.evaluatePossiblyAsync [as callback](http://000.000.000.000/pub/static/adminhtml/Magento/backend/en_CA/knockoutjs/knockout.js:1677:13)
atFunction.notifySubscribers(http://000.000.000.000/pub/static/adminhtml/Magento/backend/en_CA/knockoutjs/knockout.js:1103:38)
atFunction.observable.valueHasMutated(http://000.000.000.000/pub/static/adminhtml/Magento/backend/en_CA/knockoutjs/knockout.js:1300:79)
atUiClass.observable [as recordData](http://000.000.000.000/pub/static/adminhtml/Magento/backend/en_CA/knockoutjs/knockout.js:1285:28)
atsetNested(http://000.000.000.000/pub/static/adminhtml/Magento/backend/en_CA/mage/utils/objects.js:43:25)
atObject.nested(http://000.000.000.000/pub/static/adminhtml/Magento/backend/en_CA/mage/utils/objects.js:117:20)
atUiClass.set(http://000.000.000.000/pub/static/adminhtml/Magento/backend/en_CA/Magento_Ui/js/lib/core/element/ele...)
visible@VM38279:3

update

@knockout.js:4558
ko.dependentObservable.disposeWhenNodeIsRemoved@knockout.js:3004
evaluateImmediate@knockout.js:1737
evaluatePossiblyAsync@knockout.js:1677
notifySubscribers@knockout.js:1103
observable.valueHasMutated@knockout.js:1300
observable@knockout.js:1285
setNested@objects.js:43
nested@objects.js:117
set@element.js:301
updateValue@links.js:57
(anonymous function)@events.js:85
trigger@events.js:82
trigger@events.js:159
(anonymous function)@element.js:420
_notifyChanges@element.js:419
remove@element.js:328
cleanData@element.js:597
(anonymous function)@element.js:594
_.each._.forEach@underscore.js:145
cleanData@element.js:593
(anonymous function)@layout.js:306
_.each._.forEach@underscore.js:145
merge@layout.js:302
run@layout.js:73
(anonymous function)@app.js:14
(anonymous function)@form.js:328
(anonymous function)@jquery.js:3256
fire@jquery.js:3099
fireWith@jquery.js:3211
deferred.(anonymous function)@jquery.js:3301
success@form.js:101
fire@jquery.js:3099
fireWith@jquery.js:3211
done@jquery.js:9310
callback@jquery.js:9720

 

 

Haven't found out what exactly the issue is, but it is stemming from `<magento_install_dir>/pub/static` and not from anywhere else; At least for my instance of the bug we've ran into that is.

 

From here I am wondering if a `$ magento setup:static-content:deploy` and/or a `$magento setup:di:compile` would resolve the issue. Will report back.

Re: Add Product page loads forever 2.1.2

Hi,

 

I solved my issue. I disabled everything from Store-configuration-advanced-developer: minify css, js, html - all set to NO

 

Try, maybe it works for you

Re: Add Product page loads forever 2.1.2

I have the same problem. Have you found a solution yet? tgsergiu solution didn't work out for me.