hi but why doesn’t google recaptcha work on version 3.4.0-1 with php 8.1 ?
i tried both version 2 and 3 but same thing.
the same versions on ojs 3.3.0.14 work perfectly
hi but why doesn’t google recaptcha work on version 3.4.0-1 with php 8.1 ?
i tried both version 2 and 3 but same thing.
the same versions on ojs 3.3.0.14 work perfectly
Can you give more details on what errors you’re seeing in relation to Google recaptcha?
I tried both setting php 8.1 and 8.2
also i tried both v2 and v3 version of google recaptcha
the problem is that no error appears, it says nothing.
look on version 3.3.0.14 how it worked and look on 3.4.0-1 as you don’t see anything
on log i have this
28/06/2023 22:34:56 | WARNING: [pool amq.aiqua.it] child 303 said into stderr: [28-Jun-2023 20:34:56 UTC] Exception: Plugin ojtFileDownload expected to inherit from OjtFileDownlaod, actual type NULL in /web/htdocs/amq.aiqua.it/home/lib/pkp/classes/plugins/PluginRegistry.php:203 |
---|---|
28/06/2023 22:34:56 | WARNING: [pool amq.aiqua.it] child 303 said into stderr: Stack trace: |
28/06/2023 22:34:56 | WARNING: [pool amq.aiqua.it] child 303 said into stderr: #0 /web/htdocs/amq.aiqua.it/home/lib/pkp/classes/plugins/PluginRegistry.php(219): PKP\plugins\PluginRegistry::_instantiatePlugin() |
28/06/2023 22:34:56 | WARNING: [pool amq.aiqua.it] child 303 said into stderr: #1 /web/htdocs/amq.aiqua.it/home/lib/pkp/classes/plugins/PluginRegistry.php(112): PKP\plugins\PluginRegistry::_loadFromDatabase() |
28/06/2023 22:34:56 | WARNING: [pool amq.aiqua.it] child 303 said into stderr: #2 /web/htdocs/amq.aiqua.it/home/lib/pkp/classes/core/Dispatcher.php(155): PKP\plugins\PluginRegistry::loadCategory() |
28/06/2023 22:34:56 | WARNING: [pool amq.aiqua.it] child 303 said into stderr: #3 /web/htdocs/amq.aiqua.it/home/lib/pkp/classes/core/PKPApplication.php(373): PKP\core\Dispatcher->dispatch() |
28/06/2023 22:34:56 | WARNING: [pool amq.aiqua.it] child 303 said into stderr: #4 /web/htdocs/amq.aiqua.it/home/index.php(21): PKP\core\PKPApplication->execute() |
28/06/2023 22:34:56 | WARNING: [pool amq.aiqua.it] child 303 said into stderr: #5 {main} |
28/06/2023 22:34:44 | WARNING: [pool amq.aiqua.it] child 304 said into stderr: #13 /web/htdocs/amq.aiqua.it/home/lib/pkp/lib/vendor/smarty/smarty/libs/sysplugins/smarty_template_resource_base.php(123): content_649bd58ca4d235_99402165() |
28/06/2023 22:34:44 | WARNING: [pool amq.aiqua.it] child 304 said into stderr: #14 /web/htdocs/amq.aiqua.it/home/lib/pkp/lib/vendor/smarty/smarty/libs/sysplugins/smarty_template_compiled.php(114): Smarty_Template_Resource_Base->getRenderedTemplateCode() |
28/06/2023 22:34:44 | WARNING: [pool amq.aiqua.it] child 304 said into stderr: #15 /web/htdocs/amq.aiqua.it/home/lib/pkp/lib/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php(217): Smarty_Template_Compiled->render() |
28/06/2023 22:34:44 | WARNING: [pool amq.aiqua.it] child 304 said into stderr: #16 /web/htdocs/amq.aiqua.it/home/lib/pkp/lib/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php(386): Smarty_Internal_Template->render() |
28/06/2023 22:34:44 | WARNING: [pool amq.aiqua.it] child 304 said into stderr: #17 /web/htdocs/amq.aiqua.it/home/cache/t_compile/730f07b122c7f1f646a89310df5fdc270643e954^d49dc0801a97aaed7a39f9de90403c63b1cc8e43_0.app.frontendpagesuserRegister.tpl.php(183): Smarty_Internal_Template->_subTemplateRender() |
28/06/2023 22:34:44 | WARNING: [pool amq.aiqua.it] child 304 said into stderr: #18 /web/htdocs/amq.aiqua.it/home/lib/pkp/lib/vendor/smarty/smarty/libs/sysplugins/smarty_template_resource_base.php(123): content_649bd58c868118_35907392() |
28/06/2023 22:34:44 | WARNING: [pool amq.aiqua.it] child 304 said into stderr: #19 /web/htdocs/amq.aiqua.it/home/lib/pkp/lib/vendor/smarty/smarty/libs/sysplugins/smarty_template_compiled.php(114): Smarty_Template_Resource_Base->getRenderedTemplateCode() |
28/06/2023 22:34:44 | WARNING: [pool amq.aiqua.it] child 304 said into stderr: #20 /web/htdocs/amq.aiqua.it/home/lib/pkp/lib/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php(217): Smarty_Template_Compiled->render() |
28/06/2023 22:34:44 | WARNING: [pool amq.aiqua.it] child 304 said into stderr: #21 /web/htdocs/amq.aiqua.it/home/lib/pkp/lib/vendor/smarty/smarty/libs/sysplugins/smarty_internal_templatebase.php(238): Smarty_Internal_Template->render() |
28/06/2023 22:34:44 | WARNING: [pool amq.aiqua.it] child 304 said into stderr: #22 /web/htdocs/amq.aiqua.it/home/lib/pkp/lib/vendor/smarty/smarty/libs/sysplugins/smarty_internal_templatebase.php(134): Smarty_Internal_TemplateBase->_execute() |
28/06/2023 22:34:44 | WARNING: [pool amq.aiqua.it] child 304 said into stderr: #23 /web/htdocs/amq.aiqua.it/home/lib/pkp/classes/template/PKPTemplateManager.php(1325): Smarty_Internal_TemplateBase->display() |
28/06/2023 22:34:44 | WARNING: [pool amq.aiqua.it] child 304 said into stderr: #24 /web/htdocs/amq.aiqua.it/home/lib/pkp/classes/form/Form.php(214): PKP\template\PKPTemplateManager->display() |
28/06/2023 22:34:44 | WARNING: [pool amq.aiqua.it] child 304 said into stderr: #25 /web/htdocs/amq.aiqua.it/home/lib/pkp/classes/user/form/RegistrationForm.php(121): PKP\form\Form->fetch() |
28/06/2023 22:34:44 | WARNING: [pool amq.aiqua.it] child 304 said into stderr: #26 /web/htdocs/amq.aiqua.it/home/lib/pkp/classes/form/Form.php(156): PKP\user\form\RegistrationForm->fetch() |
28/06/2023 22:34:44 | WARNING: [pool amq.aiqua.it] child 304 said into stderr: #27 /web/htdocs/amq.aiqua.it/home/lib/pkp/pages/user/RegistrationHandler.php(73): PKP\form\Form->display() |
28/06/2023 22:34:44 | WARNING: [pool amq.aiqua.it] child 304 said into stderr: #28 [internal function]: PKP\pages\user\RegistrationHandler->register() |
28/06/2023 22:34:44 | WARNING: [pool amq.aiqua.it] child 304 said into stderr: #29 /web/htdocs/amq.aiqua.it/home/lib/pkp/classes/core/PKPRouter.php(334): call_user_func() |
28/06/2023 22:34:44 | WARNING: [pool amq.aiqua.it] child 304 said into stderr: #30 /web/htdocs/amq.aiqua.it/home/lib/pkp/classes/core/PKPPageRouter.php(277): PKP\core\PKPRouter->_authorizeInitializeAndCallRequest() |
28/06/2023 22:34:44 | WARNING: [pool amq.aiqua.it] child 304 said into stderr: #31 /web/htdocs/amq.aiqua.it/home/lib/pkp/classes/core/Dispatcher.php(165): PKP\core\PKPPageRouter->route() |
28/06/2023 22:34:44 | WARNING: [pool amq.aiqua.it] child 304 said into stderr: #32 /web/htdocs/amq.aiqua.it/home/lib/pkp/classes/core/PKPApplication.php(373): PKP\core\Dispatcher->dispatch() |
28/06/2023 22:34:44 | WARNING: [pool amq.aiqua.it] child 304 said into stderr: #33 /web/htdocs/amq.aiqua.it/home/index.php(21): PKP\core\PKPApplication->execute() |
28/06/2023 22:34:44 | WARNING: [pool amq.aiqua.it] child 304 said into stderr: #34 {main} |
28/06/2023 22:34:37 | WARNING: [pool amq.aiqua.it] child 318 said into stderr: [28-Jun-2023 20:34:37 UTC] Exception: Plugin ojtFileDownload expected to inherit from OjtFileDownlaod, actual type NULL in /web/htdocs/amq.aiqua.it/home/lib/pkp/classes/plugins/PluginRegistry.php:203 |
28/06/2023 22:34:37 | WARNING: [pool amq.aiqua.it] child 318 said into stderr: Stack trace: |
28/06/2023 22:34:37 | WARNING: [pool amq.aiqua.it] child 318 said into stderr: #0 /web/htdocs/amq.aiqua.it/home/lib/pkp/classes/plugins/PluginRegistry.php(219): PKP\plugins\PluginRegistry::_instantiatePlugin() |
28/06/2023 22:34:37 | WARNING: [pool amq.aiqua.it] child 318 said into stderr: #1 /web/htdocs/amq.aiqua.it/home/lib/pkp/classes/plugins/PluginRegistry.php(112): PKP\plugins\PluginRegistry::_loadFromDatabase() |
28/06/2023 22:34:37 | WARNING: [pool amq.aiqua.it] child 318 said into stderr: #2 /web/htdocs/amq.aiqua.it/home/lib/pkp/classes/core/Dispatcher.php(155): PKP\plugins\PluginRegistry::loadCategory() |
28/06/2023 22:34:37 | WARNING: [pool amq.aiqua.it] child 318 said into stderr: #3 /web/htdocs/amq.aiqua.it/home/lib/pkp/classes/core/PKPApplication.php(373): PKP\core\Dispatcher->dispatch() |
28/06/2023 22:34:37 | WARNING: [pool amq.aiqua.it] child 318 said into stderr: #4 /web/htdocs/amq.aiqua.it/home/index.php(21): PKP\core\PKPApplication->execute() |
sorry if I rewrite you. do you have any idea what the problem could be?
Hi @simgiallorosso,
Sorry - I don’t, but I’ll see if one of our team members can look at this and respond when they have an opportunity.
Best regards,
Roger
PKP Team
thanks.
I’m waiting. in the meantime I had to disable the recaptcha otherwise they could not sign up or log in
i use bootstrap3
In fact, I tried with the default template and the google recaptcha shows!
is there any piece of code missing in the template?
thanks
Hi @simgiallorosso,
Yes, ReCAPTCHA support appears to be missing from the Bootstrap3 theme. I’ve filed this for future improvement here:
Regards,
Alec Smecher
Public Knowledge Project Team
so now we wait for you to implement it?
thanks a lot
Hi @simgiallorosso,
I’m afraid I’ve got bigger priorities at the moment, but waiting would be one option. We’d also welcome a pull request from the community that resolves the issue.
Regards,
Alec Smecher
Public Knowledge Project Team
I don’t think it’s enough to copy the part of the code that concerns the working google recaptcha on the base template, right?
Hi @simgiallorosso,
Actually, I do think that would be all that’s required!
Regards,
Alec Smecher
Public Knowledge Project Team
actually in the userRegister.tpl file in plugins/themes/bootstrap3/templates/fronted/pages
there is the code regarding the google recaptcha
but it doesn’t do what it should.
the code is the same present in the same file of the recaptcha working on version 3.3.0.14.
I have no idea at this point where to put it or if the code has wrong instructions for php8.
what do you think about it?
solved!
i have inserit this
in the userRegister.tpl file in plugins/themes/bootstrap3/templates/fronted/pages
instead of the code present for the google recaptcha
clearly it is not a permanent solution but it is a patch.
I hope that with the next updates you will fix this too.
thank you for the time you are dedicating to me in this period, you above all but also the others
This topic was automatically closed after 2 days. New replies are no longer allowed.