PHP 8 Warnings about undefined array keys
arlt opened this issue · comments
arlt commented
Tested with 2022-07-31a "Igor" and:
$ cat /etc/centos-release
CentOS Linux release 7.9.2009 (Core)
$ php --version
PHP 8.1.10 (cli) (built: Aug 30 2022 16:09:36) (NTS gcc x86_64)
Copyright (c) The PHP Group
Zend Engine v4.1.10, Copyright (c) Zend Technologies
Wiki page :wiki:plugins
:
* <todo @arlt>Task for arlt</todo>
* <todo @tester>Task for tester</todo>
* <todo @arlt #>Completed task for arlt</todo>
* <todo start:YYYY-MM-DD>Text</todo>
* <todo due:YYYY-MM-DD>Text</todo>
* <todo start:YYYY-MM-DD due:YYYY-MM-DD>Text</todo>
~~TODOLIST ns:wiki:plugins assigned:arlt~~
The rendered results seems to work but the logfile has really many warnings:
[Tue Sep 06 09:53:04.931092 2022] [proxy_fcgi:error] [pid 27870] [client 127.0.0.1:42220] AH01071: Got error 'PHP message: PHP Warning: Uninitialized string offset 0 in
/var/www/dokuwiki/lib/plugins/todo/syntax/todo.php on line 189PHP message: PHP Warning: Uninitialized string offset 0 in
/var/www/dokuwiki/lib/plugins/todo/syntax/todo.php on line 193PHP message: PHP Warning: Undefined property: Doku_Handler::$todo_index in
/var/www/dokuwiki/lib/plugins/todo/syntax/todo.php on line 104PHP message: PHP Warning: Undefined property: Doku_Handler::$todo_user in
/var/www/dokuwiki/lib/plugins/todo/syntax/todo.php on line 124PHP message: PHP Warning: Undefined property: Doku_Handler::$checked in
/var/www/dokuwiki/lib/plugins/todo/syntax/todo.php on line 124PHP message: PHP Warning: Uninitialized string offset 0 in
/var/www/dokuwiki/lib/plugins/todo/syntax/todo.php on line 189PHP message: PHP Warning: Uninitialized string offset 0 in
/var/www/dokuwiki/lib/plugins/todo/syntax/todo.php on line 193PHP message: PHP Warning: Undefined property: Doku_Handler::$todo_user in
/var/www/dokuwiki/lib/plugins/todo/syntax/todo.php on line 124PHP message: PHP Warning: Undefined property: Doku_Handler::$checked in
/var/www/dokuwiki/lib/plugins/todo/syntax/todo.php on line 124PHP message: PHP Warning: Uninitialized string offset 0 in
/var/www/dokuwiki/lib/plugins/todo/syntax/todo.php on line 189PHP message: PHP Warning: Uninitialized string offset 0 in
/var/www/dokuwiki/lib/plugins/todo/syntax/todo.php on line 193PHP message: PHP Warning: Undefined property: Doku_Handler::$todo_user in
/var/www/dokuwiki/lib/plugins/todo/syntax/todo.php on line 124PHP message: PHP Warning: Undefined property: Doku_Handler::$checked in
/var/www/dokuwiki/lib/plugins/todo/syntax/todo.php on line 124PHP message: PHP Warning: Uninitialized string offset 0 in
/var/www/dokuwiki/lib/plugins/todo/syntax/todo.php on line 189PHP message: PHP Warning: Uninitialized string offset 0 in
/var/www/dokuwiki/lib/plugins/todo/syntax/todo.php on line 193PHP message: PHP Warning: Undefined property: Doku_Handler::$todo_user in
/var/www/dokuwiki/lib/plugins/todo/syntax/todo.php on line 124PHP message: PHP Warning: Undefined property: Doku_Handler::$checked in
/var/www/dokuwiki/lib/plugins/todo/syntax/todo.php on line 124PHP message: PHP Warning: Uninitialized string offset 0 in
/var/www/dokuwiki/lib/plugins/todo/syntax/todo.php on line 189PHP message: PHP Warning: Uninitialized string offset 0 in
/var/www/dokuwiki/lib/plugins/todo/syntax/todo.php on line 193PHP message: PHP Warning: Undefined property: Doku_Handler::$todo_user in
/var/www/dokuwiki/lib/plugins/todo/syntax/todo.php on line 124PHP message: PHP Warning: Undefined property: Doku_Handler::$checked in
/var/www/dokuwiki/lib/plugins/todo/syntax/todo.php on line 124PHP message: PHP Warning: Uninitialized string offset 0 in
/var/www/dokuwiki/lib/plugins/todo/syntax/todo.php on line 189PHP message: PHP Warning: Uninitialized string offset 0 in
/var/www/dokuwiki/lib/plugins/todo/syntax/todo.php on line 193PHP message: PHP Warning: Undefined property: Doku_Handler::$todo_user in
/var/www/dokuwiki/lib/plugins/todo/syntax/todo.php on line 124PHP message: PHP Warning: Undefined property: Doku_Handler::$checked in
/var/www/dokuwiki/lib/plugins/todo/syntax/todo.php on line 124PHP message: PHP Warning: Undefined array key 0 in
/var/www/dokuwiki/lib/plugins/todo/syntax/todo.php on line 153PHP message: PHP Warning: Undefined array key 1 in
/var/www/dokuwiki/lib/plugins/todo/syntax/todo.php on line 153PHP message: PHP Warning: Undefined array key 1 in
/var/www/dokuwiki/lib/plugins/todo/syntax/todo.php on line 153PHP message: PHP Warning: Undefined array key 0 in
/var/www/dokuwiki/lib/plugins/todo/syntax/todo.php on line 153PHP message: PHP Warning: Undefined array key 1 in
/var/www/dokuwiki/lib/plugins/todo/syntax/todo.php on line 153PHP message: PHP Warning: Undefined array key 0 in
/var/www/dokuwiki/lib/plugins/todo/syntax/todo.php on line 153PHP message: PHP Warning: Undefined array key 1 in
/var/www/dokuwiki/lib/plugins/todo/syntax/todo.php on line 153PHP message: PHP Warning: Undefined array key 1 in
/var/www/dokuwiki/lib/plugins/todo/syntax/todo.php on line 153PHP message: PHP Warning: Undefined array key 0 in
/var/www/dokuwiki/lib/plugins/todo/syntax/todo.php on line 153PHP message: PHP Warning: Undefined array key 1 in
/var/www/dokuwiki/lib/plugins/todo/syntax/todo.php on line 153PHP message: PHP Warning: Undefined array key 0 in
/var/www/dokuwiki/lib/plugins/todo/syntax/todo.php on line 153PHP message: PHP Warning: Undefined array key 1 in
/var/www/dokuwiki/lib/plugins/todo/syntax/todo.php on line 153PHP message: PHP Warning: Undefined array key 1 in
/var/www/dokuwiki/lib/plugins/todo/syntax/todo.php on line 153PHP message: PHP Warning: Undefined array key 0 in
/var/www/dokuwiki/lib/plugins/todo/syntax/todo.php on line 153PHP message: PHP Warning: Undefined array key 1 in
/var/www/dokuwiki/lib/plugins/todo/syntax/todo.php on line 153PHP message: PHP Warning: Undefined array key 0 in
/var/www/dokuwiki/lib/plugins/todo/syntax/todo.php on line 153PHP message: PHP Warning: Undefined array key 1 in
/var/www/dokuwiki/lib/plugins/todo/syntax/todo.php on line 153PHP message: PHP Warning: Undefined array key 1 in
/var/www/dokuwiki/lib/plugins/todo/syntax/todo.php on line 153PHP message: PHP Warning: Undefined array key 0 in
/var/www/dokuwiki/lib/plugins/todo/syntax/todo.php on line 153PHP message: PHP Warning: Undefined array key 1 in
/var/www/dokuwiki/lib/plugins/todo/syntax/todo.php on line 153PHP message: PHP Warning: Undefined array key 0 in
/var/www/dokuwiki/lib/plugins/todo/syntax/todo.php on line 153PHP message: PHP Warning: Undefined array key 1 in
/var/www/dokuwiki/lib/plugins/todo/syntax/todo.php on line 153PHP message: PHP Warning: Undefined array key 1 in
/var/www/dokuwiki/lib/plugins/todo/syntax/todo.php on line 153PHP message: PHP Warning: Undefined array key 0 in
/var/www/dokuwiki/lib/plugins/todo/syntax/todo.php on line 153PHP message: PHP Warning: Undefined array key 1 in
/var/www/dokuwiki/lib/plugins/todo/syntax/todo.php on line 153PHP message: PHP Warning: Undefined array key 0 in
/var/www/dokuwiki/lib/plugins/todo/syntax/todo.php on line 153PHP message: PHP Warning: Undefined array key 1 in
/var/www/dokuwiki/lib/plugins/todo/syntax/todo.php on line 153PHP message: PHP Warning: Undefined array key 1 in
/var/www/dokuwiki/lib/plugins/todo/syntax/todo.php on line 153PHP message: PHP Warning: Undefined array key 0 in
/var/www/dokuwiki/lib/plugins/todo/syntax/todo.php on line 153PHP message: PHP Warning: Undefined array key 1 in
/var/www/dokuwiki/lib/plugins/todo/syntax/todo.php on line 153', referer: https://localhost/wiki/plugins
arlt commented
See dokuwiki/dokuwiki#3754 for how to fix explode/list constructs
Christian Marg commented
Should be fixed with #152. Will push new release soon.