Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dokuwiki: some DokuWiki plugins may require additional PHP packages #66

Open
mhenry07 opened this issue Jan 31, 2018 · 0 comments
Open

Comments

@mhenry07
Copy link

mhenry07 commented Jan 31, 2018

It would be helpful to add a note to dokuwiki/README.md that some DokuWiki plugins may require installing additional PHP packages in order to work properly.

Specifically, when attempting to use plugin:oauth, I was getting the following errors in my /var/log/nginx/error.log:

[error] 56#56: *148 FastCGI sent in stderr: "PHP message: PHP Fatal error: Call to undefined function OAuth\OAuth2\Service\json_decode() in /var/www/html/lib/plugins/oauth/phpoauthlib/src/OAuth/OAuth2/Service/Generic.php on line 80" while reading response header from upstream.

In this case, the solution was install the Alpine package php5-json, either by updating the apk add command in Dockerfile or by adding a custom command to docker-compose.yml, e.g.
command: apk add --no-cache php5-json && php-fpm5 && nginx -g 'daemon off;'.

See also: cosmocode/dokuwiki-plugin-oauth#60

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant