spatie / laravel-ignition

A beautiful error page for Laravel apps
https://flareapp.io/ignition
MIT License
476 stars 73 forks source link

Error: Class "Spatie\ErrorSolutions\SolutionProviderRepository" not found in /var/www/mysite/vendor/spatie/ignition/src/Ignition.php:68 #209

Open melaniecarr23 opened 2 months ago

melaniecarr23 commented 2 months ago

I just upgraded to Laravel 11, and this is not allowing my Jobs to dispatch properly. I can properly dispatch them on my local machine, though, and build with vite with no errors.

What can I do to get this error to go away? I tried all the solutions others used in another post for a different version of Laravel, and none of them worked.

My composer: { "name": "laravel/laravel", "type": "project", "description": "The Laravel Framework.", "keywords": [ "framework", "laravel" ], "license": "MIT", "require": { "php": "^8.2", "barryvdh/laravel-dompdf": "^3.0", "guzzlehttp/guzzle": "^7.2", "jeroendesloovere/vcard": "^1.7", "laravel/fortify": "^1.11", "laravel/framework": "^11.9.0", "laravel/tinker": "^2.7", "nyholm/psr7": "^1.8", "spatie/error-solutions": "^1.1", "spatie/ignition": "^1.15", "spatie/laravel-backup": "^8.1", "spatie/laravel-csp": "^2.8", "spatie/laravel-webhook-client": "^3.1", "square/square": "^38.0", "symfony/http-client": "^6.3", "tightenco/ziggy": "^1.0", "twilio/sdk": "^8.2", "unisharp/laravel-filemanager": "^2.4", "yajra/laravel-datatables": "^11.0" }, "require-dev": { "barryvdh/laravel-debugbar": "^3.7", "fakerphp/faker": "^1.9.1", "mockery/mockery": "^1.6", "nunomaduro/collision": "^8.0", "phpunit/phpunit": "^11.0.1", "spatie/laravel-ignition": "^2.8" }, "autoload": { "psr-4": { "App\\": "app/", "Database\\Factories\\": "database/factories/", "Database\\Seeders\\": "database/seeders/" } }, "autoload-dev": { "psr-4": { "Tests\\": "tests/" } }, "scripts": { "post-autoload-dump": [ "Illuminate\\Foundation\\ComposerScripts::postAutoloadDump", "@php artisan package:discover --ansi" ], "post-update-cmd": [ "@php artisan vendor:publish --tag=laravel-assets --ansi --force" ], "post-root-package-install": [ "@php -r \"file_exists('.env') || copy('.env.example', '.env');\"" ], "post-create-project-cmd": [ "@php artisan key:generate --ansi" ] }, "extra": { "laravel": { "dont-discover": [ ] } }, "config": { "optimize-autoloader": true, "preferred-install": "dist", "sort-packages": true, "allow-plugins": { "php-http/discovery": true } }, "minimum-stability": "dev", "prefer-stable": true }

I'm using Ubuntu and Nginx, but I don't think that matters in this instance since I'm using nginx on my local machine as well.

shofyanariantho commented 2 months ago

I have same issue with you. Any update ?

sivabalan02 commented 2 months ago

This one works for me https://github.com/spatie/laravel-ignition/issues/204#issuecomment-2348215874

tushargugnani commented 2 months ago

I am experiencing the same issue, job works fine on my local, but fails with this error message on the server, Tried every possible solution posed on #204

mdashraful305 commented 1 month ago

I'm also facing the error: Class "Spatie\ErrorSolutions\SolutionProviderRepository" not found in /var/www/mysite/vendor/spatie/ignition/src/Ignition.php:68.

I solved it by uploading the entire vendor directory to the server, which fixed the issue by ensuring all dependencies were in place.