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

php 8.1 problem #586

Open
ibrahim-lab95 opened this issue Aug 9, 2023 · 8 comments
Open

php 8.1 problem #586

ibrahim-lab95 opened this issue Aug 9, 2023 · 8 comments

Comments

@ibrahim-lab95
Copy link

ibrahim-lab95 commented Aug 9, 2023

Hi, when i run composer require mediconesystems/livewire-datatables in a new Laravel 10 application i get errors:

Problem 1

  • mediconesystems/livewire-datatables[v0.0.1, ..., v0.4.3] require php ^7.2.5 -> your php version (8.1.6) does not satisfy that requirement.
  • mediconesystems/livewire-datatables[v0.5.0, ..., v0.6.8] require illuminate/support ^7.0|^8.0 -> found illuminate/support[v7.0.0, ..., v7.30.6, v8.0.0, ..., v8.83.27] but these were not loaded, likely because it conflicts with another require.
  • mediconesystems/livewire-datatables[v0.7.0, ..., v0.10.0] require illuminate/support ^7.0|^8.0|^9.0 -> found illuminate/support[v7.0.0, ..., v7.30.6, v8.0.0, ..., v8.83.27, v9.0.0, ..., v9.52.15] but these were not loaded, likely because it conflicts with another require.
  • mediconesystems/livewire-datatables v0.10.1 requires reedware/laravel-relation-joins ^2.4|^3.0|dev-l10-compatibility -> found reedware/laravel-relation-joins[v2.4.0, v2.4.1, v2.4.2, v3.0.0] but it conflicts with your root composer.json require (4.0).
  • Root composer.json requires mediconesystems/livewire-datatables * -> satisfiable by mediconesystems/livewire-datatables[v0.0.1, ..., v0.10.1].

Use the option --with-all-dependencies (-W) to allow upgrades, downgrades and removals for packages currently locked to specific versions.

@insulae
Copy link

insulae commented Aug 9, 2023

you can try for the moment with this fork: https://github.com/arm092/livewire-datatables I am working with it and work perfect!

@ibrahim-lab95
Copy link
Author

@insulae
Thank you very much, but when I tried to use callback(), an error appeared mentioning getValue()

@insulae
Copy link

insulae commented Aug 10, 2023

@ibrahim-lab95 you are trying with the last version of arm092? that problem has already been solved.
I don't know much, but if you still have a problem copy your composer.json and we can compare a bit.
mine;

"require": {
    "php": "^8.1",
    "arm092/livewire-datatables": "^1.0",
    "guzzlehttp/guzzle": "^7.2",
    "laravel/framework": "^10.10",
    "laravel/jetstream": "^3.2",
    "laravel/sanctum": "^3.2",
    "laravel/tinker": "^2.8",
    "livewire/livewire": "^2.11",
    "openspout/openspout": "^4.15",
    "simplesoftwareio/simple-qrcode": "^4.2",
    "wire-elements/modal": "^1.0",
    "wireui/wireui": "^1.17"
},
"require-dev": {
    "fakerphp/faker": "^1.9.1",
    "laravel-lang/common": "^3.1",
    "laravel/pint": "^1.0",
    "laravel/sail": "^1.18",
    "mockery/mockery": "^1.4.4",
    "nunomaduro/collision": "^7.0",
    "phpunit/phpunit": "^10.1",
    "spatie/laravel-ignition": "^2.0"
},

@ibrahim-lab95
Copy link
Author

ibrahim-lab95 commented Aug 10, 2023

@insulae
Too few arguments to function Illuminate\Database\Query\Expression::getValue(), 0 passed in E:\xampp\htdocs\school_management\vendor\arm092\livewire-datatables\src\Http\Livewire\LivewireDatatable.php on line 417 and exactly 1 expected

@Nowocyn
Copy link
Contributor

Nowocyn commented Oct 26, 2023

This issue was fixed with the latest commit, but the latest commit didn't get tagged.
With a tag, people could get around this problem.

@thyseus
Copy link
Collaborator

thyseus commented Oct 26, 2023

@Nowocyn
Copy link
Contributor

Nowocyn commented Oct 26, 2023

@thyseus thanks a lot 👍

@arm092
Copy link

arm092 commented Nov 22, 2023

@insulae Thank you very much, but when I tried to use callback(), an error appeared mentioning getValue()

If you have any problems with my forked version please open issue on it and we will try solve it in short time.

BTW As I remember we've fixed this problem.
And BTW Livewire 3 support version will be released after a few seconds)

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