Package: dokuwiki
Version: 0.0.20220731.a-2
Severity: normal
X-Debbugs-Cc: bake...@biomail.me

Dear Maintainer,

dokuwiki is unable to render some pages and shows the error message:
"TypeError: implode(): Argument #2 ($array) must be of type ?array, string 
given"

The easiest way to reproduce the bug is to head to the page
"wiki:syntax". On a freshly installed host without any special
configuration, the URL that fails is:
http://127.0.0.1/dokuwiki/doku.php?id=wiki:syntax

In the dokuwiki logfile, this is the stack trace:
2023-10-26 21:51:00     
/usr/share/php/simplepie/library/SimplePie/Parse/Date.php(544)  TypeError: 
implode(): Argument #2 ($array) must be of type ?array, string given
  #0 /usr/share/php/simplepie/library/SimplePie/Parse/Date.php(544): implode()
  #1 /usr/share/php/simplepie/library/SimplePie/Parse/Date.php(577): 
SimplePie_Parse_Date->__construct()
  #2 /usr/share/php/simplepie/library/SimplePie/Registry.php(222): 
SimplePie_Parse_Date::get()
  #3 /usr/share/php/simplepie/library/SimplePie/Item.php(772): 
SimplePie_Registry->call()
  #4 /usr/share/php/simplepie/library/SimplePie.php(2890): 
SimplePie_Item->get_date()
  #5 /usr/share/php/simplepie/library/SimplePie.php(2777): 
SimplePie->get_items()
  #6 /usr/share/dokuwiki/inc/parser/xhtml.php(1339): 
SimplePie->get_item_quantity()
  #7 /usr/share/dokuwiki/inc/parserutils.php(682): Doku_Renderer_xhtml->rss()
  #8 /usr/share/dokuwiki/inc/parserutils.php(149): p_render()
  #9 /usr/share/dokuwiki/inc/parserutils.php(89): p_cached_output()
  #10 /usr/share/dokuwiki/inc/Ui/PageView.php(68): p_wiki_xhtml()
  #11 /usr/share/dokuwiki/inc/Action/Show.php(37): dokuwiki\Ui\PageView->show()
  #12 /usr/share/dokuwiki/inc/template.php(100): 
dokuwiki\Action\Show->tplContent()
  #13 [internal function]: tpl_content_core()
  #14 /usr/share/dokuwiki/inc/Extension/Event.php(133): call_user_func_array()
  #15 /usr/share/dokuwiki/inc/Extension/Event.php(199): 
dokuwiki\Extension\Event->trigger()
  #16 /usr/share/dokuwiki/inc/template.php(85): 
dokuwiki\Extension\Event::createAndTrigger()
  #17 /var/lib/dokuwiki/lib/tpl/dokuwiki/main.php(59): tpl_content()
  #18 /usr/share/dokuwiki/inc/actions.php(27): include('...')
  #19 /usr/share/dokuwiki/doku.php(126): act_dispatch()
  #20 {main}

The upstream bugtracker has some information:
https://github.com/dokuwiki/dokuwiki/issues/74087

It would appear that this is a dependency problem: this version of
dokuwiki is not compatible with the version of libphp-simplepie in
bookworm.

-- System Information:
Debian Release: 12.2
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable-security'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 6.1.0-13-amd64 (SMP w/6 CPU threads; PREEMPT)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages dokuwiki depends on:
ii  debconf [debconf-2.0]  1.5.82
ii  javascript-common      11+nmu1
ii  libjs-jquery           3.6.1+dfsg+~3.5.14-1
ii  libjs-jquery-cookie    12-4
ii  libjs-jquery-ui        1.13.2+dfsg-1
ii  libphp-simplepie       1.3.1+dfsg-5
ii  perl                   5.36.0-7
ii  php                    2:8.2+93
ii  php-geshi              1.0.9.1-1
ii  php-phpseclib          2.0.42-1
ii  php-random-compat      2.0.21-1
ii  php-xml                2:8.2+93
ii  php8.2 [php]           8.2.7-1~deb12u1
ii  php8.2-xml [php-xml]   8.2.7-1~deb12u1
ii  ucf                    3.0043+nmu1

Versions of packages dokuwiki recommends:
ii  imagemagick                      8:6.9.11.60+dfsg-1.6
ii  imagemagick-6.q16 [imagemagick]  8:6.9.11.60+dfsg-1.6
ii  php-ldap                         2:8.2+93
ii  php8.2-cli [php-cli]             8.2.7-1~deb12u1
ii  php8.2-ldap [php-ldap]           8.2.7-1~deb12u1
ii  wget                             1.21.3-1+b2

Versions of packages dokuwiki suggests:
pn  libapache2-mod-xsendfile  <none>

-- debconf information:
  dokuwiki/system/configure-webserver: apache2
  dokuwiki/wiki/superuser: admin
  dokuwiki/system/writeconf: false
  dokuwiki/wiki/email: webmaster@localhost
  dokuwiki/system/accessible: localhost only
  dokuwiki/wiki/failpass:
  dokuwiki/wiki/acl: true
  dokuwiki/wiki/license: cc-by-sa
  dokuwiki/system/documentroot: /dokuwiki
  dokuwiki/system/localnet: 10.0.0.0/24
  dokuwiki/wiki/title: Debian DokuWiki
  dokuwiki/system/restart-webserver: true
  dokuwiki/wiki/policy: public
  dokuwiki/system/writeplugins: false
  dokuwiki/wiki/fullname: DokuWiki Administrator
* dokuwiki/system/purgepages: false

Reply via email to