magento2
magento2 copied to clipboard
Images Not Displaying for Configurable Products on Fresh Magento 2.4.4-p6-9 Installs
Preconditions and environment
- Magento Version: Magento 2.4.4-p6-9
- Sample Data: Installed using
php bin/magento sampledata:deploy - Installation Type: Fresh installation
- Operating System: macOS
- Web Server: Apache (installed via MAMP)
- PHP Version: PHP 8.1
- Database: MySQL
- Environment: Development environment using MAMP
- Browser: Tested on Google Chrome
- Additional Modules Installed: No additional modules apart from sample data.
Steps to reproduce
- Set up a fresh instance of Magento 2.4.4-p8 using MAMP on a local environment.
- Install sample data using the command:
php bin/magento sampledata:deploy. - Run
php bin/magento set up:upgradeandphp bin/magento setup:static-content:deploy. - Verify that product images are stored in the wrong path
pub/media/catalog/catalog/product. - Move the images to the correct folder path from
pub/media/catalog/catalog/producttopub/media/catalog/product. php bin/magento catalog:images:resizephp bin/magento indexer:reindexcache:cleanCheck the Magento Admin and Frontend for product images.- Notice that images for simple products appear correctly, but images for configurable products do not.
Expected result
- images should be stored in the correct folder path
pub/media/catalog/product. - All product images, including those for configurable products, should display correctly in both the admin and frontend after deploying sample data.
Actual result
- After
php bin/magento sampledata:deployimages populate to the wrong folder path, topub/media/catalog/catalog/product. - Images for simple products display correctly after resizing.
- Images for configurable products do not display in either the admin or frontend after deploying sample data and resizing.
Additional information
- This issue was observed immediately following a fresh installation of Magento 2.4.4-p8 and installing sample data. It appears that the sample data deployment process might be creating incorrect paths or failing to map images correctly to configurable products.
- A workaround involves manually associating the missing images via CSV import or manually adding images from the pub media, which is impractical for a large catalog.
Release note
No response
Triage and priority
- [ ] Severity: S0 - Affects critical data or functionality and leaves users without workaround.
- [ ] Severity: S1 - Affects critical data or functionality and forces users to employ a workaround.
- [X] Severity: S2 - Affects non-critical data or functionality and forces users to employ a workaround.
- [ ] Severity: S3 - Affects non-critical data or functionality and does not force users to employ a workaround.
- [ ] Severity: S4 - Affects aesthetics, professional look and feel, “quality” or “usability”.
Hi @JonathanHelvey. Thank you for your report. To speed up processing of this issue, make sure that the issue is reproducible on the vanilla Magento instance following Steps to reproduce. To deploy vanilla Magento instance on our environment, Add a comment to the issue:
@magento give me 2.4-develop instance- upcoming 2.4.x release- For more details, review the Magento Contributor Assistant documentation.
- Add a comment to assign the issue:
@magento I am working on this - To learn more about issue processing workflow, refer to the Code Contributions.
Join Magento Community Engineering Slack and ask your questions in #github channel. :warning: According to the Magento Contribution requirements, all issues must go through the Community Contributions Triage process. Community Contributions Triage is a public meeting. :clock10: You can find the schedule on the Magento Community Calendar page. :telephone_receiver: The triage of issues happens in the queue order. If you want to speed up the delivery of your contribution, join the Community Contributions Triage session to discuss the appropriate ticket.
Hi @engcom-Bravo. Thank you for working on this issue. In order to make sure that issue has enough information and ready for development, please read and check the following instruction: :point_down:
- [ ] 1. Verify that issue has all the required information. (Preconditions, Steps to reproduce, Expected result, Actual result).
- [ ] 2. Verify that issue has a meaningful description and provides enough information to reproduce the issue.
- [ ] 3. Add
Area: XXXXXlabel to the ticket, indicating the functional areas it may be related to. - [ ] 4. Verify that the issue is reproducible on
2.4-developbranchDetails
- If the issue is reproducible on2.4-developbranch, please, add the labelReproduced on 2.4.x.
- If the issue is not reproducible, add your comment that issue is not reproducible and close the issue and stop verification process here! - [ ] 5. Add label
Issue: Confirmedonce verification is complete. - [ ] 6. Make sure that automatic system confirms that report has been added to the backlog.
Hi @JonathanHelvey,
Thanks for your reporting and collaboration.
We have verified the issue in Latest 2.4.8-beta1 instance and the issue is not reproducible.Kindly refer the screenshots.
https://github.com/user-attachments/assets/2ebd83f2-0ac8-4a75-b8e2-01c5c5171ad4
images should be stored in the correct folder path pub/media/catalog/product.All product images, including those for configurable products, should display correctly in both the admin and frontend after deploying sample data.
Kindly recheck the issue in Latest Magento instance and elaborate the steps to reproduce if the issue is still reproducible.
Thanks.
Hi @JonathanHelvey,
This issue is being closed since it has not been updated in a long time.Please feel free to reopen or raise a new ticket if the issue still exists.
Thanks.
Same issue on 2.4.7-p3 (fresh installation by composer create-project..., and then bin/magento sampledata:deploy).
It seems that all the sample data folders are copied to the wrong directories:
- For
products, they are copied to/pub/media/catalog/catalog/product/*instead of/pub/media/catalog/product/* - For
wysivyg, they are copied to/pub/media/wysiwyg/wysiwyg/*instead of/pub/media/wysiwyg/* - For
downloadable, they are copied to/pub/media/downloadable/downloadable/*instead of/pub/media/downloadable/*
If they are moved manually to their proper destinations, everything starts working
https://github.com/user-attachments/assets/1cdefe51-c695-4bc2-a5a6-61595f452f23
@gitrequests I can confirm I had this today as well. It copied to catalog/catalog/product instead of catalog/product.