Register page not working : Guzzlehttp error

My journal’s register page is not working. when i try to register new user, i am getting below error :

PHP Fatal error: Uncaught GuzzleHttp\Exception\ConnectException: cURL error 28: Operation timed out after 150001 milliseconds with 0 out of 0 bytes received (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) in /storage/www/ejournals/ojscrae/lib/pkp/lib/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php:200\nStack trace:\n#0 /storage/www/ejournals/ojscrae/lib/pkp/lib/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php(155): GuzzleHttp\Handler\CurlFactory::createRejection(Object(GuzzleHttp\Handler\EasyHandle), Array)\n#1 /storage/www/ejournals/ojscrae/lib/pkp/lib/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php(105): GuzzleHttp\Handler\CurlFactory::finishError(Object(GuzzleHttp\Handler\CurlHandler), Object(GuzzleHttp\Handler\EasyHandle), Object(GuzzleHttp\Handler\CurlFactory))\n#2 /storage/www/ejournals/ojscrae/lib/pkp/lib/vendor/guzzlehttp/guzzle/src/Handler/CurlHandler.php(43): GuzzleHttp\Handler\CurlFactory::finish(Object(GuzzleHttp\Handler\CurlHandler), Object(GuzzleHttp\Handler\EasyHandle), Object(GuzzleHttp\Hand in /storage/www/ejournals/ojscrae/lib/pkp/lib/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php on line 200, referer: journalurl/user/register

Steps I took leading up to the issue

  1. Register page of the journal
  2. when I filled all the fields, went through recaptcha, and then registered.
  3. recaptcha verification failed. and logs from the server show the above.
  4. I tried pinging pkp.sfu.ca which shows good
    ping pkp.sfu.ca
    PING pkp.sfu.ca (208.70.244.23) 56(84) bytes of data.
  5. I checked with the firewall team and they say they don’t filter outbound connection

What application are you using?
3.3.0.13

is there an issue after the recent Orcid Plugin update? i just updated the Orcid plugin in the morning and users started complaining that the register page doesn’t go ahead and we are getting error that I have shared. Thank you

Hi @deepakc,

Hmm… There is an issue with ORCID plugin – the users are always led to the ORCID sandbox page, "ORCID authorization link has already been used or is invalid" issue · Issue #281 · pkp/orcidProfile · GitHub. But this should not have anything to do with that error and user registration.
We have also added a new option (‘allow_redirects’ => [‘strict’ => true]) to Guzzle request in ORCID plugin that should allow URL redirects, but I do not know why this would be connected with user registration – it is only relevant for ORCID requests :thinking:
Thus, would it be possible for you to return back to your old ORCID plugin version and check if the error appears?

EDIT: It could be also something with reCAPTHA.
But going back to the previous ORCID plugin is also good idea, till we solve that issue above i.e. till the next release…

Best,
Bozana

@bozana, what is best practise to downgrade plugin. Morevoer, some of our users were having problem with orcid plugin that’s why we had to upgrade it. So downgrading won’t help.

@deepakc, could you tell me what ORCID plugin do you have now – you can see it under Settings > Website > Plugins > Plugin Gallery > ORCID Profile?

Could you maybe also try to disable the reCAPTCHA for a sec and try to register?

thanks for your quick reply. @bozana it’s v1.1.3.10 that was released on 17th October.
It says : Change the public API URL and add redirection ? anything changed with redirection that we need to set in firewall?

i’ll ask my teammate to disable recaptcha but i am not sure if its recaptcha because when i fill in the fields then go through recaptcha and register. the page takes time (which gives a time to recaptcha to expire) and then page sometimes throw 500

Hmm… I am not sure what you would need to set in firewall, but:
The ORCID public API URLs https://pub.orcid.org/ and https://pub.sandbox.orcid.org/, that were used till now, will now be redirected to https://orcid.org/ and https://sandbox.orcid.org/ by ORCID.
That new plugin v1.1.3.10 should actually already use the new API URLs https://orcid.org/ and https://sandbox.orcid.org/.
But, because we missed to change the API URL in the database table plugin_settings with that new plugin release, the plugin is always leading the users to https://sandbox.orcid.org/.

Could it maybe be that https://sandbox.orcid.org/ is not allowed in firewall?

If possible, maybe you can change the API URL of the ORCID plugin manually in the DB table plugin_settings, where setting_name = 'orcidProfileAPIPath' – I suppose the setting_value there is https://pub.orcid.org/ and you can change it to https://orcid.org/?

EDIT: However I am a little bit confused why ORCID plugin should be the problem, because at the new plugin release the ORCID button seems to be missing at the registration form, thus it seems ORCID plugin should not be used there…

Hi @deepakc ,

It just crossed my mind that it would be good to try these two things (mentioned above) and in this order:

  • disable reCAPTCHA and test/see if the error is still there (so that we are sure it is not coming from reCAPTCHA),
  • change that setting value in the plugin_settings table.

Thanks,
Bozana

thanks @bozana . i will go through these 2 steps and will let you know

hi @bozana , i asked team member who has google account for recaptcha to remove site url from google account however recaptcha shows:

error : ERROR for site owner:
Invalid domain for site key

i even cleared cache. anything else that i need to do to remove recaptcha?

Hi @deepakc ,
Oh, actually I think you would only need to set the setting recaptcha = off in the config.inc.php file of OJS…

1 Like

hi @bozana , you are right it looks like recaptcha issue and works after i disabled recaptcha. any advice what we can do for that. it will be difficult without recaptcha

hi @bozana, as i mentioned the issue is coming because of recaptcha. what can be the alternatives?

The recaptcha that we are using is V2, could there be a compatibility issue however it has been working so far.

Hi @bozana - setting the API URL to https://orcid.org/ in the database table seems not to help (may also be caching issue) - the orcidProfile plugin v1.1.3.10 always relays to the ORCID sandbox.

orcidProfile Plugin version 1.1.3.12 fixes this problem - tested on your test and production servers.

@mpbraendle, thanks a lot!

@deepakc,

I am sorry that I cannot help further :frowning: but maybe your system admins would know something – maybe it is something with internet connectivity, proxy or firewall…
Do you use proxy?

EDIT: I think the reCAPTCHA in OJS is also v2.

Hmm…
:thinking:
Bozana