Open rm-info opened 4 months ago
Hi,
If you enable the debug mode which error is displayed ? It may be related with your php version or with some other modules installed on your instance.
Regards,
Hi nenes25, thanks for your answer.
If it's about your module's debug mode, it was hidden in the middle of the screenshots of my first post:
debug.log : Captcha soumis avec succès
If you were asking about the Prestashop debug mode:
` Whoops, looks like something went wrong. 1/1 FatalThrowableError in Debugger.php line 343: Type error: Return value of Eicaptcha\Module\Debugger::log() must be an instance of Eicaptcha\Module\void, none returned
in Debugger.php line 343
at Debugger->log('Captcha soumis avec succès') in eicaptcha.php line 471
at EiCaptcha->_validateCaptcha() in eicaptcha.php line 363
at EiCaptcha->hookActionContactFormSubmitBefore(array('cookie' => object(Cookie), 'cart' => object(Cart), 'altern' => '1')) in Hook.php line 895
at HookCore::coreCallHook(object(EiCaptcha), 'hookactionContactFormSubmitBefore', array('cookie' => object(Cookie), 'cart' => object(Cart), 'altern' => '1')) in Hook.php line 327
at HookCore::callHookOn(object(EiCaptcha), 'actionContactFormSubmitBefore', array('cookie' => object(Cookie), 'cart' => object(Cart), 'altern' => '1')) in Hook.php line 843
at HookCore::exec('actionContactFormSubmitBefore') in contactform.php line 6
at ContactformOverride->sendMessage() in contactform.php line 68
at Contactform->getWidgetVariables(null, array()) in contactform.php line 60
at Contactform->renderWidget(null, array()) in smartyfront.config.inc.php line 82
at {closure}(object(ContactformOverride), array()) in smartyfront.config.inc.php line 76
at withWidget(array(), object(Closure)) in smartyfront.config.inc.php line 83
at smartyWidget(array('name' => 'contactform'), object(Smarty_Dev_Template)) in SmartyLazyRegister.php line 83
at SmartyLazyRegister->__call('smartyWidget', array(array('name' => 'contactform'), object(Smarty_Dev_Template))) in smarty_internal_templatebase.php(157) : eval()'d code line 180
at content_663004f4dbe9b0_24115527(object(Smarty_Dev_Template)) in smarty_internal_templatebase.php line 188
at Smarty_Internal_TemplateBase->fetch('contact.tpl', null, 'layouts/layout-left-column.tpl', object(SmartyDev), false, true, false) in SmartyDev.php line 41
at SmartyDev->fetch('contact.tpl', null, 'layouts/layout-left-column.tpl') in FrontController.php line 660
at FrontControllerCore->smartyOutputContent('contact.tpl') in FrontController.php line 644
at FrontControllerCore->display() in ContactController.php line 29
at ContactController->initCursedPage() in Controller.php line 228
at ControllerCore->run() in Dispatcher.php line 369
at DispatcherCore->dispatch() in index.php line 28
`
With the error message we can find that the issue is related with the old php version. Simply remove the "void" return type for the function public function log($message): void and it will works.
Regards,
Indeed after deleteting ": void" the form submission works. I still cannot check the installation in the administration panel, but it's not a big deal.
Thank you very much for your time and for your great work.
Regards
It works for me too. Thank you !
Check if your issue exists
Your prestashop version
1.7.2.x
Eicaptcha version
2.5.x
Do you use a specific theme ?
classic theme
Describe the bug
Hi all, I've been asked to install a captcha on a prestashop website (PS 1.7.1.2, PHP 7.0). Already did it successfully on a PS 1.7.8.6 smoothly, but right now nothing's working as expected.
Is is supposed to work, or I have a version incompatibility? Any suggestion welcomed, thanks
Side question: where are saved the parameters of the modules? Because when I reinstall the module, the keys are already filled...
Screenshots
debug.log : Captcha soumis avec succès
Additional context
No response