After upgrade to OJS - ORCID plugin producing fatal error

Hi @Dulip_Withanage,
After I upgraded to OJS, the ORCID plugin is throwing a fatal error at the time of Registering a user account.

See the screenshot below:

Following is the php error:

[20-Nov-2020 02:04:32 America/New_York] PHP Fatal error:  Uncaught Error: Call to undefined method Application::getHttpClient() in /home/seisense/

Stack trace:
#0 /home/seisense/ OrcidHandler->orcidAuthorize(Array, Object(Request))
#1 /home/seisense/ PKPRouter->_authorizeInitializeAndCallRequest(Array, Object(Request), Array, false)
#2 /home/seisense/ PKPPageRouter->route(Object(Request))
#3 /home/seisense/ Dispatcher->dispatch(Object(Request))
#4 /home/seisense/ PKPApplication->execute()
#5 {main}
thrown in /home/seisense/ on line 59

Thanks @seisense for the report.
I will look into your case, ASAP.

Hi @Dulip_Withanage, we have the same problem. I have mentioned it here Error message when using the ORCID Profile Plugin after updating to OJS

Hi @bibliothekswelt, @seisense
can you confirm me, which version of the plugin you are having ? ?

The latest version is installed

We have also installed release from 2020-08-16

Yesterday, I installed the latest release of ORCID 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/ 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/
Stack trace:
#0 /home/seisense/ OrcidProfilePlugin->buildOAuthUrl(‘orcidAuthorize’, Array)
#1 /home/seisense/ OrcidProfilePlugin->registrationFilter(’\trunFilter(‘output’, '\trender(false, 1)
#4 /home/seisense/ in /home/seisense/ on line 304

Looking forward to your reply.

Hi @seisense,

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?

we have the same problem.

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.

@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?

Login to ojs admin panel,

  • navigate to settings->website->plugins

  • now click on tab plugin gallery

  • click on “ORCiD Profile”

  • Update plugin
    Issue will be resolved.

kaleem ul hassan

Hi, i have the same problem with plugin version (latest) for the OJS Any solutions?


Hi @orcalator,
I have released version which fixes the problem described here.

Please install it from the plugin gallery or

I would be grateful for a test confirmation on your servers.