linuxserver / docker-dokuwiki

GNU General Public License v3.0
110 stars 24 forks source link

Error when accessing "Admin" tab on wiki main page after updating to 'latest' (3e97dbf97811fcce90650daef32d7c7c97c2b6b74860b746a12925874e92689a) #48

Closed thestraycat closed 2 years ago

thestraycat commented 2 years ago

linuxserver.io


Expected Behavior

The 'Admin' section on the wiki page should work without throwing an error.

Current Behavior

After clicking on the Admin button (inbetween 'update profile' and 'logout' on the wiki homepage. The following error is thrown:

dokuwiki\Exception\FatalException: Array and string offset access syntax with curly braces is no longer supported An unforeseen error has occured. This is most likely a bug somewhere. It might be a problem in the advanced plugin.

More info has been written to the DokuWiki error log.

When i tail the log, i find the following two entries (I've redacted my wiki name from the the entry with <my wiki!>

2022/08/29 23:01:45 [error] 276#276: *46 FastCGI sent in stderr: "PHP message: PHP Fatal error:  Array and string offset access syntax with curly braces is no longer supported in /config/dokuwiki/lib/plugins/advanced/ZipLib.class.php on line 489" while reading upstream, client: 172.20.0.1, server: _, request: "GET /doku.php?id=start&do=admin HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "<mywiki!>.co.uk", referrer: "https://<mywiki!>.co.uk/wiki/"

2022/08/29 23:01:45 [error] 276#276: *48 FastCGI sent in stderr: "PHP message: PHP Warning:  Undefined array key "id" in /config/dokuwiki/lib/plugins/ckgedit/action/edit.php on line 71" while reading response header from upstream, client: 172.20.0.1, server: _, request: "GET /lib/exe/css.php?t=dokuwiki&tseed=4f0cf332a072f8bbb961516f4f01061f HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "<mywiki>.co.uk", referrer: "https://<my wiki!>.co.uk/wiki/doku.php?id=start&do=admin"

One error is a reference to a plugin i use called ckgedit which is an alternative WYSIWYG editor (which i'm assuming isn't yet compatible with the new version of dokuwiki) so i take the steps of manually removing this plugin from the plugins folder entirely. It lives at: /config/dokuwiki/lib/plugins/ckgedit

On restart of the container, and trying to access the 'admin' button again i get the error message still.

dokuwiki\Exception\FatalException: Array and string offset access syntax with curly braces is no longer supported An unforeseen error has occured. This is most likely a bug somewhere. It might be a problem in the advanced plugin.

More info has been written to the DokuWiki error log.

I'm wondering whether others will likely have incompatibility issues with their plugins too, i'm assuming theres been a move to php8 or similar? And also this issue when/if they click on their admin buttons soon...

Steps to Reproduce

  1. Navigate to wiki
  2. Click on 'Admin'

Environment

OS: Unraid 6.10.3 CPU architecture: x86_64 How docker service was installed: Using the standard Unraid Docker service.

Command used to create docker container (run/create/compose/screenshot)

``` root@localhost:# /usr/local/emhttp/plugins/dynamix.docker.manager/scripts/docker run -d --name='dokuwiki_linuxserver' --net='swag' -e TZ="Europe/London" -e HOST_OS="Unraid" -e HOST_HOSTNAME="MediaServer" -e HOST_CONTAINERNAME="dokuwiki_linuxserver" -e 'PUID'='99' -e 'PGID'='100' -e 'UMASK'='022' -l net.unraid.docker.managed=dockerman -l net.unraid.docker.webui='http://[IP]:[PORT:80]' -l net.unraid.docker.icon='https://raw.githubusercontent.com/linuxserver/docker-templates/master/linuxserver.io/img/dokuwiki-logo.png' -p '8887:80/tcp' -v '/mnt/cache/appdata/dokuwiki_linuxserver':'/config':'rw' 'lscr.io/linuxserver/dokuwiki:latest' dd56dd6ba940adbc15b5fec2ef59002d04a4dfb415aa0b84465e6e2511913f8f ``` ## Docker logs
-------------------------------------
          _         ()
         | |  ___   _    __
         | | / __| | |  /  \
         | | \__ \ | | | () |
         |_| |___/ |_|  \__/

Brought to you by linuxserver.io
-------------------------------------

To support LSIO projects visit:
https://www.linuxserver.io/donate/
-------------------------------------
GID/UID
-------------------------------------

User uid:    99
User gid:    100
-------------------------------------

using keys found in /config/keys
Existing install found install.php not available
[cont-init.d] Setting permissions this may take some time
**** The following active confs have different version dates than the samples that are shipped. ****
**** This may be due to user customization or an update to the samples. ****
**** You should compare the following files to the samples in the same folder and update them. ****
**** Use the link at the top of the file to view the changelog. ****
/config/nginx/nginx.conf
/config/nginx/site-confs/default.conf

**** The following site-confs have extensions other than .conf ****
**** This may be due to user customization. ****
**** You should review the files and rename them to use the .conf extension or remove them. ****
**** nginx.conf will only include site-confs with the .conf extension. ****
/config/nginx/site-confs/default
[custom-init] no custom files found exiting...
[ls.io-init] done.
github-actions[bot] commented 2 years ago

Thanks for opening your first issue here! Be sure to follow the bug or feature issue templates!

thestraycat commented 2 years ago

Anyone know anything about the above??

thestraycat commented 2 years ago

No replies, so rebuilt the instance. Closing.