CHECKER_CAPTCHA_HELPER class not found. Please ensure the helper file is loaded.
Summary:
"; echo "| Checker | "; echo "Security Data | "; echo "Turnstile Data | "; echo "Turnstile Enabled | "; echo "Site Key | "; echo "Secret Key | "; echo "Key Format | "; echo "
|---|---|---|---|---|---|---|
| " . esc_html($result['title']) . " (ID: {$result['id']}) | "; // Security Data echo ""; echo $result['has_security'] ? ' Yes' : ' No'; echo " | "; // Turnstile Data echo ""; echo $result['has_turnstile'] ? ' Yes' : ' No'; echo " | "; // Turnstile Enabled echo ""; echo $result['turnstile_enabled'] ? ' Enabled' : ' Disabled'; echo " | "; // Site Key echo ""; if ($result['has_site_key']) { echo ' Present'; } else { echo ' Missing'; } echo " | "; // Secret Key echo ""; if ($result['has_secret_key']) { echo ' Present'; } else { echo ' Missing'; } echo " | "; // Key Format echo ""; if ($result['site_key_format']) { echo ' Valid'; } else { echo ' Invalid'; } echo " | "; echo "
Testing CAPTCHA helper methods with first Turnstile-enabled checker...
"; // Find first Turnstile-enabled checker $test_checker = null; foreach ($results as $result) { if ($result['turnstile_enabled']) { $test_checker = $result; break; } } if ($test_checker) { echo "";
print_r($config);
echo "";
// Test validate_captcha_config
$validation = CHECKER_CAPTCHA_HELPER::validate_captcha_config($test_checker['id']);
echo "";
print_r($validation);
echo "";
}
}
} else {
echo "No checkers with Turnstile enabled found to test.
"; } // Show debug info echo "WordPress Version: " . get_bloginfo('version') . "
"; echo "PHP Version: " . PHP_VERSION . "
"; echo "Plugin Version: " . defined('SHEET_CHECKER_PRO_VERSION') ? SHEET_CHECKER_PRO_VERSION : 'Unknown' . "
"; // Check WordPress debug mode echo "WordPress Debug: " . (WP_DEBUG ? 'Enabled' : 'Disabled') . "
"; echo "WordPress Debug Log: " . (WP_DEBUG_LOG ? 'Enabled' : 'Disabled') . "
"; // Show last few error log entries if (WP_DEBUG && WP_DEBUG_LOG) { $log_file = WP_CONTENT_DIR . '/debug.log'; if (file_exists($log_file) && is_readable($log_file)) { echo "";
$lines = file($log_file);
$last_lines = array_slice($lines, -10);
echo htmlspecialchars(implode('', $last_lines));
echo "";
}
}
?>