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

[03-Apr-2026 05:42:53 UTC] Session ID: epibv39botk97mu1mj4otv20p7
[03-Apr-2026 05:42:53 UTC] Session CSRF: MISSING
[03-Apr-2026 05:42:53 UTC] Loading config files...
[03-Apr-2026 06:42:53 Europe/London] Config files loaded successfully
[03-Apr-2026 06:42:53 Europe/London] Processing input...
[03-Apr-2026 06:42:53 Europe/London] CSRF provided: ''
[03-Apr-2026 06:42:53 Europe/London] CSRF session: ''
[03-Apr-2026 06:42:53 Europe/London] Amount posted: 0
[03-Apr-2026 06:42:53 Europe/London] Delivery method: delivery
[03-Apr-2026 06:42:53 Europe/London] CSRF validation failed
[03-Apr-2026 05:42:58 UTC] PHP Fatal error:  Uncaught RuntimeException: send_emails.php: $order not provided in /home/awarzfxs/public_html/checkout/send_emails.php:7
Stack trace:
#0 {main}
  thrown in /home/awarzfxs/public_html/checkout/send_emails.php on line 7
[03-Apr-2026 05:44:24 UTC] PHP Warning:  Undefined array key "cart" in /home/awarzfxs/public_html/checkout/test_cart.php on line 4
[03-Apr-2026 05:44:54 UTC] PHP Warning:  require(/home/awarzfxs/public_html/checkout/../vendor/autoload.php): Failed to open stream: No such file or directory in /home/awarzfxs/public_html/checkout/stripe_intent.php on line 9
[03-Apr-2026 05:44:54 UTC] PHP Fatal error:  Uncaught Error: Failed opening required '/home/awarzfxs/public_html/checkout/../vendor/autoload.php' (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/stripe_intent.php:9
Stack trace:
#0 {main}
  thrown in /home/awarzfxs/public_html/checkout/stripe_intent.php on line 9

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