🔧 Contact Form Diagnostic Tool

This tool will identify exactly what's causing your contact form error.

📁 File Check

✅ contact.php found
✅ contact_process.php found
✅ contact_config.php found
✅ includes/database.php found

⚙️ Configuration Check

✅ reCAPTCHA Site Key configured
✅ reCAPTCHA Secret Key configured
✅ Admin email configured
✅ SMTP username configured

🗄️ Database Check

✅ Database connection successful
❌ contact_form table does not exist

🔒 reCAPTCHA API Check

✅ reCAPTCHA API reachable
✅ reCAPTCHA secret key is valid

🐘 PHP Environment Check

✅ cURL extension available
✅ Mail function available
✅ MySQLi extension available

📋 Summary

🚨 Found 1 critical issue(s) that need to be fixed:

🔨 Required Fixes:

  1. Import contact_form_table.sql into your database

🚀 Quick Fix Instructions

1. Get reCAPTCHA v3 Keys

Visit Google reCAPTCHA Admin Console
Create new site with reCAPTCHA v3 (not v2!)
Add your domain and copy the Site Key and Secret Key

2. Update contact_config.php

define('RECAPTCHA_SITE_KEY', 'your_actual_site_key_here');
define('RECAPTCHA_SECRET_KEY', 'your_actual_secret_key_here');
define('CONTACT_ADMIN_EMAIL', 'your-admin@email.com');
define('SMTP_USERNAME', 'your-email@gmail.com');
define('SMTP_PASSWORD', 'your-app-password');

3. Import Database Table

Run this SQL command in your database:
SOURCE contact_form_table.sql;

📞 Still Need Help?
After making these fixes, refresh this page to test again.
If issues persist, check your server error logs or contact your hosting provider.

Diagnostic completed at 2026-04-17 13:26:35