Step 1: Enable WordPress Debug Mode #
Edit your wp-config.php file (found in the root directory of your WordPress installation) and add or update the following lines:
define('WP_DEBUG', true);
define('WP_DEBUG_LOG', true);
define('WP_DEBUG_DISPLAY', false);
What This Does: #
WP_DEBUG: Turns on debug mode in general.WP_DEBUG_LOG: Logs all errors to a file (wp-content/debug.log).WP_DEBUG_DISPLAY: Prevents errors from being shown on-screen to visitors.
Step 2: Enable TalkativeWP Plugin Debugging #
TalkativeWP has an internal debug flag that lets you get detailed info about licensing, API calls, and more.
How to enable: #
- Go to WP Admin → TalkativeWP → Settings
- Find the setting: Enable Debug Mode
- Toggle it on and click Save.
Alternatively, you can enable it programmatically using:
update_option('talkativewp_chat_debug', 'yes');
Once enabled, you’ll start seeing additional logs in:
- The PHP error log (if logging is enabled on your server)
- The file
wp-content/debug.log - Admin console (some logs use
error_log()directly)
What Gets Logged? #
When enabled, you’ll see debug information for:
- License validation requests
- Supabase errors (if any)
- Activation/deactivation logic
- Webhook results
- Plugin update checks
- Admin enqueue hooks
How to Clear Logs #
To prevent large log files:
- Manually delete
wp-content/debug.logoccasionally. - Disable
WP_DEBUGwhen not troubleshooting.
Don’t Leave Debug Mode Enabled on Live Sites #
Leaving debug mode active in production may expose sensitive details or impact performance.
Be sure to disable it once you’re done testing:
define('WP_DEBUG', false);
define('WP_DEBUG_LOG', false);
Recap #
| Feature | Where to Set | What it Does |
|---|---|---|
WP_DEBUG | wp-config.php | Enables global debug mode |
talkativewp_chat_debug | Plugin setting or option | Enables plugin-specific debug logging |
debug.log file | wp-content/debug.log | Stores PHP and plugin logs |
Need help reading a log file? Share it with us (privately!) via support and we’ll help you analyze it.