Home Forums Event Espresso Premium Database Error has occured

Database Error has occured

Posted: September 7, 2017 at 12:24 pm

Robert Bertazon

September 7, 2017 at 12:24 pm

I am getting intermittent occurrences of a database error when my customers are trying to pay for their event registrations. Some payments process normally, some receive the error. I am running Version 4.9.45.p with WordPress 4.8.1 running Thesis theme. site is The event registration page is


  • Support Staff

September 7, 2017 at 12:39 pm

Hi Robert,

May I ask do you the have the actual database error text? You can also check for an error code in Event Espresso > Payment Methods > Logs and if the error is related to a payment gateway response there may be an error response code.

Also, can you check the site’s PHP error logs for errors when the payment(s) were made?

Robert Bertazon

September 7, 2017 at 1:24 pm

Josh, I do not have the exact error as I have not been able to replicate it on my end. One of my customers said it was something along the lines of – A database error has occured. Enable WP_Debug for more information. Does that make any sense?

Here is a link to a pdf from a payment methods log. I’m not sure if this is one that is in error or not. None of the transaction numbers match. As I said, only a couple of my customers have experienced this problem, but when they do, they cannot move forward even after repeated tries.


  • Support Staff

September 7, 2017 at 1:32 pm

You’ll need to enable WP_DEBUG to capture that error message and log it (but not display the errors on the website itself).

You make the following edit to your site’s wp-config.php file to activate debug logging:

// Edit the following to enable WP_DEBUG mode (set false to true)
define( 'WP_DEBUG', true );

// Add the following to enable Debug logging to the /wp-content/debug.log file
define( 'WP_DEBUG_LOG', true );

// Add the following to disable display of errors and warnings 
define( 'WP_DEBUG_DISPLAY', false );

After you have the above edits in place, the next time an error is thrown the full error message will be logged to the /wp-content/debug.log file.

Robert Bertazon

September 7, 2017 at 1:57 pm

Thanks Josh. It has been enabled. I’ll contact you again if/when I get some info.

The support post ‘Database Error has occured’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Support forum for Event Espresso 3 and Event Espresso 4.
Documentation for EE3 and EE4
Documentation for Event Espresso 3

Documentation for Event Espresso 4

Status: closed

Updated by  Robert Bertazon 2 years, 4 months ago ago

Topic Tags


This topic is:
Do NOT follow this link or you will be banned from the site!