PHP Fatal error: Class Illuminate on production env ...
Issue #3
resolved
I use the plugin locally and everything is working fine! Saves a lot of work!
But when i deploy to my digitalocean environment i get the following error when i deploy and do a php artisan october:up
PHP Fatal error: Class Illuminate\Cache\FileStore contains 2 abstract methods and must therefore be declared abstract or implement the remaining methods (Illuminate\Contracts\Cache\Store::many, Illuminate\Contracts\Cache\Store::putMany) in /srv/users/serverpilot/apps/dv3/public/vendor/laravel/framework/src/Illuminate/Cache/FileStore.php on line 10
PHP Fatal error: Uncaught Error: Cannot instantiate abstract class Illuminate\Cache\FileStore in /srv/users/serverpilot/apps/dv3/public/vendor/laravel/framework/src/Illuminate/Cache/CacheManager.php:151
Stack trace:
#0 /srv/users/serverpilot/apps/dv3/public/vendor/laravel/framework/src/Illuminate/Cache/CacheManager.php(102): Illuminate\Cache\CacheManager->createFileDriver(Array)
#1 /srv/users/serverpilot/apps/dv3/public/vendor/laravel/framework/src/Illuminate/Cache/CacheManager.php(77): Illuminate\Cache\CacheManager->resolve('file')
#2 /srv/users/serverpilot/apps/dv3/public/vendor/laravel/framework/src/Illuminate/Cache/CacheManager.php(55): Illuminate\Cache\CacheManager->get('file')
#3 /srv/users/serverpilot/apps/dv3/public/vendor/laravel/framework/src/Illuminate/Cache/CacheManager.php(318): Illuminate\Cache\CacheManager->store()
#4 /srv/users/serverpilot/apps/dv3/public/vendor/october/rain/src/Database/QueryBuilder.php(145): Illuminate\Cache\CacheManager->__call('remember', Array)
#5 /srv/users/serverpilot/apps/dv3/public/ve in /srv/users/serverpilot/apps/dv3/public/vendor/laravel/framework/src/Illuminate/Cache/CacheManager.php on line 151
Any suggestions?
Comments (3)
-
repo owner -
reporter You seem to be right, that hint was going into the right direction. Maybe October changed something in the dependency management. If i remove all the vendor files of the plugin in the plugin and global folder, the dependencies are collected from global composer and it works again.
-
reporter - changed status to resolved
Not a problem of the plugin (dependency management of OctoberCMS seems to cause the error).
- Log in to comment
Hello!
Why do you think that this error connected with the plugin?
Can you try to remove composer from the plugin folder?!
Also you can look this.