orocommerce - OroCommerce 前端的产品图片有问题吗?
问题描述
这是https://forum.oroinc.com/orocommerce/topic/my-product-images-are-not-displayed-in-the-frontend/的后续行动
在生产服务器上升级之前,我刚刚将标签 3.1.20 合并到我的本地环境中,并发现了我前一段时间面临的相同问题。
我发现的唯一解决方法是注释掉这些行:
if (!$this->configManager->get('oro_frontend.guest_access_enabled')) {
return false;
}
159 - 161 在供应商/oro/customer-portal/src/Oro/Bundle/FrontendAttachmentBundle/Provider/FileUrlProvider.php
当我从 3.1.15 升级到 3.1.17 时,我开始看到这个问题
在 VM 中进行测试我发现图像在任何地方都显示正常(带有注释行),但在按类别视图列出的产品中(URL 像http://localhost:8000/product/?categoryId=7&includeSubcategories=1或http:// localhost:8000/navigation-root/products/by-category/industrial/lighting-products?frontend-product-search-grid%5Brow-view%5D=list-view )
有人有这个问题吗?谢谢!
解决方案
推荐阅读
- node.js - 节点错误 npm ERR!在 Angular 项目中使用 npm install 时从未调用 cb()
- python - 如何统计UCREL语义分析系统(USAS)加载的语义标签的出现次数
- mysql - DELETE TOP 语句的正确语法是什么?
- python - discord.py wait_for('reaction_add') 无法正常工作
- java - Getting Null value after bind method called in Reference object of OSGI
- javascript - 集合之间可以发生 NoSQL 注入吗?
- ios - 如果堆栈大小> 1,则弹出后 SwiftUI3 导航链接不起作用
- php - GET 小写字母和大写字母 PhP
- mysql - MySQL 查询将自身限制在某些日期 - 为什么?
- python - Plotly:如何创建一个下拉按钮,对折线图中的线进行分组?