Closed 676767ap closed 2 years ago
Hello, what are
"meilisearch/search-bundle": "^0.2.6" "meilisearch/meilisearch-php": "v0.16.0" meilisearch-http 0.24.0
If you use MeilISearch v0.24.0, please use:
Thanks a lot! Unfortunately i cannot use those versions due to confilts with other old bundles. I'll try to downgrade MeilISearch itself.
Which conflict do you have? :(
Many!)))) With old Sonata-project + Doctrine ORM mostly it unsolvable
composer require meilisearch/search-bundle:0.6.0 --ignore-platform-reqs --with-all-dependencies
The "symfony/flex" plugin was skipped because it is not compatible with Composer 2+. Make sure to update it to version 1.9.8 or greater.
./composer.json has been updated
The "symfony/flex" plugin was skipped because it is not compatible with Composer 2+. Make sure to update it to version 1.9.8 or greater.
Running composer update meilisearch/search-bundle --with-all-dependencies
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.
Problem 1
- doctrine/orm is locked to version v2.7.3 and an update of this package was not requested.
- meilisearch/search-bundle v0.6.0 requires doctrine/doctrine-bundle ^2.4 -> satisfiable by doctrine/doctrine-bundle[2.4.0, ..., 2.5.5].
- doctrine/orm v2.7.3 conflicts with doctrine/doctrine-bundle 2.5.5.
- doctrine/orm v2.7.3 conflicts with doctrine/doctrine-bundle 2.5.4.
- doctrine/orm v2.7.3 conflicts with doctrine/doctrine-bundle 2.5.3.
- doctrine/orm v2.7.3 conflicts with doctrine/doctrine-bundle 2.5.2.
- doctrine/orm v2.7.3 conflicts with doctrine/doctrine-bundle 2.5.1.
- doctrine/orm v2.7.3 conflicts with doctrine/doctrine-bundle 2.5.0.
- doctrine/orm v2.7.3 conflicts with doctrine/doctrine-bundle 2.4.4.
- doctrine/orm v2.7.3 conflicts with doctrine/doctrine-bundle 2.4.3.
- doctrine/orm v2.7.3 conflicts with doctrine/doctrine-bundle 2.4.2.
- doctrine/orm v2.7.3 conflicts with doctrine/doctrine-bundle 2.4.1.
- doctrine/orm v2.7.3 conflicts with doctrine/doctrine-bundle 2.4.0.
- Root composer.json requires meilisearch/search-bundle 0.6.0 -> satisfiable by meilisearch/search-bundle[v0.6.0].
Use the option --with-all-dependencies (-W) to allow upgrades, downgrades and removals for packages currently locked to specific versions.
Installation failed, reverting ./composer.json and ./composer.lock to their original content.
and at last
composer require doctrine/orm:2.9.0 --ignore-platform-reqs --with-all-dependencies
The "symfony/flex" plugin was skipped because it is not compatible with Composer 2+. Make sure to update it to version 1.9.8 or greater.
./composer.json has been updated
The "symfony/flex" plugin was skipped because it is not compatible with Composer 2+. Make sure to update it to version 1.9.8 or greater.
Running composer update doctrine/orm --with-all-dependencies
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Root composer.json requires doctrine/orm 2.9.0 -> satisfiable by doctrine/orm[2.9.0].
- Conclusion: don't install doctrine/persistence 1.3.8 (conflict analysis result)
- Conclusion: don't install doctrine/persistence 2.2.2 (conflict analysis result)
- Conclusion: don't install doctrine/persistence 2.2.3 (conflict analysis result)
- Conclusion: don't install doctrine/persistence 2.2.4 (conflict analysis result)
- Conclusion: don't install doctrine/persistence 2.3.0 (conflict analysis result)
- sonata-project/doctrine-orm-admin-bundle is locked to version 3.18.0 and an update of this package was not requested.
- sonata-project/doctrine-orm-admin-bundle 3.18.0 requires doctrine/persistence ^1.3.4 -> satisfiable by doctrine/persistence[1.3.4, ..., 1.3.8].
- You can only install one version of a package, so only one of these can be installed: doctrine/persistence[v1.0.0, ..., 1.3.8, 2.0.0, ..., 2.3.0].
- doctrine/orm 2.9.0 requires doctrine/persistence ^2.2 -> satisfiable by doctrine/persistence[2.2.0, ..., 2.3.0].
- Conclusion: don't install doctrine/persistence 2.2.1 (conflict analysis result)
Could you please tell me what version of meilisearch will work with "meilisearch/search-bundle": "^0.2.6" and "meilisearch/meilisearch-php": "v0.16.0" ?
I would say MeiliSearch v0.20.0 or older... Do we have a too old (or too new?) doctrine-bundle dependency in our composer.json?
@676767ap and @curquiza I had this exact same problem when I was trying this bundle.
My problem was regarding my Meilisearch server version being too much up to date (v0.26.1) using an old search-bundle
, and meilisearch-php
.
So, @676767ap I think your problem will be solved by doing what @curquiza said, updating all or downgrading all. I'll close this issue, but feel free to open new ones!
Thanks a lot for using Meilisearch ❤️
On excecuting bin/console meili:import command i've got this:
My meili_search.yaml
SearchRes.php entity:
in .env:
Symfony 4, Ubuntu 21.10, PHP 7.4