Report this

What is the reason for this report?

Digital Ocean + Forge = WordPress not sending contact forms (504 Gateway Timeout)

Posted on October 18, 2017

I can’t seem to figure it out and this may be beyond my expertise but every site I have set up through Forge (https://forge.laravel.com) and Digital Ocean using WordPress is having issues with submitting forms. I thought it was themes or plugins but I have since narrowed it down to server(s). Looking in the console I see that admin-ajax.php never connects and returns a 504 timeout error; I don’t know much about server configurations but I can’t find much online about it that seems to help. The forms do eventually send the emails on some sites but you cant tell from the front end of the site because it just keeps spinning and never looks like it submits. Anyone know what I can do to check for solutions?

I have tried restarting the server, nginx, etc.



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Hello,

This sounds like an issue with the SMTP server that is being used to send the emails.

I could suggest checking your SMTP details, they should be listed in the Mail.php.

Also I could suggest checking your server logs for more information. Here’s a step by step guide on how to troubleshoot common Nginx problems:

https://www.digitalocean.com/community/questions/how-to-troubleshoot-common-nginx-issues-on-linux-server

Regards, Bobby

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.