我的 Shopware 6 安装遇到一个非常奇怪的问题。我使用 Dockware 设置了全新的本地 Shopware 6 安装。这是 docker-compose.yml:
version: "3"
services:
shopware:
image: dockware/dev:latest
container_name: shopware
ports:
- "80:80"
- "3306:3306"
- "22:22"
- "8888:8888"
- "9999:9999"
- "9998:9998"
volumes:
- "db_volume:/var/lib/mysql"
- "shop_volume:/var/www/html"
networks:
- web
environment:
- XDEBUG_ENABLED=1
- PHP_VERSION=8.1
volumes:
db_volume:
driver: local
shop_volume:
driver: local
networks:
web:
external: false
我可以毫无问题地登录后端并访问前端(http://localhost)。但我尝试打开的每个类别都会导致 ERR_TOO_MANY_REDIRECTS 错误,状态代码为 301。像购物车这样的标准页面没有问题,只有类别和登陆页面。 正如我所说,这是一个干净的安装,没有任何自定义配置。 我在 MacOS 上运行 Docker Desktop。
编辑: 我刚刚发现,只有当类别具有 SEO URL 时才会发生该错误。我切换了店面中域名 url 的语言,类别可以工作,但只有没有 seo url。
这是商店软件 6.5.8.0 中的一个错误,并在 6.5.8.1 中修复了