【问题标题】:Server moved,got error服务器移动了,出错了
【发布时间】:2018-10-02 12:44:05
【问题描述】:

我的笔记本电脑上安装了 laragon。现在我在另一个运行 Ubuntu 的地方。我移动了evertyhing,但出现错误:

[2018-04-22 11:51:34] 本地。错误: DaveJamesMiller\Breadcrumbs\BreadcrumbsServiceProvider::registerBreadcrumbs(): 打开失败需要 'C:\laragon\www\proba1\routes/breadcrumbs.php' (include_path='.:/usr/share/php') {"exception":"[object] (Symfony\Component\Debug\Exception\FatalErrorException(代码:64): DaveJamesMiller\Breadcrumbs\BreadcrumbsServiceProvider::registerBreadcrumbs(): 打开失败需要 'C:\laragon\www\proba1\ outes/breadcrumbs.php' (include_path='.:/usr/share/php') 在 /var/www/html/laravel/vendor/davejamesmiller/laravel-breadcrumbs/src/BreadcrumbsServiceProvider.php:92) [堆栈跟踪]

0 {main} "} [2018-04-22 11:53:41] local.ERROR: DaveJamesMiller\Breadcrumbs\BreadcrumbsServiceProvider::registerBreadcrumbs():

打开失败需要 'C:\laragon\www\proba1\routes/breadcrumbs.php' (include_path='.:/usr/share/php') {"exception":"[object] (Symfony\Component\Debug\Exception\FatalErrorException(代码:64): DaveJamesMiller\Breadcrumbs\BreadcrumbsServiceProvider::registerBreadcrumbs(): 打开失败需要 'C:\laragon\www\proba1\ outes/breadcrumbs.php' (include_path='.:/usr/share/php') 在 /var/www/html/laravel/vendor/davejamesmiller/laravel-breadcrumbs/src/BreadcrumbsServiceProvider.php:92) [堆栈跟踪]

0 {main} "}

在这个日志之后,我在 laravel 的基本文件夹中得到了一个 now 文件夹。我试过了,也许是一个定义的变量,有这个路径,但无处可去。有什么想法吗?

【问题讨论】:

    标签: php laravel ubuntu-16.04


    【解决方案1】:

    管理。我不得不删除

    缓存

    文件来自

    /bootstrap/缓存

    文件夹。

    【讨论】:

      【解决方案2】:

      试试看:

      在 storage/framework 下创建这些文件夹:

      会话 意见 缓存

      【讨论】:

        【解决方案3】:

        同样的错误,我删除了 bootstrap/cache 中的文件,除了 .gitignore 并在 CLI 中运行

            composer dumpautoload
        

        【讨论】:

          【解决方案4】:

          在您的项目根目录上运行此artisan 命令:

          php artisan cache:clear
          

          【讨论】:

          • :|只需在终端中运行即可。
          猜你喜欢
          • 1970-01-01
          • 2011-08-30
          • 1970-01-01
          • 2011-04-01
          • 1970-01-01
          • 1970-01-01
          • 2022-11-11
          • 1970-01-01
          • 1970-01-01
          相关资源
          最近更新 更多