🔍 HTTP 500 Error Diagnostic Tool

Server: Apache

PHP Version: 8.2.33


1. PHP Version Check

✅ PHP 8.2.33 (>= 8.0 required)

2. Composer Vendor Check

⚠️ vendor/autoload.php missing - using fallback mailer

Run: composer install --no-dev --optimize-autoloader

3. Critical File Existence

✅ index.php exists

✅ bootstrap.php exists

✅ head.php exists

✅ header.php exists

✅ footer.php exists

✅ mail.config.php exists

✅ recaptcha.config.php exists

✅ payment-config.php exists

✅ process-donation.php exists

✅ includes/db.php exists

✅ includes/submissions-logger.php exists

✅ .htaccess exists

✅ admin/login.php exists

✅ admin/index.php exists

✅ admin/donations.php exists

4. PHP Syntax Check (via include simulation)

✅ bootstrap.php - no parse errors

✅ mail.config.php - no parse errors

✅ recaptcha.config.php - no parse errors

✅ payment-config.php - no parse errors

✅ process-donation.php - no parse errors

✅ includes/db.php - no parse errors

✅ includes/submissions-logger.php - no parse errors

✅ head.php - no parse errors

✅ header.php - no parse errors

✅ footer.php - no parse errors

✅ admin/login.php - no parse errors

✅ admin/index.php - no parse errors

5. Mailer Fallback Test


Deprecated: Creation of dynamic property SimpleFallbackMailer::$Host is deprecated in /home3/comakyau/public_html/mitrahelpinghands.org/mail.config.php on line 82

Deprecated: Creation of dynamic property SimpleFallbackMailer::$SMTPAuth is deprecated in /home3/comakyau/public_html/mitrahelpinghands.org/mail.config.php on line 83

Deprecated: Creation of dynamic property SimpleFallbackMailer::$Username is deprecated in /home3/comakyau/public_html/mitrahelpinghands.org/mail.config.php on line 84

Deprecated: Creation of dynamic property SimpleFallbackMailer::$Password is deprecated in /home3/comakyau/public_html/mitrahelpinghands.org/mail.config.php on line 85

⚠️ create_mailer() error: Undefined constant SimpleFallbackMailer::ENCRYPTION_STARTTLS

✅ SimpleFallbackMailer class exists

✅ PHPMailer alias exists

6. Session Test


Warning: session_start(): Session cannot be started after headers have already been sent in /home3/comakyau/public_html/mitrahelpinghands.org/diagnostic.php on line 128

✅ Session started successfully

✅ CSRF token generated

7. reCAPTCHA Config

✅ reCAPTCHA site key configured

✅ reCAPTCHA secret key configured

✅ verify_recaptcha() function exists

8. .htaccess Check

✅ .htaccess exists (803 bytes)

tags balanced

9. Docker DNS Resolution Test

✅ Not a Docker environment, skipping test.

10. Donation API Test (pre_create_donation)

❌ pre_create_donation endpoint failed. HTTP Code: 200. Response:

{"success":false,"message":"Invalid CSRF token."}


❌ Some checks FAILED - review results above


PHP error_reporting: 32767

display_errors: 1

memory_limit: 512M

max_execution_time: 60

error_log path: error_log