Unable to register with ORCID plugin

Hello PKP community! I am running into an issue with the ORCID plugin and could use some input on this one. Is this possibly tied to our version of the OJS code?

  • Application Version - OJS 3.1.2.1 (Upgraded June 13, 2019); ORCID plugin v1.1.1.5 released on 2020-10-27

  • Description of issue - When trying to register with the journal via ORCID, none of the fields (e.g. name) are being populated from ORCID. After registering, the ORCID account is not connected to the OJS account. The ORCID auth appeared to be successful.

  • Steps you took leading up to the issue - the journal admin enabled the ORCID plugin and set up the credentials.

  • What you tried to resolve the issue - updated the version of the ORCID plugin in the plugin gallery, verified ORCID credentials, tried in a different journal that used a different theme.

  • Error log messages
    Wed Feb 03 15:29:00.048221 2021] [php7:notice] [pid 2537] Unexpected ORCID API response: 500 (/data/apache-html/ojs/plugins/generic/orcidProfile/pages/OrcidHandler.inc.php line 111, URL https://api.orcid.org/v2.1//person), referer: https://orcid.org/oauth/authorize?client_id=...
    [Wed Feb 03 15:29:00.099615 2021] [php7:notice] [pid 2537] Unexpected ORCID API response: 500 (/data/apache-html/ojs/plugins/generic/orcidProfile/pages/OrcidHandler.inc.php line 130, URL https://api.orcid.org/v2.1//employments), referer: https://orcid.org/oauth/authorize?client_id=...

2 Likes

Hi @kaitlin ,

I wanted do clarif some issues to pin-point the reason.

Your error code suggests, that this is related to the server communication.

Unexpected ORCID API response: 500`

How did you confirm the plugin auth was successful?
The ORCID auth appeared to be successful.

Was there successful communication recorded in ther orcid.log file?

Thanks @Dulip_Withanage! Where would I find the orcid.log file? I don’t see any files by that name in our files directory for the instance.

@kaitlin

it should be actually saved under the files directory of your OJS installation, if the configuration is successfull!

I had the rare case to restart the web-server to get the file created.

Thanks @Dulip_Withanage, this was really helpful for troubleshooting to know that if the file doesn’t exist, the auth was probably not successful. I can see the log file for a different instance we host, so I don’t think it’s a server issue. I’m following up with the journal admin to confirm the password is correct, as I think that might be the problem.

Hi @kaitlin

I have released two versions in plugin-gallery, which should give warnings, if there are errors in the client id and secret. Checked algorithms are defined here,

OJS 3.1 Release v1_1_1-12 · pkp/orcidProfile · GitHub
OJS 3.2 Release v1_1_2-7 · pkp/orcidProfile · GitHub

It may be helpful in trouble-shooting.