我查看了一下,大部分答案都不适用于共享主机,而这恰好是我的情况。
我已经对 storage
和 bootstrap/cache/
进行了 chmod 775
的操作。我还有一个 storage/framework/views
目录,尝试过删除 storage/logs/laravel.log
文件。
需要注意的是,该脚本在我以前的共享主机计划中运行良好,只有包含 file_get_contents
的页面出现了问题。
涉及到的文件是 PostController.php
中的 ErrorException
,位于第 17 行:我在使用 file_get_contents
调用。
file_get_contents
函数。相关链接:https://dev59.com/_lPTa4cB1Zd3GeqPh0l_ - ScopeyPostController
代码。 - Nikhil RadadiyaPostController
- Nauman Zafar