2
votes

I got an error:

Warning: require_once(C:\core/vendor/autoload.php): failed to open stream: No such file or directory in C:\Users\zumos\Desktop\ecom2\core\public\index.php on line 25

Fatal error: require_once(): Failed opening required 'C:\core/vendor/autoload.php' (include_path='C:\xampp\php\PEAR') in C:\Users\zumos\Desktop\ecom2\core\public\index.php on line 25

2
Did you come here just to post your errors or do you have a question? Read How to Ask and create a minimal reproducible exampleAlon Eitan

2 Answers

3
votes

In your project folder, the vendor folder is missing so you got this error:

Warning: require_once(C:\core/vendor/autoload.php): failed to open stream: No such file or directory in

The solution is simple, run this two commands:

composer update --no-scripts

It will Skips execution of scripts defined in composer.json file.

composer update

It will update your dependencies as they are specified in composer.json file.

With these two commands, you will re-create the vendor folder in your project

0
votes

Is vendor folder exist there in root directory ? If not then try to run composer install command.