0

I'm attempting to add product images when adding a new product but I'm having a problem. The image uploads, but the spinner remains. As shown below:

enter image description here

I've done some digging. If I open the inspector window I see the following error:

Uncaught TypeError: Cannot read property 'value' of undefined
at product-gallery.js:138
at Function.grep (jquery.js:471)
at $.<computed>.<computed>.setBase (product-gallery.js:133)
at $.<computed>.<computed>.setBase (jquery-ui-1.9.2.js:432)
at $.<computed>.<computed>._addItem (product-gallery.js:217)
at $.<computed>.<computed>._addItem (jquery-ui-1.9.2.js:432)
at HTMLDivElement.handlerProxy (jquery-ui-1.9.2.js:739)
at HTMLDivElement.dispatch (jquery.js:5232)
at HTMLDivElement.elemData.handle (jquery.js:4884)
at Object.trigger (jquery.js:5136)

Which leads to the following code:

enter image description here

I put a breakpoint there and .value is null.

The image uploads, but only to the products/tmp directory. I've checked all error files in var/log and nginx and php logs. There's no errors.

Anyone know why this might be happening? All permissions are correct (775 for media/* directory). Can't understand what would cause this. Also happens if I switch back to Luma from my current theme.

The theme I'm using has no adminhtml that's overriding anything.

Any advice?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.