Checkout Flow Analyzer

1. Find Checkout Files

Files containing 'send_emails':

Found: /complete_paypal_order.php

Found: /paypal_ipn.php

Found: /debug_email.php

Found: /place_order.php

Found: /send_emails.php

Found: /analyze_checkout.php

Files containing checkout-related code:

Files containing 'checkout':

Files containing 'place order':

Files containing 'order processing':

Files containing '\$order\[':

2. Check Current send_emails.php

❌ send_emails.php not found at: /home/awarzfxs/public_html/checkout/checkout/send_emails.php

3. Test Direct Access

When you access send_emails.php directly in browser, you should see errors if any. Let's test what happens when we include it:

Attempting to include send_emails.php (with error capture):

Output from send_emails.php:

<p class='info'>Including send_emails.php with test data...</p><p class='bad'>PHP Error: include(/home/awarzfxs/public_html/checkout/checkout/send_emails.php): Failed to open stream: No such file or directory in /home/awarzfxs/public_html/checkout/analyze_checkout.php on line 141</p><p class='bad'>PHP Error: include(): Failed opening '/home/awarzfxs/public_html/checkout/checkout/send_emails.php' for inclusion (include_path='.:/opt/alt/php81/usr/share/pear:/opt/alt/php81/usr/share/php:/usr/share/pear:/usr/share/php') in /home/awarzfxs/public_html/checkout/analyze_checkout.php on line 141</p>

4. Recent Error Logs

Checking: error_log

[18-May-2026 13:26:13 UTC] PHP Warning:  Undefined array key "cart" in /home/awarzfxs/public_html/checkout/test_cart.php on line 4
[19-May-2026 01:45:42 Europe/London] THANKYOU: Final payment method: 'card'
[19-May-2026 10:10:20 Europe/London] PAYPAL IPN RECEIVED: 
[19-May-2026 10:10:20 Europe/London] PAYPAL IPN: No data received
[21-May-2026 05:44:07 UTC] === CREATE PAYMENT INTENT DEBUG START ===
[21-May-2026 05:44:07 UTC] Request method: GET
[21-May-2026 05:44:07 UTC] Raw input: 
[21-May-2026 05:44:07 UTC] Parsed body: []
[21-May-2026 05:44:07 UTC] Session ID: ce0mm01c0c67do3kfaqqgf9k9u
[21-May-2026 05:44:07 UTC] Session CSRF: MISSING
[21-May-2026 05:44:07 UTC] Loading config files...
[21-May-2026 06:44:07 Europe/London] Config files loaded successfully
[21-May-2026 06:44:07 Europe/London] Processing input...
[21-May-2026 06:44:07 Europe/London] CSRF provided: ''
[21-May-2026 06:44:07 Europe/London] CSRF session: ''
[21-May-2026 06:44:07 Europe/London] Amount posted: 0
[21-May-2026 06:44:07 Europe/London] Delivery method: delivery
[21-May-2026 06:44:07 Europe/London] CSRF validation failed
[21-May-2026 05:44:51 UTC] PHP Warning:  Undefined array key "cart" in /home/awarzfxs/public_html/checkout/test_cart.php on line 4
[21-May-2026 06:45:17 Europe/London] THANKYOU: Final payment method: 'card'

5. Next Steps

After running this analyzer:

  1. Check if there are any fatal PHP errors shown above
  2. Look at the file analysis to see what might be missing
  3. Check the error logs for any checkout-related errors
  4. If everything looks good, the issue might be in how/when send_emails.php is called