Skip to content
This repository has been archived by the owner on Aug 13, 2024. It is now read-only.

PHP Fatal error: Uncaught Error: Failed opening required 'vendor/autoload.php' #94

Open
joaopedroalbernaz opened this issue Sep 5, 2023 · 3 comments

Comments

@joaopedroalbernaz
Copy link

I keep getting this error:

joaopedro@joaopedro-HP-EliteDesk-800-G1-DM:~/oci/oci-arm-host-capacity$ ls
composer.json composer.lock images index.php LICENSE README.md src tests

joaopedro@joaopedro-HP-EliteDesk-800-G1-DM:~/oci/oci-arm-host-capacity$ php index.php
PHP Warning: require(vendor/autoload.php): Failed to open stream: No such file or directory in /home/joaopedro/oci/oci-arm-host-capacity/index.php on line 8
PHP Fatal error: Uncaught Error: Failed opening required 'vendor/autoload.php' (include_path='.:/usr/share/php') in /home/joaopedro/oci/oci-arm-host-capacity/index.php:8
Stack trace:
#0 {main}
thrown in /home/joaopedro/oci/oci-arm-host-capacity/index.php on line 8

I tried with sudo but get the same error. This autoload.php is nowhere to be found

@joaopedroalbernaz
Copy link
Author

PHP Version:

joaopedro@joaopedro-HP-EliteDesk-800-G1-DM:~/oci/oci-arm-host-capacity$ php -v PHP 8.1.2-1ubuntu2.14 (cli) (built: Aug 18 2023 11:41:11) (NTS) Copyright (c) The PHP Group Zend Engine v4.1.2, Copyright (c) Zend Technologies with Zend OPcache v8.1.2-1ubuntu2.14, Copyright (c), by Zend Technologies

Composer Version:

`joaopedro@joaopedro-HP-EliteDesk-800-G1-DM:~/oci/oci-arm-host-capacity$ composer


/ _/ ____ ___ ____ ____ ________ _____
/ / / __ / __ __ \/ __ \/ __ \/ ___/ _ \/ ___/ / /___/ /_/ / / / / / / /_/ / /_/ (__ ) __/ / \____/\____/_/ /_/ /_/ .___/\____/____/\___/_/ /_/ Composer version 2.6.2 2023-09-03 14:09:15

@hitrov
Copy link
Owner

hitrov commented Sep 5, 2023

It means you either never run composer install or it didn’t end up successfully

@shadowwinds
Copy link

please check the output of composer install/composer update and make sure that php-curl and php-dom are installed

apt-get install composer php-curl php-dom

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants