fnagel / t3extblog

A record based blog extension for TYPO3 CMS. Easy to use and packed with features (incl. comments, subscriptions for comments and posts, Wordpress like subscription manager, reasonable email sending in FE and BE, GDPR ready, BE modules, Dashboard widgets, RSS, Sitemap, ...). Flexible and powerful!
http://typo3.org/extensions/repository/view/t3extblog
GNU General Public License v2.0
32 stars 18 forks source link

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

Open PKuhlmay opened 4 months ago

PKuhlmay commented 4 months ago

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 commented 3 months ago

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 commented 3 months ago

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