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

Exception: Attempted to call an undefined method named "setDefaultPaginatorOptions" #323

Open
ssv445 opened this issue Sep 6, 2023 · 1 comment

Comments

@ssv445
Copy link

ssv445 commented Sep 6, 2023

Attempted to call an undefined method named "setDefaultPaginatorOptions" of class "Container8W2dAbR\PaginatorInterface_82dac15".
iScreen Shoter - Brave Browser - 230906164105
iScreen Shoter - 20230906164159350

Configuration:
PHP: 8.1.22 (Using Docker 8.1.22-apache)
Symfony: 5.4.28
Xdebug & Opcache Enabled
"knplabs/knp-components": "^3.6",
"knplabs/knp-paginator-bundle": "^5.9",

If I add the definition of the setDefaultPaginatorOptions method in the PaginatorInterface (File: source/vendor/knplabs/knp-components/src/Knp/Component/Pager/PaginatorInterface.php), the issue gets resolved.

@garak
Copy link
Collaborator

garak commented Sep 7, 2023

So why do you attempt to call that method?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants