I downloaded the 92five app , but when I ran it on XAMPP, the following errors occurred, although I installed Composer

Warning: require_once (D: \ xampp \ htdocs \ 92five-master \ vendor / composer / autoload_real.php): D: \ xampp \ htdocs \ 92five-master \ vendor \ autoload. php on line 5

Fatal error: require_once (): Failed opening required 'D: \ xampp \ htdocs \ 92five-master \ vendor / composer / autoload_real.php' (include_path = 'D: \ xampp \ php \ PEAR') in D: \ xampp \ htdocs \ 92five-master \ vendor \ autoload.php on line 5

Previously rarely encountered with php, I can not understand what the trouble. Thank you in advance)

  • github.com/chintanbanugaria/92five/blob/master/README.md make sure that all dependencies are installed, and if anything try to write in support, because the error is either due to improper installation or because of a bug somewhere, I am inclined to the wrong installation - Vlad
  • The bottom line is that the installation was not even. That's the trouble (in fact, I have to start the applications and the installation window should open, but instead this error gets out - Jonny

2 answers 2

A little experimenting found the root of evil -

"pre-update-cmd": [ "php artisan clear-compiled" ], 

This line needs to be removed from composer.json, because instead of downloading, an error occurs that we get from artisan because it does not find all the necessary packages that are referenced by files, in the project, later, after the first update, you can return it to its place.

It is located in the block:

 "scripts": { "pre-update-cmd": [ "php artisan clear-compiled" ], "post-install-cmd": [ "php artisan optimize" ], "post-update-cmd": [ "php artisan optimize" ] }, 

After deleting the line, you need to run composer update , from the console - it will install the missing packages, and the requested file (in which all project classes are generated)

  • Yes, thank you, autoload really loaded, but after that it still gives an error. A red box appears where it says Whoops! There was an error. After the line 110-118 in the file app / start / global.php, the following error text is displayed: ErrorException session_write_close (): Failed to write session data (user). Please verify that the session.save_path is correct (/ opt / lampp / temp /) - Jonny
  • @Jonny, this is another matter that should be created separately, so that in the future it can be found. And this tick decided) - Vlad

The first error says that at the address D:\xampp\htdocs\92five-master\vendor/composer/autoload_real.php there is no file, and the second consequence of the first

probably due to the fact that there are both forward and back slashes on the way

  • I just do not understand what files need to be downloaded, because the project is already ready, and the instructions say only about giving permission to the files. - Jonny
  • I changed it, but the error remained and slashes changed stupidly in it. I just wonder why there is no composer folder and autoload_real.php file in the vendor folder. Maybe I need to create it myself? - Jonny
  • I assume that all the paths in the application are specified with the same error, you need to either edit all the paths in the application or edit the server settings - user193361
  • Warning: require_once (D: \ xampp \ htdocs \ 92five-master \ vendor \ composer \ autoload_real.php): D: \ xampp \ htdocs \ 92five-master \ vendor \ autoload. phat on line 5 Fatal error: require_once (): Failed opening required 'D: \ xampp \ htdocs \ 92five-master \ vendor \ composer \ autoload_real.php' (include_path = 'D: \ xampp \ php \ PEAR') in D : \ xampp \ htdocs \ 92five-master \ vendor \ autoload.php on line 5 This is what happens when I change my slashes. Even the first file does not work for me. - Jonny