cancel
Showing results for 
Search instead for 
Did you mean: 

After migration can't update product image

After migration can't update product image

 

I migrated Magento from 1.9.0.1 to 2.2.5. After this migration, I can't add a new image for some products.

Could you tell me what is wrong?

5 REPLIES 5

Re: After migration can't update product image

Have you found the fix ?

Re: After migration can't update product image

Hello, @trixati 

Please delete the below folder.

generated\code
var\cache
var\view_preprocessed
pub\static\frontend
pub\static\adminhtml

After that run below command.

php bin/magento indexer:reindex
php bin/magento cache:flush
php bin/magento cache:clean
php bin/magento setup:static-content:deploy
Or
php bin/magento setup:static-content:deploy -f

Please re-set the file and folder permissions

find app/code var/view_preprocessed vendor pub/static app/etc generated/code generated/metadata \( -type f -or -type d \) -exec chmod u-w {} + && chmod o-rwx app/etc/env.php && chmod u+x bin/magento

Please let me know if you still facing the same issues.

 

Re: After migration can't update product image

Hello @HitsVaghasiya ,

 

Thanks a lot for the help!

But this has not solved the issue. We could see no error in the logs also.

It just says that "You have saved the product successfully" and nothing else!

Re: After migration can't update product image

Hello @anish13449 

 

Please check below script for the check server configure of Magento.  

 

https://github.com/sjanjic/magento2-check/blob/master/index.php

 


If there is no error then Please set the user ownership and permissions.

https://devdocs.magento.com/guides/v2.2/install-gde/prereq/file-system-perms.html

This issues because of pub/media file and folder permissions.

Please follow below links for more reference for the permissions.

https://magento.stackexchange.com/questions/91870/magento-2-folder-file-permissions

Re: After migration can't update product image

I have the same problem, migrated from 1.9 to 2.3.

For old products, I can't add or change images, but if I create a new product, images are saved successfully.

 

Edit:

Found a solution in issue #7647

 

Run this SQL:

DELETE v FROM catalog_product_entity_varchar AS v INNER JOIN eav_attribute AS e ON v.attribute_id = e.attribute_id AND e.attribute_code = 'media_gallery' AND e.entity_type_id = 4