Hi there,
I’ve the follow error when an user try access the registering page from the home page (index):
PHP Fatal error: Uncaught Error: Call to a member function getId() on null in /myhidepath/plugins/generic/orcidProfile/OrcidProfilePlugin.inc.php:318
This line is part of this block:
$request = PKPApplication::get()->getRequest();
$context = $request->getContext();
// This should only ever happen within a context, never site-wide.
assert($context != null);
$contextId = $context->getId(); //line 318 here
if ($this->isMemberApiEnabled($contextId)) {
$scope = ORCID_API_SCOPE_MEMBER;
} else {
$scope = ORCID_API_SCOPE_PUBLIC;
}
The same action works fine when the user click on Register from a specific journal homepage.
I found similar trouble with orcid when the http&httpS protocols are mixed, so be sure you ask for a redirect url (to orcid) and you set your base url (in your config.inc.php) in the same way.
In other words, to be safe, work in httpS all the time.