I have clone my project from heroku and am using wampserver and composer version 2. Can someone help me to understand why am I get this error.
In PackageManifest.php line 131:
Undefined index: name
Script #php artisan package:discover --ansi handling the post-autoload-dump event returned with error code 1
composer update laravel/framework
The above step solves the issue.
I had same issue with my composer installer, after updating composer it works
I think I had the exact same error the other day, and for me, the solution was to downgrade the composer with:
composer self-update --1
Don't know if you will accept this as an answer, but that's what worked for me.
Related
I'm installing a new Laravel 5.6 ambient with composer, but every time i do a "Laravel new projectName", when i run composer install or composer update, it returns this error:
Could not scan for classes inside
"path/to/vendor/hamcrest/hamcrest-php/hamcrest" which does not appear
to be a file nor a folder
After hours of trying to fix it, I made a test, manually creating the hamcrest folder. When i ran composer install again, it pointed that composer couldn't read a file in the "psysh" library, when i went to check it, the folder was completely empty. I downloaded the files again and put them in the folder, just to test if it was going to run. After doing that and running composer install, this error popped out
Illuminate\Foundation\ComposerScripts::postAutoloadDump #php artisan
package:discover
In ProviderRepository.php line 208:
Class 'Laravel\Tinker\TinkerServiceProvider' not found
Script #php artisan package:discover handling the post-autoload-dump
event returned with error code 1
I don't know where i messed up, since this is a fresh install of composer + laravel. I ran composer diagnose, but everything is ok. Does anyone where is my error?
Laravel Tinker
composer require laravel/tinker
Once the package has been installed, you should add Laravel\Tinker\TinkerServiceProvider::class to the providers array in your config/app.php configuration file.
then in console, make a
composer dump-autoload
I installed laravel-ckeditor via composer in my Laravel 5.5 project as described on their GitHub (https://github.com/UniSharp/laravel-ckeditor). Now i don't need it anymore and want to remove it. I executed composer remove unisharp/laravel-ckeditor but i get this error messge:
In ProviderRepository.php line 208:
Class 'Unisharp\Ckeditor\ServiceProvider' not found
I have on idea what causes this error. I tried reinstalling and removing it several times, but i always get the same error message.Thanks for any help.
Edit: The error is caused by artisan. I can't execute php artisan cache:clear anymore and directly before the error, composer prints
> #php artisan package:discover
into the console.
I'm working with Laravel 5.2 and i have an error when i run composer update or artisan optimize ..
i've searched on my vendor, i didn't found compiled.php file ! i try to generate this i run the artisan optimize, i have the same error
[InvalidArgumentException]
Please provide a valid cache path
Script php artisan clear-compiled handling the post-update-cmd event returned with error code 1
how i can resolve this ?
Please Try it:
create these folders under storage/framework:
sessions
views
cache
And also you can use this command to install:
sudo composer install
Its will be working.
i just installed a fresh laravel 5.2. But anytime i try to run an artisan command i get this error [Symfony\Component\Debug\Exception\FatalErrorException]
Call to undefined method Illuminate\Foundation\Application::bindShared()
bindshared() is a deprecated method since Laravel 5.1
Check the file that triggers the error using the -vvv flag on the artisan command:
php artisan {command} -vvv
This will display a complete stack trace and you'll be able to understand what's happening. After this, change the bindShared() call to singleton() in the file that triggers the error and probably everything will run properly. Consider the possibility that the error is triggered by an outdated additional package installed via composer.
You can edit the composer and from "laravel/framework": "5.1.*" you should edit that to "laravel/framework": "5.2.*".
That will solve the issue.
bindshared() is now deprecated. The laravel core is changed.
I made one change in my composer.json including Facebook SDK package (http://packagist.org/packages/facebook/php-sdk).
So during the composer update I got this error
$ php artisan optimize
PHP Fatal error: Interface 'SessionHandlerInterface' not found in
/Users/Leandro/www/bootstrap/compiled.php on line 2644
After this, I can't run artisan or composer commands. Always get the same error.
I tried to remove Facebook SDK from composer json but not works.
Some help? Using --no-scripts the command works fine:
composer update --no-scripts
try to do this :
composer dump-autload
composer update
i think this may or may not solve it for you ..
you may need to delete the .json file which can be found on app\storage\meta, not 100% sure but it might work ..
Check out this troubleshooting checklist, sounds like you need to do a php artisan dump-autoload though.