I searched the whole drupal directory but I didn't find the autoload.php file. I see the error when enabling modules using drush on the command line.
Here is the exact error
include(sites/all/modules/contrib/guzzle/vendor/autoload.php): failed to open stream: No such file or directory composer_autoload.module:24 [warning]
include(): Failed opening 'sites/all/modules/contrib/guzzle/vendor/autoload.php' for inclusion (include_path='.:/usr/share/php:/usr/share/pear') [warning]
composer_autoload.module:24
I haven't seen this error before, but I think it's telling you that you have to install composer, which is now a requirement for Drush. See the installation instructions for Drush: http://docs.drush.org/en/master/install/#composer-one-drush-for-all-projects.
I got it fixed by installing composer binary, rerunning drush dl composer and drush dl guzzle then went inside guzzle and ran ./composer.phar install
Related
I was given a website to upgrade and while running the upgrade of Magento 2.31 to 2.37-p2 I ran into this error:
Plugin initialization failed (require(/home/rainbow/public_html/vendor/composer/../symfony/polyfill-php70/bootstrap.php): failed to open stream: No such file or directory), uninstalling plugin
- Removing magento/inventory-composer-installer (1.2.0)
Update of magento/inventory-composer-installer failed
[ErrorException]
require(/home/rainbow/public_html/vendor/composer/../symfony/polyfill-php70/bootstrap.php): failed to open stream: No such file or directory
Apparently the site is missing something. How can I fix this and get this installed?
Thanks
Pete
I had this same weird problem after upgrading from 2.4.2 to 2.4.3.
What I did to resolve this was:
(1) Remove dependency "magento/composer-root-update-plugin": "^1.1" from composer.json
(2) Remove composer.lock file
(3) Remove vendor folder
(4) Run composer install
Warning:require(C:\xampp\htdocs\cms-3.0\bootstrap/../vendor/autoload.php):failed to open stream: No such file or directory in
I am working on xampp as + with the composer installed on Win8.1.
Below is the error I get when I want to install a project with Laravel.
Warning:require(C:\xampp\htdocs\cms-3.0\bootstrap/../vendor/autoload.php):failed to open stream: No such file or directory in
Try executing composer install or composer update in your project root directory
I am trying to run a PHP file in a Vagrant VM which also uses composer for the build.
I am getting the following errors:
PHP Warning: require(/var/www/CLIENT/vendor/composer/../phpseclib/phpseclib/phpseclib/bootstrap.php): failed to open stream: No such file or directory in /var/www/ispe/vendor/composer/autoload_real.php on line 66
Warning: require(/var/www/CLIENT/vendor/composer/../phpseclib/phpseclib/phpseclib/bootstrap.php): failed to open stream: No such file or directory in /var/www/CLIENT/vendor/composer/autoload_real.php on line 66
PHP Fatal error: require(): Failed opening required '/var/www/CLIENT/vendor/composer/../phpseclib/phpseclib/phpseclib/bootstrap.php' (include_path='.:/usr/share/php') in /var/www/CLIENT/vendor/composer/autoload_real.php on line 66
Fatal error: require(): Failed opening required '/var/www/CLIENT/vendor/composer/../phpseclib/phpseclib/phpseclib/bootstrap.php' (include_path='.:/usr/share/php') in /var/www/CLIENT/vendor/composer/autoload_real.php on line 66
Now as far as I can tell, phpseclib shouldn't be required for this particular functionality, or anything else (though I haven't 100% confirmed the anything else bit yet).
Even so, I decided to add it to my composer.json ("phpseclib/phpseclib": "2.0.4") to get rid of the errors, with no luck.
I'm fairly new to Composer, so I am wondering precisely what I might be doing wrong here or what needs to be setup.
I can confirm that the directory /var/www/CLIENT/vendor/composer/../phpseclib/phpseclib/phpseclib/ exists, however there is no file bootstrap.php inside the directory.
Instead I see the following:
Crypt File Math Net System
EDIT: I also want to clarify that the file autoload.php is inside the vendor directory and that the PHP version of the VM is 7.0.
I strongly believe that the cache is the problem, It cannot be 100% sure but try destroying your Vagrant instance, or
You could follow the following steps:
Delete the vendor folder
Delete composer.lock
Run the command composer clearcache (or clear-cache)
Run composer install
Oneliner for easy copy/pasting:
rm -rf vendor composer.lock && composer clearcache && composer install
I have successfully installed Yii2 using composer on windows 8.1. I am using Xampp server but I am not able to run my project successfully.
I am getting this error:
Warning: require(C:\xampp\htdocs\application\web/../vendor/autoload.php): failed to open stream: No such file or directory in C:\xampp\htdocs\application\web\index.php on line 7
Fatal error: require(): Failed opening required 'C:\xampp\htdocs\application\web/../vendor/autoload.php' (include_path='.;C:\xampp\php\PEAR') in C:\xampp\htdocs\application\web\index.php on line 7
I have also given proper permissions and set the cookie validation key but nothing is working.
Thanks for help.
Error is self explainable. There is no autoload.php file in vendor folder. It's generated after all vendor packages will be installed.
Use composer install command to install all packages.
I have a git repository which is a simple cakephp3 application. (i cant share because that is private).
i forked the repository and cloned it to my local directory, but as i open the url it gives me this error:
Warning: require(C:\xampp\htdocs\cakephp\shopinator\sms\smsv3\vendor\autoload.php): failed to open stream: No such file or directory in C:\xampp\htdocs\cakephp\shopinator\sms\smsv3\config\bootstrap.php on line 23 Fatal error: require(): Failed opening
required 'C:\xampp\htdocs\cakephp\shopinator\sms\smsv3\vendor\autoload.php' (include_path='.;C:\xampp\php\PEAR') in C:\xampp\htdocs\cakephp\shopinator\sms\smsv3\config\bootstrap.php on line 23
I also have composer installed and is recognizable. I'm using git bash.
the same repository is running fine on another machine.
Any help would be appreciated.
Update:
I've tried it this way:
I'm installing cakephp 3 using composer, it still gives me the same error.
composer create-project cakephp/app
I've also tried this but no luck.
Update:
with this command
composer create-project --prefer-dist cakephp/app
the fresh installation worked.
I've solved the problem.
I downloaded the composer.phar file from packagist.org
and executed the following commands in my application root.
php composer.phar install
Now i don't have that autoload.php issues.