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

2.1: Can't save a new product with a new product image #5294

Closed
sheldonli999 opened this issue Jun 28, 2016 · 15 comments
Closed

2.1: Can't save a new product with a new product image #5294

sheldonli999 opened this issue Jun 28, 2016 · 15 comments

Comments

@sheldonli999
Copy link

Steps to reproduce

  1. Install Magento 2.1
  2. Click catalog
  3. add a new product
  4. fill in the fields for product
  5. add an image

Expected result

  1. The product is saved
  2. ...

Actual result

  1. An error occurred: Required parameter 'theme_dir' was not passed
  2. Adding a new product without the image is ok
  3. ...
@sheldonli999
Copy link
Author

screen shot 2016-06-27 at 7 30 23 pm

@afavata
Copy link

afavata commented Jun 28, 2016

same behaviour....

Note also if a product is updated, having deleted its image, a second error is shown:
Cannot gather stats! Warning!stat(): stat failed for /var/www/xxxxxxxx/pub/media/catalog/product/w/o/productimmage1.jpg

Please give max priority as this does not allow to add or update products at all

Thanks indeed

@didineedthis
Copy link

didineedthis commented Jul 5, 2016

Same error here unable to upload an image to my product or change the configuration. even tried by ticking the box and selectin update attributes NEW THEME that doesn't
work either.
Required parameter 'theme_dir' was not passed
screenshot 24

I tried deleting the product and adding a new and got this error. i tried FTP the images to that directory and still got the same error

screenshot 26

@joates-ldg
Copy link

joates-ldg commented Jul 5, 2016

I'm seeing this error regardless of weather I have an image or not. I also get "Update with id "0" does not exist." whenever I try and save a product.

@afavata
Copy link

afavata commented Jul 5, 2016

I resolved the issue. In my case the problem was not Magento but a wrong operation I did time ago as follow:
I created a theme creating the relative path in app/design/frontend/MyFolder/MyTheme and registered it as explained in Magento 2 online documentation.
Then I decided to cancel the theme and instead to use the appropriate command:
bin/magento theme:uninstall frontend/MyFolder/MyTheme
I deleted the folders directly. This is not a good operation as the database is not updated with the due information.
Solution: with an editor of database as phpmyadmin, delete the record in the table "Theme" corrisponding to the deleted folders
2016-07-05

Now I can update products without any issue

I hope this will help!

@sheldonli999 please look whether these tips help you and in case close the ticket. Thank you!

@didineedthis
Copy link

didineedthis commented Jul 5, 2016

You my friend are a star i deleted a theme and forgot about it. all good now i just added and deleted a product :)

@afavata
Copy link

afavata commented Jul 6, 2016

@didineedthis Happy you definitely resolved the issue and you can now proceed working again with Magento 2

@didineedthis
Copy link

Thanks again, Appreciated.

@Krapulat
Copy link

Krapulat commented Jul 7, 2016

Thanks @afavata. I had the same problem.

@afavata
Copy link

afavata commented Jul 7, 2016

Noted your comment @krapulat.Thanks

@refaelgold
Copy link

@afavata thank you so much! this issue need to be close and be alerted to magento 2 team

@joaotnlima
Copy link

Thank you. ;)

@veloraven
Copy link
Contributor

Closed as seems to be not Magento issue.
@sheldonli999 if you still experience this problem please reopen the ticket with corresponding comment.

@SVUskov
Copy link

SVUskov commented Sep 12, 2016

Thank you. Problem was solved.

@vtransy
Copy link

vtransy commented Aug 21, 2018

thannks @afavata (y)

magento-engcom-team pushed a commit that referenced this issue Feb 8, 2020
[TSG] Fixes for 2.4 (pr12) (2.4-develop)
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

10 participants