leibniz-psychology/openid

Cannot configure extension

Closed this issue · 5 comments

Describe the bug
Cannot configure extension after installation.

To Reproduce
Steps to reproduce the behavior:

  1. Install the latest stable release by uploading the tarball
  2. Activate the extension
  3. Click on configure
  4. See error

What application are you using?
OJS 3.3.0.7 dockerized (pkpofficial/ojs:3_3_0-4).

Additional information
image

[Wed Mar 09 14:18:58.665827 2022] [php7:error] [pid 9] [client 158.38.174.15:43198] PHP Parse error:  syntax error, unexpected 'OpenIDPlugin' (T_STRING), expecting function (T_FUNCTION) or const (T_CONST) in /var/www/html/plugins/generic/openid/forms/OpenIDPluginSettingsForm.inc.php on line 41, referer: https://ojs-demo.nina.no/index.php/test/management/settings/website?r=6228a72bd960a

It seems that you have installed a plugin version intended for OJS 3.1.x.
This should work: https://github.com/leibniz-psychology/openid/releases/tag/v3_3_0-7

Sorry, I just took the latest release.
I am now able to see the configuration, even if the interface still have some kind of templating issue:
image

This looks like a translation problem. What language are you using in your OJS. You can find all supported languages for this plugin here: https://translate.pkp.sfu.ca/projects/plugins/openid/

You are right, the plugin has not been translated. I would have expected some English text instead of placeholders :) I am going to translate it in Norwegian.

You are right about the ugly placeholder, but (if I remember right) the problem is how OJS handles translations, because it has no fallback option. Maybe this has changed in the newer OJS versions, I will check that.