Skip to content

Unable to create new category #2402

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
tahiryasin opened this issue Nov 18, 2015 · 6 comments
Closed

Unable to create new category #2402

tahiryasin opened this issue Nov 18, 2015 · 6 comments

Comments

@tahiryasin
Copy link

When I click Add Root Category or Add Subcategory button from Products > Categories page it doesn't load the form. Console shows below error message.

ReferenceError: updateContent is not defined

@guz-anton
Copy link
Contributor

If after Refresh page you still reproduce this then it kind of issue.
Then it would be handy to provide more details: do you change any default settings? How do you install Magento? What browser do you use?

@tahiryasin
Copy link
Author

Yes, I refreshed page many times. I manually installed Magento by downloading from download page. No default settings were changed. And I was using Firefox V 42.0

@CalamityJames
Copy link

I am also getting this with a fresh install out of the box. No 404 errors appearing in the Network list so all files are being loaded.

I'm using Chrome 46.

If it helps it's this part:

            function addNew(url, isRoot) {
                if (isRoot) {
                    tree.currentNodeId = tree.root.id;
                }

                if (/store\/\d+/.test(url)) {
                    url = url.replace(/store\/\d+/, "store/" + tree.storeId);
                }
                else {
                    url += "store/" + tree.storeId + "/";
                }

                url += 'parent/' + tree.currentNodeId;
                updateContent(url);
            }

Edit: I notice comparing to a store with demo data installed that the form fields for adding categories is missing altogether on this install (see attachment):
image

@tahiryasin
Copy link
Author

Issue resolved!
I am on Linux and issue was wrong CHMOD

below commands solved my problem.

find . -type f -exec chmod 644 {} \;
find . -type d -exec chmod 755 {} \;

@daim2k5 daim2k5 closed this as completed Nov 20, 2015
@magebay99
Copy link

I got same problem but not solved by change permission. Is there other solution?
Magento 2.0.4

@magebay99
Copy link

---------------> solved after try again @tahiryasin solution. Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants