How to Install ReCAPTCHA in OJS 3.1.1-4
thankyou
How to Install ReCAPTCHA in OJS 3.1.1-4
thankyou
Hi @luismurillo
Google recaptcha is built-in on OJS 3.1.1-4. To enabled it you need set recaptcha
parameter to On in config.inc.php file and add your pub
and secret
keys
parameters for your domain registered in Google Recaptcha Tool.
;;;;;;;;;;;;;;;;;;;;
; Captcha Settings ;
;;;;;;;;;;;;;;;;;;;;
[captcha]
; Whether or not to enable ReCaptcha
recaptcha = on
; Public key for reCaptcha (see http://www.google.com/recaptcha)
recaptcha_public_key = your_public_key
; Private key for reCaptcha (see http://www.google.com/recaptcha)
recaptcha_private_key = your_private_key
Best,
Israel
thank you,but not working
I activate captcha, recaptcha on, public and private key and i cant see the reCAPTCHA in the login
Have you cleared your OJS cache ?
Administration > Clear template cache
Best,
Israel
yes, i did, but nothing
I´m sorry, it is working well on register user. thanks !!!
Can I use reCAPTCHA por login access?
Hi @luismurillo
You may achieve what you’re asking following instructions in this link:
https://docs.pkp.sfu.ca/admin-guide/en/securing-your-system
Best,
Israel
thank you very much for the information
It is required that you add your domain on the https://www.google.com/recaptcha/ and copy the public and secret key from this online tool into your config.inc.php section.
Best,
Israel
Thanks but i already added these key in config file but same error. Screenshot attached
Please guide.
Have you added correclty your journal domain to Google Recaptcha and cleared OJS cache also after the config.inc.php changing?
Best,
Israel
I dont know if this problem could be related with the version por the captcha. V2 or V3.
@luismurillo thanks i was uusing v3 now using v2 working perfect.
@israel.cefrin Please check screenshots, I am facing recapcha validation check not passing properly from last 3 days with new registrations. Please guide.
Hi @hussainyousaf,
I’ve removed the two screenshots that included your ReCAPTCHA private key. Please be careful not to post private information to the forum! I would recommend resetting these keys in order to be sure that nobody has taken them.
Regards,
Alec Smecher
Public Knowledge Project Team
Thanks @asmecher i have changed but what is the solution of my issue? Please guide.
Hi @hussainyousaf,
I believe there have been a few changes since early releases of 3.3.0-x related to proxy settings. If your server is using a proxy to connect to the outside world, and you’re not up to date, you might want to upgrade to a newer release of 3.3.0-x. I don’t recall any other relevant changes but there may have been some.
If you’ve double-checked your settings (API keys, config.inc.php
, etc) and it’s still not working, you might try debugging the response that the Google server is giving OJS. For 3.3.0-x, look in:
The value of $response->getBody()
would probably be good to dump to the error log via the error_log
function, if you’ve got some basic experience with PHP.
Regards,
Alec Smecher
Public Knowledge Project Team
problem is still there.
we are using version 3.3.0.6
This is error log.
[16-Dec-2024 11:32:34 UTC] PHP Warning: Module ‘fileinfo’ already loaded in Unknown on line 0
[16-Dec-2024 11:32:34 UTC] PHP Deprecated: Non-static method PKPApplication::getRequest() should not be called statically in /home/afxvwsmy/public_html/plugins/themes/default/DefaultThemePlugin.inc.php on line 135
[16-Dec-2024 11:32:38 UTC] PHP Warning: PHP Startup: Unable to load dynamic library ‘php_fileinfo.dll’ (tried: /opt/cpanel/ea-php73/root/usr/lib64/php/modules/php_fileinfo.dll (/opt/cpanel/ea-php73/root/usr/lib64/php/modules/php_fileinfo.dll: cannot open shared object file: No such file or directory), /opt/cpanel/ea-php73/root/usr/lib64/php/modules/php_fileinfo.dll.so (/opt/cpanel/ea-php73/root/usr/lib64/php/modules/php_fileinfo.dll.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
[16-Dec-2024 11:32:38 UTC] PHP Warning: Module ‘curl’ already loaded in Unknown on line 0
[16-Dec-2024 11:32:38 UTC] PHP Warning: Module ‘fileinfo’ already loaded in Unknown on line 0
[16-Dec-2024 11:32:38 UTC] PHP Warning: Module ‘curl’ already loaded in Unknown on line 0
[16-Dec-2024 11:32:38 UTC] PHP Warning: PHP Startup: Unable to load dynamic library ‘php_fileinfo.dll’ (tried: /opt/cpanel/ea-php73/root/usr/lib64/php/modules/php_fileinfo.dll (/opt/cpanel/ea-php73/root/usr/lib64/php/modules/php_fileinfo.dll: cannot open shared object file: No such file or directory), /opt/cpanel/ea-php73/root/usr/lib64/php/modules/php_fileinfo.dll.so (/opt/cpanel/ea-php73/root/usr/lib64/php/modules/php_fileinfo.dll.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
[16-Dec-2024 11:32:38 UTC] PHP Warning: Module ‘fileinfo’ already loaded in Unknown on line 0
[16-Dec-2024 11:32:38 UTC] PHP Deprecated: Non-static method PKPApplication::getRequest() should not be called statically in /home/afxvwsmy/public_html/plugins/themes/default/DefaultThemePlugin.inc.php on line 135
[16-Dec-2024 11:32:49 UTC] PHP Warning: PHP Startup: Unable to load dynamic library ‘php_fileinfo.dll’ (tried: /opt/cpanel/ea-php73/root/usr/lib64/php/modules/php_fileinfo.dll (/opt/cpanel/ea-php73/root/usr/lib64/php/modules/php_fileinfo.dll: cannot open shared object file: No such file or directory), /opt/cpanel/ea-php73/root/usr/lib64/php/modules/php_fileinfo.dll.so (/opt/cpanel/ea-php73/root/usr/lib64/php/modules/php_fileinfo.dll.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
[16-Dec-2024 11:32:49 UTC] PHP Warning: Module ‘curl’ already loaded in Unknown on line 0
[16-Dec-2024 11:32:49 UTC] PHP Warning: Module ‘fileinfo’ already loaded in Unknown on line 0
[16-Dec-2024 11:32:49 UTC] PHP Warning: Module ‘curl’ already loaded in Unknown on line 0
[16-Dec-2024 11:32:49 UTC] PHP Warning: PHP Startup: Unable to load dynamic library ‘php_fileinfo.dll’ (tried: /opt/cpanel/ea-php73/root/usr/lib64/php/modules/php_fileinfo.dll (/opt/cpanel/ea-php73/root/usr/lib64/php/modules/php_fileinfo.dll: cannot open shared object file: No such file or directory), /opt/cpanel/ea-php73/root/usr/lib64/php/modules/php_fileinfo.dll.so (/opt/cpanel/ea-php73/root/usr/lib64/php/modules/php_fileinfo.dll.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
[16-Dec-2024 11:32:49 UTC] PHP Warning: Module ‘fileinfo’ already loaded in Unknown on line 0
[16-Dec-2024 11:32:49 UTC] PHP Deprecated: Non-static method PKPApplication::getRequest() should not be called statically in /home/afxvwsmy/public_html/plugins/themes/default/DefaultThemePlugin.inc.php on line 135
@asmecher Please guide problem still there.