=== Production Server Functionality Test === This script should be run ON the production server Path: /var/www/factur-x.point8.fr/customers/customer1/ 1. Testing Autoloader: ✅ Autoloader loaded successfully 2. Testing Configuration: ✅ Configuration file loaded Database host: 192.168.233.9 Database name: factur_x_qa Company name: Point8 3. Testing Database Connection: ❌ Database connection failed: Database connection failed: SQLSTATE[HY000] [2002] Connection refused 4. Testing OrderManager: ❌ OrderManager failed: Database connection failed: SQLSTATE[HY000] [2002] Connection refused 5. Testing InvoiceGenerator: ❌ InvoiceGenerator failed: Database connection failed: SQLSTATE[HY000] [2002] Connection refused 6. Testing Admin Panel Files: ❌ Main admin router missing: /var/www/admin/index.php ❌ Dashboard view missing: /var/www/admin/views/dashboard.php ❌ Orders list view missing: /var/www/admin/views/orders.php ❌ Invoices list view missing: /var/www/admin/views/invoices.php ❌ Order detail view missing: /var/www/admin/views/order_complete.php ❌ Invoice detail view missing: /var/www/admin/views/invoice_complete.php ❌ Order creation form missing: /var/www/admin/views/order_create.php ❌ Order edit form missing: /var/www/admin/views/order_edit.php 7. Testing URL Structure: ✅ Dashboard: /admin/?customer=customer1 ✅ Orders List: /admin/?page=orders&customer=customer1 ✅ Create Order: /admin/?page=orders&action=create&customer=customer1 ✅ Invoices List: /admin/?page=invoices&customer=customer1 ✅ Order Detail: /admin/?page=order&id=1&customer=customer1 ✅ Invoice Detail: /admin/?page=invoice&id=1&customer=customer1 8. Testing Action Endpoints: ✅ Validate Order: /admin/?page=orders&action=validate&id=1&customer=customer1 ✅ Mark Invoice Paid: /admin/?page=invoices&action=mark_paid&id=1&customer=customer1 ✅ Send Invoice: /admin/?page=invoices&action=send&id=1&customer=customer1 ✅ Delete Invoice: /admin/?page=invoices&action=delete&id=1&customer=customer1 9. Testing File Permissions: ✅ Autoloader readable ✅ Configuration readable ❌ Admin router not found 10. Testing PHP Extensions: ✅ Extension 'pdo' loaded ✅ Extension 'pdo_mysql' loaded ✅ Extension 'json' loaded ✅ Extension 'mbstring' loaded === Manual Testing Instructions === 1. Open browser and go to: https://factur-x.point8.fr/admin/?customer=customer1 2. Test dashboard loads 3. Test orders list displays 4. Test creating a new order 5. Test validating an order 6. Test generating an invoice 7. Test marking invoice as paid 8. Check for success/error messages === Troubleshooting Common Issues === 1. If autoloader fails: Check vendor/autoload.php exists and is readable 2. If config fails: Check config/config.php exists and has correct format 3. If database fails: Check PDO MySQL extension and credentials 4. If admin fails: Check admin/index.php exists and is readable 5. If actions fail: Check URL parameters and method existence === Test Complete ===