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.

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

报告相同问题?

悬赏问题

  • ¥30 这是哪个作者做的宝宝起名网站
  • ¥60 版本过低apk如何修改可以兼容新的安卓系统
  • ¥25 由IPR导致的DRIVER_POWER_STATE_FAILURE蓝屏
  • ¥50 有数据,怎么建立模型求影响全要素生产率的因素
  • ¥50 有数据,怎么用matlab求全要素生产率
  • ¥15 TI的insta-spin例程
  • ¥15 完成下列问题完成下列问题
  • ¥15 C#算法问题, 不知道怎么处理这个数据的转换
  • ¥15 YoloV5 第三方库的版本对照问题
  • ¥15 请完成下列相关问题!