Magento upgrade failed - Plugin initialization failed (require(../symfony/polyfill-php70/bootstrap.php) - php

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

Related

How to fix "autoload.php failed to open stream " error, while installing Laravel?

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

while installing composer file for Laravel it giving the below error

While I want to user Laravel 5 with PHP after installing XAMPP server I downloading composer from its website and while installing composer file in last step it is giving the error:
The "https://getcomposer.org/versions" file could not be downloaded: failed to open stream: No connection could be made because the target machine actively refused it."

Getting error while running Yii2 project on windows 8.1

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.

fresh laravel framework installation on ubuntu 14.04 xamp server

I am in the /opt/lamp/htdocs/lara folder that was empty and cloned the master of Laravel from Github Download and do
sudo composer install
Then I was able to access localhost/lara but it brings down the lara directory. When I go ahead on to localhost/lara/public it brings up the error
Warning: require(/opt/lampp/htdocs/lara/bootstrap/../vendor/autoload.php):
failed to open stream: No such file or directory in /opt/lampp/htdocs/lara/
bootstrap/autoload.php on line 17
Fatal error: require(): Failed opening required '/opt/lampp/htdocs/lara/bootstrap/../
vendor/autoload.php' (include_path='.:/opt/lampp/lib/php') in /opt/lampp/htdocs/lara/
bootstrap/autoload.php on line 17
How could I fix that?
After running the composer install the error changed to
Whoops, looks like something went wrong.
and browse says internal server error

drush failing with autoload.php failed to open stream

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

Categories