英文:
Magento 2 product image is visible in Magento admin, but not visible in frontend
问题
Magento 2产品图片在Magento管理后台可见,但在前台不可见。
我已尝试了所有这些解决方案,但没有运气。
Magento版本(2.3.6)
- 解决方案1 - 将media文件夹权限设置为777:https://postimg.cc/fkxhSgP1
- 解决方案2 - 将media文件夹的所有权更改为:https://postimg.cc/rKjXQRMJ
- 解决方案3 - 低PHP内存限制:https://postimg.cc/w1BKPxBd
- 解决方案4 - 已经安装/配置了GD库:https://postimg.cc/87n8V8Ff
- 解决方案5 - 为small_image、thumbnail、base_image设置全局属性范围:https://postimg.cc/Lqrrnz3H,https://postimg.cc/DWW9vCsj,https://postimg.cc/rKM21NXs
- 解决方案6 - 重命名媒体文件夹中的原始.htaccess文件:https://postimg.cc/hQbWFfxK
有人能帮助我吗?
英文:
Magento 2 product image is visible in Magento admin, but not visible in frontend.
I have tried all these solutions but no luck.
Magento version (2.3.6)
- Solution 1 - 777 permissions to media folder: https://postimg.cc/fkxhSgP1
- Solution 2 - Ownership of the media folder: https://postimg.cc/rKjXQRMJ
- Solution 3 - Low PHP memory limit: https://postimg.cc/w1BKPxBd
- Solution 4 - already GD library is installed/configured: https://postimg.cc/87n8V8Ff
- Solution 5 - Set Global attribute scope for small_image, thumbnail, base_image: https://postimg.cc/Lqrrnz3H, https://postimg.cc/DWW9vCsj, https://postimg.cc/rKM21NXs
- Solution 6 - Rename the original .htaccess file in media folder: https://postimg.cc/hQbWFfxK
Can anyone save me from here?
答案1
得分: 1
尝试运行以下命令:
php bin/magento catalog:images:resize
希望能帮助并解决您的问题。
英文:
Try running following command:
php bin/magento catalog:images:resize
Hope it helps and solve your issue..
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论