Stas_Z Posted February 2, 2023 Share Posted February 2, 2023 (edited) Hi everyone! I got an error after sending contact form and the mail doesn't come. Any ideas? Quote {"error":true,"message":"404 not found!"} PHP version: 7.3.33 PrestaShop version: 1.7.7.1 Shop URL: http://oneride.eu/ Contact form v4.4.0 - by PrestaShop (the latest version) Request URL: https://oneride.eu/en/contact-us Request Method: POST Status Code: 200 Request Form Data: id_contact: 2 from: [email protected] id_order: 708 fileUpload: (binary) message: test psgdpr_consent_checkbox: 1 url: token: a3511a4e2dcb2717ab336e20b8ca69b3 submitMessage: Send Edited February 2, 2023 by Stas_Z (see edit history) Link to comment Share on other sites More sharing options...
Prestachamps Posted February 3, 2023 Share Posted February 3, 2023 Hi @Stas_Z, have you tried to enable the debug mode and send a contact form that way? Also the mail is configured to be sent using sendmail or SMTP? Have you tested out the mailsending from backoffice-> Advanced parameters -> E-mail , using the bottom tester tool. If you are not getting the test mail or you got an error there, then (depending on the displayed error) the mail configuration is not correct, or maybe the hosting needs to enable the remote SMTP(if SMTP is used) or allow on the server the sendmail functionality. If you will send the error to the hosting support, most probably they will know how to solve it I hope that I could help. Have a nice day, Leo. 1 Link to comment Share on other sites More sharing options...
Stas_Z Posted February 3, 2023 Author Share Posted February 3, 2023 (edited) 3 hours ago, Prestachamps said: Hi @Stas_Z, have you tried to enable the debug mode and send a contact form that way? Also the mail is configured to be sent using sendmail or SMTP? Have you tested out the mailsending from backoffice-> Advanced parameters -> E-mail , using the bottom tester tool. If you are not getting the test mail or you got an error there, then (depending on the displayed error) the mail configuration is not correct, or maybe the hosting needs to enable the remote SMTP(if SMTP is used) or allow on the server the sendmail functionality. If you will send the error to the hosting support, most probably they will know how to solve it I hope that I could help. Have a nice day, Leo. Hi, Leo! Thank you fot answer 3 hours ago, Prestachamps said: have you tried to enable the debug mode and send a contact form that way? Yes. I got it when https://oneride.eu/en/contact-us load (1/1) ContextErrorException Warning: json_decode() expects parameter 1 to be string, array given in tawkto.php line 135 at Tawkto->hookDisplayFooter(array('smarty' => object(SmartyCustomTemplate), 'cookie' => object(Cookie), 'cart' => object(Cart), 'altern' => 1)) in Hook.php line 990 at HookCore::coreCallHook(object(Tawkto), 'hookDisplayFooter', array('smarty' => object(SmartyCustomTemplate), 'cookie' => object(Cookie), 'cart' => object(Cart), 'altern' => 1)) in Hook.php line 13 at Hook::coreCallHook(object(Tawkto), 'hookDisplayFooter', array('smarty' => object(SmartyCustomTemplate), 'cookie' => object(Cookie), 'cart' => object(Cart), 'altern' => 1)) in Hook.php line 414 at HookCore::callHookOn(object(Tawkto), 'displayFooter', array('smarty' => object(SmartyCustomTemplate), 'cookie' => object(Cookie), 'cart' => object(Cart), 'altern' => 1)) in Hook.php line 927 at HookCore::exec('displayFooter', array('smarty' => object(SmartyCustomTemplate), 'cookie' => object(Cookie), 'cart' => object(Cart), 'altern' => 1), null) in smarty.config.inc.php line 167 at smartyHook(array('h' => 'displayFooter'), object(SmartyCustomTemplate)) in SmartyLazyRegister.php line 83 at SmartyLazyRegister->__call('smartyHook', array(array('h' => 'displayFooter'), object(SmartyCustomTemplate))) in a7a56b2fa98f8bb9c3e9557be5244fafdabbb7d0_2.file.footer.tpl.php line 78 at Block_79433688663dd1a1a68bfc0_74843822->callBlock(object(SmartyCustomTemplate)) in smarty_internal_runtime_inheritance.php line 248 at Smarty_Internal_Runtime_Inheritance->callBlock(object(Block_79433688663dd1a1a68bfc0_74843822), object(SmartyCustomTemplate)) in smarty_internal_runtime_inheritance.php line 184 at Smarty_Internal_Runtime_Inheritance->process(object(SmartyCustomTemplate), object(Block_79433688663dd1a1a68bfc0_74843822)) in smarty_internal_runtime_inheritance.php line 156 at Smarty_Internal_Runtime_Inheritance->instanceBlock(object(SmartyCustomTemplate), 'Block_79433688663dd1a1a68bfc0_74843822', 'hook_footer') in a7a56b2fa98f8bb9c3e9557be5244fafdabbb7d0_2.file.footer.tpl.php line 30 at content_63dd1a1a6928c0_58190239(object(SmartyCustomTemplate)) in smarty_template_resource_base.php line 123 at Smarty_Template_Resource_Base->getRenderedTemplateCode(object(SmartyCustomTemplate)) in smarty_template_compiled.php line 114 at Smarty_Template_Compiled->render(object(SmartyCustomTemplate)) in smarty_internal_template.php line 216 at Smarty_Internal_Template->render() in smarty_internal_template.php line 385 at Smarty_Internal_Template->_subTemplateRender('file:_partials/footer.tpl', null, 'at_moviclayouts/layout-left-column.tpl', 0, 31536000, array(), 0, false) in e2edce3fe10e6aa05aff7c1599af26310b1ccbc7_2.file.layout-both-columns.tpl.php line 358 at Block_160996445063dd1a1a2f96a8_91679234->callBlock(object(SmartyCustomTemplate)) in smarty_internal_runtime_inheritance.php line 248 at Smarty_Internal_Runtime_Inheritance->callBlock(object(Block_160996445063dd1a1a2f96a8_91679234), object(SmartyCustomTemplate)) in smarty_internal_runtime_inheritance.php line 184 at Smarty_Internal_Runtime_Inheritance->process(object(SmartyCustomTemplate), object(Block_160996445063dd1a1a2f96a8_91679234)) in smarty_internal_runtime_inheritance.php line 156 at Smarty_Internal_Runtime_Inheritance->instanceBlock(object(SmartyCustomTemplate), 'Block_160996445063dd1a1a2f96a8_91679234', 'footer') in e2edce3fe10e6aa05aff7c1599af26310b1ccbc7_2.file.layout-both-columns.tpl.php line 116 at content_63dd1a1a3009f0_07780281(object(SmartyCustomTemplate)) in smarty_template_resource_base.php line 123 at Smarty_Template_Resource_Base->getRenderedTemplateCode(object(SmartyCustomTemplate)) in smarty_template_compiled.php line 114 at Smarty_Template_Compiled->render(object(SmartyCustomTemplate)) in smarty_internal_template.php line 216 at Smarty_Internal_Template->render() in smarty_internal_template.php line 385 at Smarty_Internal_Template->_subTemplateRender('layouts/layout-both-columns.tpl', null, 'at_moviclayouts/layout-left-column.tpl', 0, 31536000, array(), 2, false, null, null) in smarty_internal_runtime_inheritance.php line 116 at Smarty_Internal_Runtime_Inheritance->endChild(object(SmartyCustomTemplate), 'layouts/layout-both-columns.tpl') in a1098b2decf1c96dbbc1848914cf81e44e633a60_2.file.layout-left-column.tpl.php line 38 at content_63dd1a1a2ded34_21125394(object(SmartyCustomTemplate)) in smarty_template_resource_base.php line 123 at Smarty_Template_Resource_Base->getRenderedTemplateCode(object(SmartyCustomTemplate)) in smarty_template_compiled.php line 114 at Smarty_Template_Compiled->render(object(SmartyCustomTemplate)) in smarty_internal_template.php line 216 at Smarty_Internal_Template->render() in smarty_internal_template.php line 385 at Smarty_Internal_Template->_subTemplateRender('layouts/layout-left-column.tpl', null, 'at_moviclayouts/layout-left-column.tpl', 0, 31536000, array(), 2, false, null, null) in smarty_internal_runtime_inheritance.php line 116 at Smarty_Internal_Runtime_Inheritance->endChild(object(SmartyCustomTemplate), 'layouts/layout-left-column.tpl') in e29f4ab1fe55858e6b724549e36e5445b5a2720b_2.file.page.tpl.php line 33 at content_63dd1a1a2d4ae2_56396581(object(SmartyCustomTemplate)) in smarty_template_resource_base.php line 123 at Smarty_Template_Resource_Base->getRenderedTemplateCode(object(SmartyCustomTemplate)) in smarty_template_compiled.php line 114 at Smarty_Template_Compiled->render(object(SmartyCustomTemplate)) in smarty_internal_template.php line 216 at Smarty_Internal_Template->render() in smarty_internal_template.php line 385 at Smarty_Internal_Template->_subTemplateRender('page.tpl', null, 'at_moviclayouts/layout-left-column.tpl', 0, 31536000, array(), 2, false, null, null) in smarty_internal_runtime_inheritance.php line 116 at Smarty_Internal_Runtime_Inheritance->endChild(object(SmartyCustomTemplate), 'page.tpl') in df1c39e008529093e0cd15f27cf1f604eb7202df_2.file.contact.tpl.php line 50 at content_63dd1a1a2c8d97_65312581(object(SmartyCustomTemplate)) in smarty_template_resource_base.php line 123 at Smarty_Template_Resource_Base->getRenderedTemplateCode(object(SmartyCustomTemplate)) in smarty_template_compiled.php line 114 at Smarty_Template_Compiled->render(object(SmartyCustomTemplate)) in smarty_internal_template.php line 216 at Smarty_Internal_Template->render(false, 0) in smarty_internal_templatebase.php line 232 at Smarty_Internal_TemplateBase->_execute(object(SmartyCustomTemplate), null, 'at_moviclayouts/layout-left-column.tpl', null, 0) in smarty_internal_templatebase.php line 116 at Smarty_Internal_TemplateBase->fetch('contact.tpl', null, 'at_moviclayouts/layout-left-column.tpl', null, false, true, false) in SmartyCustom.php line 112 at SmartyCustomCore->fetch('contact.tpl', null, 'at_moviclayouts/layout-left-column.tpl') in FrontController.php line 704 at FrontControllerCore->smartyOutputContent('contact.tpl') in FrontController.php line 686 at FrontControllerCore->display() in Controller.php line 326 at ControllerCore->run() in Dispatcher.php line 518 at DispatcherCore->dispatch() in index.php line 28 3 hours ago, Prestachamps said: Also the mail is configured to be sent using sendmail or SMTP? sendmail 3 hours ago, Prestachamps said: Have you tested out the mailsending from backoffice-> Advanced parameters -> E-mail , using the bottom tester tool Yes. I got testing letter without any errors I thought that Contact form doesn't use mail drivers.. specifically for sending mesage. I thought it just adds new record into a database then admin receive notification in admin-panel. Or not? Edited February 3, 2023 by Stas_Z (see edit history) Link to comment Share on other sites More sharing options...
vvaahhiidd Posted November 13, 2023 Share Posted November 13, 2023 Are you using any reCaptcha module? If yes, try disabling the module and try again. If it works please consider marking this as solution! Link to comment Share on other sites More sharing options...
Sickboards Posted January 23 Share Posted January 23 Make sure the contactform.tpl (in the template\modules folder) has the following code {hook h='displayPaCaptcha' posTo='contact'} Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now