Yesterday, I installed the latest release of ORCID 1.1.2.6 from the plugin area (it was showing update available).
It is throwing the following fatal error in PHP error log:
[06-Jan-2021 17:58:32 America/New_York] PHP Warning: assert(): assert($context != null) failed in /home/seisense/journal.seisense.com/plugins/generic/orcidProfile/OrcidProfilePlugin.inc.php on line 303
[06-Jan-2021 17:58:32 America/New_York] PHP Fatal error: Uncaught Error: Call to a member function getId() on null in /home/seisense/journal.seisense.com/plugins/generic/orcidProfile/OrcidProfilePlugin.inc.php:304
Stack trace: #0 /home/seisense/journal.seisense.com/plugins/generic/orcidProfile/OrcidProfilePlugin.inc.php(343): OrcidProfilePlugin->buildOAuthUrl(‘orcidAuthorize’, Array) #1 /home/seisense/journal.seisense.com/lib/pkp/lib/vendor/smarty/smarty/libs/sysplugins/smarty_internal_runtime_filterhandler.php(63): OrcidProfilePlugin->registrationFilter(’\trunFilter(‘output’, '\trender(false, 1) #4 /home/seisense/journal.seisense.com/lib/pkp/lib/ven in /home/seisense/journal.seisense.com/plugins/generic/orcidProfile/OrcidProfilePlugin.inc.php on line 304
were you on a journal or myjournal.domain/index.php/index when the error occured?
In Plugin I am asserting that the context is set? Can you confirm it for me?
Hi @Dulip_Withanage ,
I don’t know exactly when this error is produced. I belive it is happening only when the author tries authenticate the ORCID by following the link they receive in email.
Thanks
@Dulip_Withanage when an instance supports multiple journals, it is possible to login/register from a site-wide form, when no context exists. Could this be the source of the problem?