Encountered an error when attempting to “Register” for a new account on the Production OJS main page (https://journals.uregina.ca/) after implementing ORCID Plugin with Member API credentials. Everything worked with Sandbox API credentials during testing and everything else seems fine otherwise in Production with Member API credentials.
Current OJS Version: 3.4.0.7
Fatal error: Uncaught Error: Call to a member function getId() on null in /path_to_ojs/plugins/generic/orcidProfile/OrcidProfilePlugin.php:761 Stack trace: #0 /path_to_ojs/plugins/generic/orcidProfile/OrcidProfilePlugin.php(721): APP\plugins\generic\orcidProfile\OrcidProfilePlugin->buildOAuthUrl() #1 /path_to_ojs/lib/pkp/lib/vendor/smarty/smarty/libs/sysplugins/smarty_internal_runtime_filterhandler.php(63): APP\plugins\generic\orcidProfile\OrcidProfilePlugin->registrationFilter() #2 /path_to_ojs/lib/pkp/lib/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php(232): Smarty_Internal_Runtime_FilterHandler->runFilter() #3 /path_to_ojs/lib/pkp/lib/vendor/smarty/smarty/libs/sysplugins/smarty_internal_templatebase.php(238): Smarty_Internal_Template->render() #4 /path_to_ojs/lib/pkp/lib/vendor/smarty/smarty/libs/sysplugins/smarty_internal_templatebase.php(134): Smarty_Internal_TemplateBase->_execute() #5 /path_to_ojs/lib/pkp/classes/template/PKPTemplateManager.php(1369): Smarty_Internal_TemplateBase->display() #6 /path_to_ojs/lib/pkp/classes/form/Form.php(214): PKP\template\PKPTemplateManager->display() #7 /path_to_ojs/lib/pkp/classes/user/form/RegistrationForm.php(121): PKP\form\Form->fetch() #8 /path_to_ojs/lib/pkp/classes/form/Form.php(156): PKP\user\form\RegistrationForm->fetch() #9 /path_to_ojs/lib/pkp/pages/user/RegistrationHandler.php(67): PKP\form\Form->display() #10 [internal function]: PKP\pages\user\RegistrationHandler->register() #11 /path_to_ojs/lib/pkp/classes/core/PKPRouter.php(334): call_user_func() #12 /path_to_ojs/lib/pkp/classes/core/PKPPageRouter.php(278): PKP\core\PKPRouter->_authorizeInitializeAndCallRequest() #13 /path_to_ojs/lib/pkp/classes/core/Dispatcher.php(165): PKP\core\PKPPageRouter->route() #14 /path_to_ojs/lib/pkp/classes/core/PKPApplication.php(395): PKP\core\Dispatcher->dispatch() #15 /path_to_ojs/index.php(21): PKP\core\PKPApplication->execute() #16 {main} thrown in /path_to_ojs/plugins/generic/orcidProfile/OrcidProfilePlugin.php on line 761
----------------
Plugin Status:
ORCID Profile Plugin
OrcidProfile Plugin Status
Globally configured in config.inc.php
OrcidProfile Plugin enabled
Client Id is valid
Client Secret is valid
-----------------
This apparently does not happen with every link to “Register,” as there are numerous throughout the multiple journals and main interface:
Main Page (https://journals.uregina.ca/index/user/register) - breaks
Login Page Link (https://journals.uregina.ca/index/user/register?source=) - breaks
In Education (https://journals.uregina.ca/ineducation/user/register) - works (w/ ORCID - shows link to ORCID [https://orcid.org/signin])
Journal of Probability and Statistical Science (https://journals.uregina.ca/jpss/user/register) - works (no ORCID)
Journal of Creative Arts and Social Enterprise (https://journals.uregina.ca/jcase/user/register) - works (no ORCID)
