If certificate download URLs are returning 404 errors, flush the rewrite rules.
Rewrite rules have been flushed!
✅ Certificate table exists
"; echo "❌ Certificate table does not exist!
"; } ?>$cert_dir";
// Count PDF files
$pdf_count = count(glob($cert_dir . '/*.pdf'));
echo "Total PDF files: $pdf_count
"; // Check .htaccess if (file_exists($cert_dir . '/.htaccess')) { echo "✅ .htaccess file exists for security
"; } else { echo "⚠️ .htaccess file missing - certificates may not be protected
"; } } else { echo "❌ Certificate directory does not exist!
"; } ?>| ID | Event | Generated | Status |
|---|---|---|---|
| ' . $cert->certificate_id . ' | '; echo '' . esc_html($cert->event_title) . ' | '; echo '' . date('Y-m-d H:i', strtotime($cert->generated_date)) . ' | '; echo '' . $status . ' | '; echo '
No certificates found.
'; } } ?>