remove($_REQUEST['handle']); wp_redirect('options-general.php?page=mailchimp-woocommerce&tab=logs'); } } $files = defined('WC_LOG_DIR') ? @scandir( WC_LOG_DIR ) : array(); $logs = array(); if (!empty($files)) { foreach ($files as $key => $value) { if (!in_array( $value, array( '.', '..' ))) { if (!is_dir($value) && mailchimp_string_contains($value, 'mailchimp_woocommerce')) { $logs[sanitize_title($value)] = $value; } } } } if (!empty($_REQUEST['log_file']) && isset($logs[sanitize_title( $_REQUEST['log_file'])])) { $viewed_log = $logs[sanitize_title($_REQUEST['log_file'])]; } elseif (!empty($logs)) { $viewed_log = current( $logs ); } $handle = !empty($viewed_log) ? substr($viewed_log, 0, strlen($viewed_log) > 37 ? strlen($viewed_log) - 37 : strlen($viewed_log) - 4) : ''; ?>

Logging Preference

Advanced troubleshooting can be conducted with the logging capability turned on. By default, it’s set to “none” and you may toggle to either “standard” or “debug” as needed. With standard logging, you can see basic information about the data submission to MailChimp including any errors. “Debug” gives a much deeper insight that is useful to share with support if problems arise.

Logging Preference