Skip to content
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

Magento 2.1 Cannot Add New Product in Admin #6631

Closed
jstoel opened this issue Sep 16, 2016 · 14 comments
Closed

Magento 2.1 Cannot Add New Product in Admin #6631

jstoel opened this issue Sep 16, 2016 · 14 comments

Comments

@jstoel
Copy link

jstoel commented Sep 16, 2016

When trying to manually add a product, the screen laods, is greyed out and the spinning wheel spins indefinately.

Preconditions

  1. Magento v. 2.1.1
  2. php 7.0.8
  3. MySQL MariaDB 10.0.25

Steps to reproduce

  1. Upgrade to to v 2.1.1
  2. Products>Catalog>Add Product

Expected result

  1. New product window loads

Actual result

  1. Greyed out and wheel spins indefinitely
    screen shot 2016-09-15 at 6 41 56 pm
@epadmin
Copy link

epadmin commented Sep 16, 2016

I had this same problem. I had installed the Maintenance Mode extension from Customer Paradigm. We are not sure if that was it, but I disabled the plugin and also increased my PHP memory. My server was 758 M by default. There is somewhere that recommends it is 2G so I upped it and between the PHP memory increase and the extension it is working now. I am totally not the developer so if this doesn't make sense someone else will have to jump in. I think the memory setting might have been in an htaccess file? Its possible there was more than 1 location or file that we changed

@enrico69
Copy link

Hi.
Is something displayed in the log files?

@friizu
Copy link

friizu commented Sep 16, 2016

I had same result and problem was disabled module, take a look what your browser console log says:
#6430

@jstoel
Copy link
Author

jstoel commented Sep 18, 2016

I have no disable modules. In fact all I have is a clean install with some products I've added. At first I thought it may be a resource issue but I can load all other parts of the admin just fine, I can duplicate a product just fine, and I can import csv files just fine. I'm stumped.

@heldchen
Copy link
Contributor

check the browser's dev tool and see if any request leads in a 50x or javascript error upon page load.

@veloraven
Copy link
Contributor

@jstoel thank you for your report.
Could you try to clear browser cache first? Including cookies and offline website data.

@jstoel
Copy link
Author

jstoel commented Sep 23, 2016

I did. I even went on different computers with different browsers. It doesn't appear to be a javascript error either.

@jstoel
Copy link
Author

jstoel commented Sep 27, 2016

I found a solution. @heldchen suggested to look for javascript errors while the page was loading and this error came up: Cannot read property 'replace' of null.

A little google search brought me to this link: http://magento.stackexchange.com/questions/127537/magento-2-1-uncaught-typeerror-cannot-read-property-replace-of-null. I followed the work around instructions and boom, the new product page began to load again.

The field "Mask for SKU" in the catalog>product fields auto-generation was blank in my case and by adding "{{sku}}" in the text field seem to solve the problem. Thanks for all your suggestions.

@jstoel jstoel closed this as completed Sep 27, 2016
@paulespino
Copy link

paulespino commented Jan 9, 2017

Just to add to this issue:

I had the same problem as above. What I noticed is that IF ANY OF THESE FIELDS ARE EMPTY, the bug will show up. So make sure that ALL THE FIELDS have a "{{title}}" or "{{sku}}".

screen shot 2017-01-09 at 9 32 27 am

@ajitwebile
Copy link

i am facing same issue in magento2.1.3, i created multi websites and try to assign products to created new websitesi found an error, No such entity.

@jstoel
Copy link
Author

jstoel commented Feb 18, 2017

@ajitwebile my solution to all of Magento 2's bugs was to roll back to 1.9. I'm not happy about it but M2 is garbage.

@ajitwebile
Copy link

@jstoel right bro, but right now i stuck in this issue, if anybody have answer please help.

@heldchen
Copy link
Contributor

@ajitwebile have you tried the stackexchange post answer mentioned further above?

@epadmin
Copy link

epadmin commented Feb 19, 2017 via email

mmansoor-magento pushed a commit that referenced this issue Feb 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

8 participants