We have successfully installed the ORCID Profile Plugin in our multi-journal platform in OJS 3.2.1.1 - users were able to register with their ORCID iD and connect their accounts (“Create or Connect your ORCID iD”). We are using an ORCID Membership API and the credentials are provided in the config.inc.php
After updating to OJS 3.2.1.2 we just get this error message, when clicking on the button “Create or Connect your ORCID iD”.
Fatal error: Uncaught Error: Call to a member function getId() on null in /srv/www/ojs/ojs/plugins/generic/orcidProfile/OrcidProfilePlugin.inc.php:304 Stack trace: #0 /srv/www/ojs/ojs/plugins/generic/orcidProfile/OrcidProfilePlugin.inc.php(343): OrcidProfilePlugin->buildOAuthUrl('orcidAuthorize', Array) #1 /srv/www/ojs/ojs/lib/pkp/lib/vendor/smarty/smarty/libs/sysplugins/smarty_internal_runtime_filterhandler.php(63): OrcidProfilePlugin->registrationFilter('\t<!DOCTYPE html...', Object(Smarty_Internal_Template)) #2 /srv/www/ojs/ojs/lib/pkp/lib/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php(231): Smarty_Internal_Runtime_FilterHandler->runFilter('output', '\t<!DOCTYPE html...', Object(Smarty_Internal_Template)) #3 /srv/www/ojs/ojs/lib/pkp/lib/vendor/smarty/smarty/libs/sysplugins/smarty_internal_templatebase.php(232): Smarty_Internal_Template->render(false, 1) #4 /srv/www/ojs/ojs/lib/pkp/lib/vendor/smarty/smarty/libs/sysplugins/smarty_internal_templatebase.php(134): Smarty_Internal_TemplateBase->_execute(Ob in /srv/www/ojs/ojs/plugins/generic/orcidProfile/OrcidProfilePlugin.inc.php on line 304
It’s not possible to connect to ORCID accounts at all on our journal platform.
What can cause this error?
Best, Sebastian