【发布时间】:2017-06-13 23:25:47
【问题描述】:
我环顾四周,大多数答案都不是针对共享主机的,而这恰好是我的情况。
我在storage 和bootstrap/cache/ 到775 上完成了chmod。我还有一个storage/framework/views目录,我也试过删除storage/logs/laravel.log。
注意,该脚本在我以前的共享托管计划中运行良好,而且似乎只有带有 file_get_contents 的页面是问题所在。
有问题的文件是PostController.php line 17 中的ErrorException:我正在使用file_get_contents 调用。
【问题讨论】:
-
哪个文件被拒绝权限?通常这个错误包括文件路径。
-
它在 PostController.php 第 17 行的 ErrorException 中:
-
我想
file_get_contents已被您的共享主机提供商禁用。相关:stackoverflow.com/questions/4656102/… -
@tagnihuguespascal 将您的
PostController代码添加到您遇到错误的地方