Laravel 5.2 致命错误:第 66 行的vendor/composer/autoload_real.php

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/47436773/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-14 16:59:44  来源:igfitidea点击:

Laravel 5.2 Fatal error:vendor/composer/autoload_real.php on line 66

laravellaravel-5

提问by Denis S.

I have uploaded my laravel project from localto host. Now I have following error:

我从上载我laravel项目localhost。现在我有以下错误:

Fatal error: require(): Failed opening required '/home/httpd/vhosts/mort.com/httpdocs/cucc/testLaravel/vendor/composer/../../app/Libraries/helpers.php' (include_path='.:/usr/share/pear:/usr/share/php') in /home/httpd/vhosts/mort.com/httpdocs/cucc/testLaravel/vendor/composer/autoload_real.php on line 66`

I cannot understand what the problem is. The laravel framework is in the directory called testLaraveland the public content in a directory called laravel.

我无法理解问题是什么。Laravel 框架位于testLaravel名为laravel.

采纳答案by Troyer

This error means some packages are missing, as I see you didn't run composer install, this means the required packages are not installed.

此错误意味着缺少某些软件包,因为我看到您没有运行composer install,这意味着未安装所需的软件包。

To solve it just go to the root of your project and run on the command line:

要解决它,只需转到项目的根目录并在命令行上运行:

composer install

回答by eliazerg

If the other solutions do not work, you can try:

如果其他解决方案不起作用,您可以尝试:

1- Delete Composer Folder (vendor/composer)

1-删除作曲家文件夹(供应商/作曲家)

2- Delete Autoload.php (vendor/autoload.php)

2- 删除 Autoload.php (vendor/autoload.php)

Then, write on the console:

然后,在控制台上写:

3- Composer Install.

3-作曲家安装。

4- Composer Update.

4-作曲家更新。

5- And run server.

5- 并运行服务器。

I hope this can help you.

我希望这可以帮助你。

Bye.

再见。

回答by RASEL RANA

For me, only "composer install"doesn't' work. After googling I find out a solution which is given below

对我来说,只有“作曲家安装”不起作用。谷歌搜索后,我找到了下面给出的解决方案

composer update --no-scripts 

and then

进而

composer update

It's worked for me.

它对我有用。