Enabling Debug Logging for TalkativeWP

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: #

  1. Go to WP Admin → TalkativeWP → Settings
  2. Find the setting: Enable Debug Mode
  3. 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.log occasionally.
  • Disable WP_DEBUG when 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 #

FeatureWhere to SetWhat it Does
WP_DEBUGwp-config.phpEnables global debug mode
talkativewp_chat_debugPlugin setting or optionEnables plugin-specific debug logging
debug.log filewp-content/debug.logStores PHP and plugin logs

Need help reading a log file? Share it with us (privately!) via support and we’ll help you analyze it.

What are your feelings

Updated on 18 May 2025
I am here to help chat icon
Chat with TalkativeWP Bot
TalkativeWP Bot on it...