Error during composer.phar self-update (Symfony) - composer-php

Someone can explain me why when I run:
php composer.phar self-update
I receive this error?
PHP Fatal error: Cannot redeclare class Symfony\Component\Console\Output\StreamOutput in phar:///Users/Oscar/Sites/Gamempire/git/composer.phar/vendor/symfony/console/Symfony/Component/Console/Output/StreamOutput.php on line 32
PHP Stack trace:
PHP 1. {main}() /Users/Oscar/Sites/Gamempire/git/composer.phar:0
PHP 2. require() /Users/Oscar/Sites/Gamempire/git/composer.phar:15
PHP 3. Composer\Console\Application->run() phar:///Users/Oscar/Sites/Gamempire/git/composer.phar/bin/composer:43
PHP 4. Symfony\Component\Console\Application->run() phar:///Users/Oscar/Sites/Gamempire/git/composer.phar/src/Composer/Console/Application.php:83
PHP 5. Composer\Console\Application->doRun() phar:///Users/Oscar/Sites/Gamempire/git/composer.phar/vendor/symfony/console/Symfony/Component/Console/Application.php:121
PHP 6. Composer\Autoload\ClassLoader->loadClass() phar:///Users/Oscar/Sites/Gamempire/git/composer.phar/vendor/symfony/console/Symfony/Component/Console/Application.php:0
PHP 7. include() phar:///Users/Oscar/Sites/Gamempire/git/composer.phar/vendor/composer/ClassLoader.php:185
PHP 8. Composer\Autoload\ClassLoader->loadClass() phar:///Users/Oscar/Sites/Gamempire/git/composer.phar/vendor/composer/ClassLoader.php:0
PHP 9. include() phar:///Users/Oscar/Sites/Gamempire/git/composer.phar/vendor/composer/ClassLoader.php:185

It was APC.
Resolved with php -d "apc.enable_cli=0" composer.phar update.

Related

How to fix the error "In order to use the Auth::routes() method, please install the laravel/ui package" in laravel 8

On localhost every thing work okay but when I try to deploy laravel project to heroku I get this error:
message "In order to use the Auth::routes() method, please install the laravel/ui package"
I have tried the next things to fix this error but they are not working for me
composer require laravel/ui
php artisan ui bootstrap --auth
php artisan cache:clear
php artisan config:cache
php artisan route:cache
Manually clear the .php files within the bootstrap/cache folder and then php artisan config:cache.
And all of this solutions didn't work for me
Which version of laravel/ui are you trying to install? The newest - 4.x at the time of writing, is not compatible with Laravel 8. So you want to install 3.x for a version that supports Laravel 8.
composer require laravel/ui:^3.0

how to fix " PHP Fatal error: Uncaught Error: Class 'Illuminate\Foundation\Application' not found "?

when i run "php artisan jetstream:install livewire" I get this error :
PHP Fatal error: Uncaught Error: Class 'Illuminate\Foundation\Application' not found in H:\xampp\htdocs\tadavom123\bootstrap\app.php:14
i try to fix it with this codes but not working :
composer update
php artisan clear-compiled
composer dump-autoload
composer update --no-scripts
my composer version is : 2
php version : 7.3.10
laravel version: 8
in my case, you have to make sure that you write that code in folder that you want to run. In other hand, you need have a library php5-curl installed in your system, do this:
sudo apt-get install php7.3-curl
this curl have to be same with your php version. good luck.

Laravel: `php artisan app:name MyApp` caused an exception: Kernel does not exist

I wanted to change the app.name of my Laravel project, I run:
php artisan app:name Retro
But have error:
Fatal error: Uncaught ReflectionException: Class Retro\Console\Kernel does >not exist in C:\photo->storage\vendor\laravel\framework\src\Illuminate\Container\Container.php:779
Then, I edited APP_NAME = Retro, and run:
php artisan config:clear
But it not working
Try this
After update App name
php artisan app:name myname
Follow this commands
php artisan cache:clear
php artisan config:clear
composer dump-autoload

Laravel 5.4 - error when vendor:publish executed command

I just installed Laravel 5.4.* and I have error when I execute this command:
php artisan vendor:publish
vagrant#homestead:~/projects/xxxx_com$ php artisan vendor:publish
[Symfony\Component\Debug\Exception\FatalThrowableError]
Class 'League\Flysystem\MountManager' not found
vagrant#homestead:~/projects/xxxx_com$
Have you got an idea?
Probably you added new package to composer.json but you haven't run composer install. So make sure you run:
composer install
and after that run
php artisan vendor:publish
You might need to update your composer, run composer update
and see if that help.

php artisan not responding after upgrading laravel 5.1 to 5.2

php artisan not responding after upgrading laravel 5.1 to 5.2.
I followed the upgrade guide here
https://laravel.com/docs/5.2/upgrade
Even composer update gives an error at
Generating autoload files
> php artisan clear-compiled
Could not open input file: artisan
Script php artisan clear-compiled handling the post-update-cmd event returned with an error
[RuntimeException]
Error Output:
What might be the problem?

Resources