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

Argument #2 ($paginationConfig) must be of type array, null given #274

Open
PKuhlmay opened this issue Feb 16, 2024 · 2 comments
Open

Argument #2 ($paginationConfig) must be of type array, null given #274

PKuhlmay opened this issue Feb 16, 2024 · 2 comments

Comments

@PKuhlmay
Copy link

Hi I have just installed this extension. I get the following error in the backend module "Blog" when clicking the button "Posts"

Bildschirmfoto 2024-02-16 um 10 25 18

Bildschirmfoto 2024-02-16 um 10 25 29

The same occurs, when clicking on the other buttons including the headline "Latest comments".
Bildschirmfoto 2024-02-16 um 10 26 24

I have nothing stored yet, no blogposts, no comments.


Okay after including the needed TypoScript, it works. 🤦🏽‍♂️

Maybe it is possible to catch this error, in case others didn't include the TypoScript like me and get this error. If not, just close this issue.

TYPO3 12.4.10
t3extblog: 8.0.1
PHP 8.2.15
composer: yes
Debug settings: Live

@fnagel
Copy link
Owner

fnagel commented Mar 21, 2024

Hey Philipp! Sorry for the delay. Again...

There is a check for existing and valid TypoScript configuration but it will only kick in if you are using the blog module AND you choose a blog page. Blog module on some other page will not trigger the check as I wanted to reduce the amount of warning for users.

So it looks like that you ignored the "you are not on a blog page" and clicked on one of the views (in this case the post list) anyway. Not sure if that is something we would like to catch too. If so, it would always throw an message as soon as you are using the blog module, not matter if its a blog page tree section or not.

There should be a more speaking message when the TS is missing and you are using the blog module on a blog page.

@fnagel
Copy link
Owner

fnagel commented Mar 21, 2024

Some idea: Maybe we can disable the UI when the "you are not on a blog page" is shown?

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