KnpLabs / KnpPaginatorBundle

SEO friendly Symfony paginator to sort and paginate
http://knplabs.com/en/blog/knp-paginator-reborn
MIT License
1.76k stars 344 forks source link

Installation failed, reverting ./composer.json to its original content. #618

Closed Theofane closed 4 years ago

Theofane commented 4 years ago

Hello

I tried to install this bundle, but I still got an error and I can't find the reason! I need a little help :(

Thank you

>composer require knplabs/knp-paginator-bundle

Using version ^5.1 for knplabs/knp-paginator-bundle
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Restricting packages listed in "symfony/symfony" to "5.0.*"
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - symfony/assetic-bundle v2.8.2 requires symfony/framework-bundle ~2.3|~3.0 -> no matching package found.
    - symfony/assetic-bundle v2.8.1 requires symfony/framework-bundle ~2.3|~3.0 -> no matching package found.
    - symfony/assetic-bundle v2.8.0 requires symfony/framework-bundle ~2.3|~3.0 -> no matching package found.
    - Installation request for symfony/assetic-bundle ^2.8 -> satisfiable by symfony/assetic-bundle[v2.8.0, v2.8.1, v2.8.2].

Potential causes:
 - A typo in the package name
 - The package is not available in a stable-enough version according to your minimum-stability setting
   see <https://getcomposer.org/doc/04-schema.md#minimum-stability> for more details.
 - It's a private package and you forgot to add a custom repository to find it

Read <https://getcomposer.org/doc/articles/troubleshooting.md> for further common problems.

Installation failed, reverting ./composer.json to its original content.
garak commented 4 years ago

Try composer require knplabs/knp-paginator-bundle --update-with-dependencies

Theofane commented 4 years ago

Same error :(

garak commented 4 years ago

Try to check your compatible versions. maybe this should be OK for you https://packagist.org/packages/knplabs/knp-paginator-bundle#v4.1.1

Theofane commented 4 years ago

I tried with several old versions, with update with dependencies, always the same error :(

garak commented 4 years ago

Try to delete your composer.lock, add knplabs/knp-paginator-bundle to require section of your composer.json, and run composer update

Theofane commented 4 years ago

Always the same error, I tried with several versions:

garak commented 4 years ago

Can you provide your composer.json content?

Theofane commented 4 years ago
    "require": {
        "php": "^7.2.5",
        "ext-ctype": "*",
        "ext-iconv": "*",
        "sensio/framework-extra-bundle": "^5.1",
        "symfony/asset": "5.0.*",
        "symfony/console": "5.0.*",
        "symfony/dotenv": "5.0.*",
        "symfony/expression-language": "5.0.*",
        "symfony/flex": "^1.3.1",
        "symfony/form": "5.0.*",
        "symfony/framework-bundle": "5.0.*",
        "symfony/http-client": "5.0.*",
        "symfony/intl": "5.0.*",
        "symfony/mailer": "5.0.*",
        "symfony/monolog-bundle": "^3.1",
        "symfony/notifier": "5.0.*",
        "symfony/orm-pack": "*",
        "symfony/process": "5.0.*",
        "symfony/security-bundle": "5.0.*",
        "symfony/serializer-pack": "*",
        "symfony/string": "5.0.*",
        "symfony/translation": "5.0.*",
        "symfony/twig-pack": "*",
        "symfony/validator": "5.0.*",
        "symfony/web-link": "5.0.*",
        "symfony/yaml": "5.0.*",
        "leafo/scssphp": "~0.6",
        "patchwork/jsqueeze": "~1.0",
        "symfony/assetic-bundle": "^2.8",
        "knplabs/knp-paginator-bundle": "^5.1.1"
    },
    "require-dev": {
        "symfony/debug-pack": "*",
        "symfony/maker-bundle": "^1.0",
        "symfony/profiler-pack": "*",
        "symfony/test-pack": "*"
    },
    "config": {
        "preferred-install": {
            "*": "dist"
        },
        "sort-packages": true
    },
    "autoload": {
        "psr-4": {
            "App\\": "src/"
        }
    },
    "autoload-dev": {
        "psr-4": {
            "App\\Tests\\": "tests/"
        }
    },
    "replace": {
        "paragonie/random_compat": "2.*",
        "symfony/polyfill-ctype": "*",
        "symfony/polyfill-iconv": "*",
        "symfony/polyfill-php72": "*",
        "symfony/polyfill-php71": "*",
        "symfony/polyfill-php70": "*",
        "symfony/polyfill-php56": "*"
    },
    "scripts": {
        "auto-scripts": {
            "cache:clear": "symfony-cmd",
            "assets:install %PUBLIC_DIR%": "symfony-cmd"
        },
        "post-install-cmd": [
            "@auto-scripts"
        ],
        "post-update-cmd": [
            "@auto-scripts"
        ]
    },
    "conflict": {
        "symfony/symfony": "*"
    },
    "extra": {
        "symfony": {
            "allow-contrib": false,
            "require": "5.0.*"
        }
    }}
garak commented 4 years ago

You can't use symfony/assetic-bundle with modern Symfony. See https://symfony.com/doc/current/frontend/assetic/index.html

Theofane commented 4 years ago

That was it ! Thank you