jeudi 13 octobre 2016

Getting error after composer update

I am getting the following errors after a composer update on a Laravel project:

Warning:require(/home/vagrant/Code/acme/vendor/composer/../../app/helpers.php): 
failed to open stream: No such file or 
directory in /home/vagrant/Code/acme/vendor/composer/autoload_real.php 
on line 66

Call Stack

1   0.0005  361704  {main}( )   .../index.php:0

2   0.0021  361952  require( '/home/vagrant/Code/acme/bootstrap/autoload.php' ) .../index.php:22

3   0.0177  362944  require( '/home/vagrant/Code/acme/vendor/autoload.php' )    .../autoload.php:17

4   0.0214  364424  ComposerAutoloaderInite893eea6f4734f123846aeff2dfd0c15::getLoader( )    .../autoload.php:7

5   0.1658  506328  composerRequiree893eea6f4734f123846aeff2dfd0c15( )  .../autoload_real.php:56

and the following error:

Fatal error: require(): Failed opening required '/home/vagrant/Code/acme/vendor/composer/../../app/helpers.php' (include_path='.:/usr/share/php') in /home/vagrant/Code/acme/vendor/composer/autoload_real.php on line 66
Call Stack

1   0.0005  361704  {main}( )   .../index.php:0

2   0.0021  361952  require( '/home/vagrant/Code/acme/bootstrap/autoload.php' ) .../index.php:22

3   0.0177  362944  require( '/home/vagrant/Code/acme/vendor/autoload.php' )    .../autoload.php:17

4   0.0214  364424  ComposerAutoloaderInite893eea6f4734f123846aeff2dfd0c15::getLoader( )    .../autoload.php:7

5   0.1658  506328  composerRequiree893eea6f4734f123846aeff2dfd0c15( )  .../autoload_real.php:56

Line 66 of /home/vagrant/Code/acme/vendor/composer/autoload_real.php is the the line require $file; of the following method:

function composerRequire1601035f2d74a33e13617fd13fa9786b($fileIdentifier, $file)
{
    if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
        require $file;

        $GLOBALS['__composer_autoload_files'][$fileIdentifier] = true;
    }
}

I have tried to completely re-install the composer dependencies by the following:

  • run rm -r vendor
  • run rm composer.lock
  • run composer clear-cache
  • run composer install

But this has had no effect and the errors persists with a fresh install.



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire