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

Laravel 6 and lada-cache 4.0.2 problem #103

Closed
ktsam89 opened this issue Apr 12, 2021 · 3 comments
Closed

Laravel 6 and lada-cache 4.0.2 problem #103

ktsam89 opened this issue Apr 12, 2021 · 3 comments

Comments

@ktsam89
Copy link

ktsam89 commented Apr 12, 2021

I am on the middle of updating a laravel 5.8 project to laravel 6.
The issue I've been facing is the following composer error when i try to install lada-cache 4.0.2

Symfony\Component\Debug\Exception\FatalThrowableError  : Too few arguments to function Spiritix\LadaCache\Database\QueryBuilder::__construct(), 
4 passed in /home/ktsamis/myapp/vendor/spiritix/lada-cache/src/Spiritix/LadaCache/Database/Connection.php 
on line 35 and exactly 5 expected

  at /home/ktsamis/myapp/vendor/spiritix/lada-cache/src/Spiritix/LadaCache/Database/QueryBuilder.php:53
    49|      * @param  Processor           $processor
    50|      * @param  QueryHandler        $handler
    51|      * @param  Model               $model
    52|      */
  > 53|     public function __construct(
    54|         ConnectionInterface $connection,
    55|         Grammar $grammar,
    56|         Processor $processor,
    57|         QueryHandler $handler,

  Exception trace:

  1   Spiritix\LadaCache\Database\QueryBuilder::__construct()
      /home/ktsamis/myapp/vendor/spiritix/lada-cache/src/Spiritix/LadaCache/Database/Connection.php:35

  2   Spiritix\LadaCache\Database\Connection::query()
      /home/ktsamis/myapp/vendor/laravel/framework/src/Illuminate/Database/Connection.php:270

  Please use the argument -v to see more details.
Script @php artisan package:discover handling the post-autoload-dump event returned with error code 1

Installation failed, reverting ./composer.json and ./composer.lock to their original content.

Has anyone encountered the same problem?

@spiritix
Copy link
Owner

Please try to remove Lada Cache from your models, then upgrade the version in Composer. Once this is done, install Lada Cache again.

@ktsam89
Copy link
Author

ktsam89 commented Apr 12, 2021

Worked like a charm, thank you!

@ktsam89 ktsam89 closed this as completed Apr 12, 2021
spiritix added a commit that referenced this issue May 20, 2021
spiritix added a commit that referenced this issue May 20, 2021
spiritix added a commit that referenced this issue May 20, 2021
@spiritix
Copy link
Owner

Should be fixed with the latest release

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

2 participants