doubiantiao4994 2015-10-08 11:10
浏览 64
已采纳

[composer update => commit => push => pull]后的Laravel错误

Well, I added a package, "guzzlehttp/guzzle": "~5.3|~6.0" to be specific, inside my laravel app, and updated(for sending email). Then I committed the changes to the local repo (git), and pushed to the remote repo on Bitbucket. And finally I pulled the changes on my VPS server. It's worth mentioning that I have done this same process a hundred times without any problems whatsoever and I don't have any clue why it's being such a jerk this time :-|

OK, here's the problem: Blank white screen screen and when I do error_reporting(E_ALL); ini_set.... I get this error message:

Warning: require(/home/.../vendor/guzzlehttp/promises/src/functions_include.php): failed to open stream: No such file or directory in /home/.../vendor/composer/autoload_real.php on line 54

Fatal error: require(): Failed opening required '/home/.../vendor/guzzlehttp/promises/src/functions_include.php' (include_path='.:/usr/share/php:/usr/share/pear') in /home/.../vendor/composer/autoload_real.php on line 54

Oh, and by the way, the project is totally working fine on my local machine without any problems.

Thanks a lot, appreciate it :-)

EDIT:

I also tried running these:

  • running composer update
  • deleting vender/ and composer.lock and then running the above command

and they didn't work because I saw the same error during the execution of composer update because it was calling artisan.

  • 写回答

1条回答 默认 最新

  • douzhongju8780 2015-10-08 14:04
    关注

    Thanks to aldrin27 I solved the error by dumping the autoloads using:

    composer dump-autoload
    

    But then there was this error:

    Trait 'Illuminate\Database\DetectsLostConnections' not found
    

    For some odd reason that file was missing and I had to create it manually to fix the problem.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 有兄弟姐妹会用word插图功能制作类似citespace的图片吗?
  • ¥15 请教:如何用postman调用本地虚拟机区块链接上的合约?
  • ¥15 为什么使用javacv转封装rtsp为rtmp时出现如下问题:[h264 @ 000000004faf7500]no frame?
  • ¥15 乘性高斯噪声在深度学习网络中的应用
  • ¥15 关于docker部署flink集成hadoop的yarn,请教个问题 flink启动yarn-session.sh连不上hadoop,这个整了好几天一直不行,求帮忙看一下怎么解决
  • ¥15 深度学习根据CNN网络模型,搭建BP模型并训练MNIST数据集
  • ¥15 C++ 头文件/宏冲突问题解决
  • ¥15 用comsol模拟大气湍流通过底部加热(温度不同)的腔体
  • ¥50 安卓adb backup备份子用户应用数据失败
  • ¥20 有人能用聚类分析帮我分析一下文本内容嘛