Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Woocommerce checkout page internal server error

I am having 500 internal server error in checkout page in woocommerce. While order for simple product then it's work fine, but when use with bookable product then booking order is saved in admin panel, mail is also send, but order recipt not display in checkout page, having error in this wc-ajax=checkout, checked in console.

like image 213
Abhee Avatar asked Dec 17 '17 12:12

Abhee


2 Answers

A most popular problem of 500 internal server error is some fatal errors in backend part of your website. To find, where you got problem, you should to remove this from your wp-config.php file:

define( 'WP_DEBUG', false );

And instead of it add this code:

define( 'WP_DEBUG', true );
define( 'WP_DEBUG_LOG', true );
define( 'WP_DEBUG_DISPLAY', false );

The next step will be to go to the page of your website, where you're getting 500 internal server error. After open this file {your-website-folder}/wp-content/debug.log. Here you'll find all errors, which caused php files. There you'll find Fatal Error: {why it occured and where} .

So, after this steps you'll have to open new question about your error.

like image 75
Samvel Aleqsanyan Avatar answered Nov 12 '22 05:11

Samvel Aleqsanyan


You may want to check your outgoing Wordpress Mail Services and disable any plugin associated with sending out order completion emails. This is what worked for me. I was sending our order completion mails using Mailster and connected to AmazonSES SMTP. So I disabled the AmazonSES plugin and everything worked fine. I had recently updated the AmazonSES plugin and I am thinking the update broke it.

like image 26
Ubong Patrick Avatar answered Nov 12 '22 07:11

Ubong Patrick