crockbg Posted July 5, 2023 Share Posted July 5, 2023 Hi, I have a problem with the standard Contact Form of Prestashop 1.7.8.8: If I enable the Server Cache, the module doesn't send any email and the page refresh without any error message. What I can check to solve this problem? Here the server detail: Server: Linux #62~20.04.1-Ubuntu SMP Tue Nov 22 21:24:20 UTC 2022 x86_64 Version softwarer: Apache Versione MySQL: 8.0.28-0ubuntu0.20.04.3 Motore MySQL: InnoDB Driver MySQL: DbPDO Version PHP: 7.4.33 Memory Limit: 512M Thank you for help Luca Link to comment Share on other sites More sharing options...
skinnybloke Posted October 31 Share Posted October 31 I have the same issue. Did you ever solve it? Link to comment Share on other sites More sharing options...
Knowband Plugins Posted November 1 Share Posted November 1 Hi, This happens when the cache blocks the form processing. Try this: Test without cache: Go to Advanced Parameters > Performance > set "Use cache" to No. Test the form. If it works: Switch cache mechanism to "Memcached" or "Redis" instead of FileSystem. Still issues, then check email logs in Advanced Parameters > E-mail and enable debug mode in defines.inc.php. Regards. Link to comment Share on other sites More sharing options...
skinnybloke Posted November 2 Share Posted November 2 Turning Smarty Cache off and enabling Redis resolved the problem. Will this have a detrimental effect on site performance? I also run the site through Cloudflare for caching. Link to comment Share on other sites More sharing options...
alex_developer Posted November 2 Share Posted November 2 5 hours ago, skinnybloke said: Will this have a detrimental effect on site performance? I also run the site through Cloudflare for caching. To prevent Cloudflare from caching requests to send emails from the contact form, you need to configure Page Rules in Cloudflare and specify Cache Level: Bypass for the request URL. Then Cloudflare will not cache requests from the contact form. 1 Link to comment Share on other sites More sharing options...
skinnybloke Posted November 3 Share Posted November 3 Cloudflare didn't seem to be causing a problem, but I have added the rule as advised. Thank you for your help. 1 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