leibler / dokuwiki-plugin-todo

DokuWiki ToDo Plugin

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

PHP 8 Warnings when assignee in TODOLIST has no todos

arlt opened this issue · comments

commented
~~TODOLIST ns:test:plugins assigned:arlt~~

if nothing is assigned, i get a warning in log:

AH01071: Got error 'PHP message: PHP Warning:  count(): Parameter must be an array or an object that implements Countable in /var/www/dokuwiki/lib/plugins/todo/syntax/list.php on line 322'

Dokuwiki log:

TypeError: count(): Argument #1 ($value) must be of type Countable|array, null given /var/www/dokuwiki/lib/plugins/todo/syntax/list.php(322)

Dokuwiki doesn't work anymore.
If i remove the box plugin from the plugin folder, all works fine again.

Dokuwiki Hogfather + PHP 7.4 works
Dokuwiki Igor + PHP 7.4 works
Dokuwiki Igor + PHP 8.1 fails

maybe related to #121

Do you use the plugin version which includes the commit cbf034a which fixes #121?

I will close this as a duplicate of #121

I just did a merge from master to stable.

The issue was already in stable but some other fixes not. Please upgrade the plugin and check again if this issue is fixed (i have no PHP8 running ).

commented

Do you use the plugin version which includes the commit cbf034a which fixes #121?

Yes, the fix was already present.

commented

I commented in #121 - but this issue is closed, too.