nstueber / dokuwiki-plugin-doodle4

Doodle Plugin for Dokuwiki (copy of dokuwiki-plugin-doodle3 - seems to be inactive)
GNU General Public License v3.0
2 stars 5 forks source link

PHP 8 Warning: Undefined array key ... #11

Open arlt opened 2 years ago

arlt commented 2 years ago

The following warning appears with the example and PHP 8.1.11:

[Thu Oct 13 12:42:18.606096 2022] [proxy_fcgi:error] [pid 29959] [client 127.0.0.1:50150] AH01071: Got error '
PHP message: PHP Warning:  Undefined array key "sort" in /var/www/dokuwiki/lib/plugins/doodle4/syntax.php on line 671
PHP message: PHP Warning:  Undefined array key "formId" in /var/www/dokuwiki/lib/plugins/doodle4/syntax.php on line 293'

Example code:

<doodle
  title="What do you like best?"
  auth="none|ip|user"
  adminUsers="user1|user2"
  adminGroups="group1|group2"
  voteType="single|multi"
  fieldwidth="auto|123px"
  closed="true|false" 
>
   * Option 1 
   * Option 2 **some wikimarkup** \\ is __allowed__!
   * Option 3
</doodle>

Version information:

$ cat /etc/centos-release
CentOS Linux release 7.9.2009 (Core)
$ php --version
PHP 8.1.11 (cli) (built: Sep 28 2022 09:08:05) (NTS gcc x86_64)
Copyright (c) The PHP Group
Zend Engine v4.1.11, Copyright (c) Zend Technologies
$ cat dokuwiki/VERSION 
2022-07-31a "Igor"
$ grep date dokuwiki/lib/plugins/doodle4/plugin.info.txt 
date   2019-04-02
Farom commented 3 months ago

I have the same problem with Debian-Bookworm and php8.2.