We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Getting Server Error 500 when submitting Contact Form

News and General

lazypaddy's avatar
lazypaddy
34 posts
6 years ago
lazypaddy's avatar lazypaddy

Hey. I am using EE 5.2.1 and am using the EE Contact Form. It is working fine from my local dev server running Apache, and the e-mail works fine from the Control Panel on the hosting server. My hosting server is running Nginx and whenever I submit the contact form I keep getting a Server Error 500. The Nginx logs show the following…I’ve been pulling my hair out trying to find out what is causing this…any help would be greatly appreciated.

“POST / HTTP/1.1” 500 5 “http://www.mysite.com/contact”

       
lazypaddy's avatar
lazypaddy
34 posts
6 years ago
lazypaddy's avatar lazypaddy

Just a follow up….I have also tried this on an Apache Server on the remote hosting and receiving the same 500 Error there

       
lazypaddy's avatar
lazypaddy
34 posts
6 years ago
lazypaddy's avatar lazypaddy

After much pulling my hair out, I found the issue. I am using Google’s reCaptcha for the form and it requires curl which was not installed. Installed php curl and it works perfect now

       
Kevin Cupp's avatar
Kevin Cupp
791 posts
6 years ago
Kevin Cupp's avatar Kevin Cupp

Glad you got it sorted! When it doubt, best to check your server logs for explanations of 500 errors and they’ll usually point you to the right spot.

       
lazypaddy's avatar
lazypaddy
34 posts
6 years ago
lazypaddy's avatar lazypaddy

Afraid the server logs showed nothing more than what I pasted in the original post. What I eventually did was enable debug in index.php and it showed a call to php curl which was not defined….I worked back from there.

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.