Closed Springjunky closed 4 years ago
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Similar problem with searchindex
plugin. The plugin gave me a 500. Looking into nginx logs, I found that the error was because dokuwiki could not find init.php
. But the plugin has the correct path: https://github.com/splitbrain/dokuwiki-plugin-searchindex/blob/32e56a59996ea3a10b3a70f0239fc13d58f1174b/ajax.php#L17 (I checked it works perfectly from a local php installation).
I guess the inc(lude) directory is at the wrong place in the docker container, plugins with this code
This is definitely the case.
I noticed that /config
(which can be mounted on host system) doesn't contain inc
dir, although it contains other dokuwiki dirs.
I went a little backwards and found that lsiobase-alpine
on which this image is based doesn't contain anything about /config
.
But lsiobase-nginx
does expose /config
as a volume. Now, this dokuwiki image extracts the dokuwiki tar file into /app
. So inc
should be inside /app/dokuwiki
(which is true since I can verify it from inside the container). I am really missing something here as I can't identify how /app and /config are connected.
Okay, I found it here.
So basically, the image is built by copying only certain directories to /config
, and /inc
remains inside /app
. And then, creates symlinks. Could this problem be due to symlinking? Could just create symlinks (and not copy individual dirs)?
Okay, spent sometime debugging the issue. Inside the container, I ran:
cd /config/dokuwiki && ln -sf /app/dokuwiki/inc inc
The plugin started working. Now, from inside my host volume, I see that only the symlink is mounted; no access to dokuwiki core files.
Good find. It is strange that the plugin gets its absolute real path, rather than the symlinked path.
I have installed the snippets plugin and the bootstrap3 / bootstrap-wrapper plugin
https://www.dokuwiki.org/plugin:snippets https://www.dokuwiki.org/template:bootstrap3 https://www.dokuwiki.org/plugin:bootswrapper?s[]=bootstrap&s[]=wrapper
Expected Behavior
The editor buttons opens a pupup.
Current Behavior
Pupup ist blank, debugging shows a http 500 error The follwing ULR is openend in the popup window
http:///lib/plugins/snippets/exe/snippets.php?ns=&edid=wikitext
or
http:///lib/plugins/bootswrapper/exe/popup.php?ns=&edid=wiki text
Debugging the URL from the popup window shows the http-error
I tried a Docker exec into container and look the nginx-error.log
The nginx shows some more error
I tried a link
but this gave me a Cache not accessible error
I guess the inc(lude) directory is at the wrong place in the docker container, plugins with this code
starting from the code like
for example
would fail, because the builded path points to
Steps to Reproduce
Environment
PI4
*CPU architecture:arm32 How docker service was installed:
with
docker-compose up -d
'version: "2" services: dokuwiki: image: linuxserver/dokuwiki container_name: dokuwiki environment: