Support

Home Forums Event Espresso Premium What is WP_DEBUG

What is WP_DEBUG

Posted: November 3, 2015 at 7:40 am

Viewing 5 reply threads


Jamie Jennings

November 3, 2015 at 7:40 am

I just recently set up new events and tested the registration and received the following message: A database error has occurred. Turn on WP_DEBUG for more information. I’ve never had this happen before when creating new events.


Lorenzo Orlando Caum

  • Support Staff

November 3, 2015 at 7:50 am

Hi Erin,

Turning on WP debugging will help us understand the error that has occurred. Could you temporarily turn on WordPress debugging by adding the macro in the following link to your wp-config.php file?

https://gist.github.com/lorenzocaum/848801a1173be464fbe7#file-gistfile1-php

The wp-config.php file can be found in the WordPress root which is where the wp-admin, wp-content, and other files and folders for WordPress resides.

Then please try to trigger the error and you should see something on the screen. Could you copy and paste that here into a reply?

If you do not see an error on your screen, then please browse to this location using your SFTP or FTP client (e.g. FileZilla, Cyberduck):

/wp-content/debug.log

You should see an error recorded within the file. Please copy and paste that here in a reply.

Then go ahead and deactivate WordPress debugging by removing the macro that was recently added or setting it to false and saving changes:

https://gist.github.com/lorenzocaum/848801a1173be464fbe7#gistcomment-1239850

Thanks


Lorenzo


Jamie Jennings

November 4, 2015 at 5:21 am

Thanks Lorenzo, but I’m more of an admin so a lot of what you’re instructing I don’t understand. I don’t know how to get to the wp-config.php file. Also is the whole macro on the screen shot to be copied once I do know how to get to file?

<?php
//* Do NOT include the opening php tag

//* Disable WordPress debugging with debug log and debug display
define(‘WP_DEBUG’, false);
if (WP_DEBUG) {
define(‘WP_DEBUG_LOG’, true);
define(‘WP_DEBUG_DISPLAY’, true);
}

I’ve never had this happen before when setting up new events and I just did something a few weeks ago and it was fine. If you could help instruct a little more I’d appreciate any explanation and assistance.


Tony

  • Support Staff

November 4, 2015 at 5:30 am

Hi Erin,

Before going into further details, do you have FTP access to the server?

Or do you have a login for your hosts control panel? That will usually have some form of file manager to allow you to make these changes.

(Please don’t post any login details on the forum, I just want to make sure you have access and can use FTP/A file manager before going further)

Which hosting company do you use for the site?


Jamie Jennings

November 4, 2015 at 6:00 am

Unfortunately I don’t know if we have FTP access or a login to hosts control panel. But we are using WP Engine to host our site.

But, I actually just did an EE update in WP and now the database error is not showing up. So the update seems to have fixed the issue. I’ll do some more testing to see if I run into the same error message again.


Tony

  • Support Staff

November 4, 2015 at 6:06 am

That’s great, please do let us know if this comes up again.

However if possible I would still recommend contacting WP Engine and requesting FTP details from them as eventually you will need them (if there’s an issue with the site or a plugin causes a fatal error you’ll need FTP details to fix it, or wait for WP Engine to fix after opening a ticket)

Viewing 5 reply threads

The support post ‘What is WP_DEBUG’ 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.

Event Espresso