我有一个难以理解的问题。
我已经多次使用这个包,并且我了解从树枝视图生成 pdf 的主要逻辑。
但是在我的最后两个项目中,我遇到了这种错误:
Error: Failed to load https://mydomain/bundles/bundle/css/bootstrap.css, with network status code 1 and http status code 0 - Connection refused
Exit with code 1 due to network error: ConnectionRefusedError
我努力了:
- HTTP 和 HTTPS 网址
- var/cache 文件夹上的 chmod 777 - 尝试 acl
- 禁用 wkhtml 的所有参数
- 更新 wkhtml
- 禁用扩展树枝视图 - 我制作了一个包含完整 HTML 的新文件
- 清理控制器使用资产
- filter / absolute_url 过滤器 / 或 web_url 变量为资产添加前缀
在我的开发环境(Windows)上,我没有任何问题。当我在生产环境中工作时出现了这个问题,基于 Debian 9 和 nginx、php 5.6、mariadb 10.0* 和letsencrypt证书。
我暂时无法加载任何资产。有没有人有想法?