Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
melaniecarr23 opened this issue Sep 6, 2024 · 4 comments

Comments

@melaniecarr23
Copy link

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
Copy link

I have same issue with you. Any update ?

@sivabalan02
Copy link

@tushargugnani
Copy link

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
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants