1

I have only barely used the CPR before, but I seem to remember it working fine. Now I'm set to enter some discount codes, but don't want them to apply to sales items. I figure I could solve this by either setting the Special Price attribute to be used in CPR. Or put them into a separate category and filter that.

Problem is; whenever I try to select a category, the entire page freezes. And I can never get any filters for attributes. (See screenshots).

Anyone got any ideas as to why these may crash?

M 2.2.4

enter image description here

enter image description here

Edit: I see this is an official bug:

https://github.com/magento/magento2/issues/15121

2
  • Same problem is encountered on our magento install. Anybody has an idea of what is causing problem? May 11, 2018 at 14:46
  • @EricTurcotte are you on 2.2.4 as well? not sure if it's related to the 2.2.4 upgrade; last time I tried was on 2.2.2 and I think that was fine. May 12, 2018 at 16:58

1 Answer 1

0

This is a Magento 2.2.4 bug.

For the lazy who don't want to search github for the fix, I'll post it here.

In vendor/magento/module_catalog/view/adminhtml/web/js/category-checkbox-tree.js

On line 171 change:

for (i = 0; i < config.length; i++) {

to

for (var i = 0; i < config.length; i++) {

and on line 188 change:

for (i = 0, len = node.childNodes.length; i < len; i++) {

to

for (var i = 0, len = node.childNodes.length; i < len; i++) {

or just update Magento to 2.2.5.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.