Safari Request Debug Logs

Generated:

Debug Key: Use ?key= for access without WP_DEBUG
Safari debug log cleared.'; } elseif ($_GET['clear'] === 'wp' && file_exists($wp_debug_log)) { file_put_contents($wp_debug_log, ''); echo '
WordPress debug log cleared.
'; } } // Display Safari debug log if (file_exists($log_file)) { $log_content = file_get_contents($log_file); $log_entries = array_filter(explode("\n", $log_content)); $total_entries = count($log_entries); echo '

Safari Debug Log (' . $total_entries . ' entries)

'; if ($total_entries > 0) { // Show recent entries first $log_entries = array_reverse($log_entries); $shown_entries = array_slice($log_entries, 0, 50); // Show last 50 entries echo '
'; foreach ($shown_entries as $entry) { if (empty(trim($entry))) continue; // Parse log entry if (preg_match('/\[(.*?)\] (.*?) \| (.*)/', $entry, $matches)) { $timestamp = $matches[1]; $message = $matches[2]; $data = $matches[3]; $is_error = (strpos($message, 'ERROR') !== false || strpos($message, 'FATAL') !== false); echo '
'; echo '
' . htmlspecialchars($timestamp) . '
'; echo '
' . htmlspecialchars($message) . '
'; // Pretty print JSON data $decoded = json_decode($data, true); if ($decoded) { echo '
' . htmlspecialchars(json_encode($decoded, JSON_PRETTY_PRINT)) . '
'; } else { echo '
' . htmlspecialchars($data) . '
'; } echo '
'; } } echo '
'; if ($total_entries > 50) { echo '
Showing 50 most recent entries of ' . $total_entries . ' total.
'; } } else { echo '
No Safari debug entries found. Make a request with Safari to generate logs.
'; } } else { echo '
Safari debug log file not found: ' . htmlspecialchars($log_file) . '
'; } // Display recent WordPress debug log entries that contain Safari info if (file_exists($wp_debug_log)) { $wp_log_content = file_get_contents($wp_debug_log); $wp_log_lines = array_filter(explode("\n", $wp_log_content)); // Filter for Safari-related entries $safari_entries = array_filter($wp_log_lines, function($line) { return (strpos($line, 'SAFARI') !== false || strpos($line, 'Safari') !== false); }); if (!empty($safari_entries)) { echo '

WordPress Debug Log - Safari Entries (' . count($safari_entries) . ' found)

'; echo '
'; // Show recent Safari entries $recent_safari = array_reverse(array_slice($safari_entries, -20)); foreach ($recent_safari as $entry) { echo '
'; echo '
' . htmlspecialchars($entry) . '
'; echo '
'; } echo '
'; } } ?>

Instructions:

  1. Visit https://upskill-staging.measurequick.com/find-a-trainer/ with Safari
  2. Refresh this page to see debug logs
  3. Look for FATAL ERROR or REQUEST COMPLETED entries
  4. Check memory usage patterns and plugin interactions

Log Locations: