======================================================================  QA-01: SMOKE TEST - Orchestrator & Ergo-Mate  Sprint: S-QA-BUG-HUNT-01  Priority: P0 (Critical)  Date: 2026-09-16 16:07:33 ====================================================================== ====================================================================== Test 1: Environment Check ======================================================================  ✅ PASS: PHP version >= 8.0.0 (Current: 8.1.34)  ✅ PASS: Extension 'pdo' loaded (Loaded)  ✅ PASS: Extension 'pdo_mysql' loaded (Loaded)  ✅ PASS: Extension 'json' loaded (Loaded)  ✅ PASS: Extension 'mbstring' loaded (Loaded) ℹ️ INFO: Memory Limit: 256M ℹ️ INFO: Max Execution Time: 90s ====================================================================== Test 2: Configuration Check ======================================================================  ✅ PASS: .env.php file exists (Found)  ✅ PASS: Constant 'DB_HOST' defined (Defined)  ✅ PASS: Constant 'DB_NAME' defined (Defined)  ✅ PASS: Constant 'DB_USER' defined (Defined)  ✅ PASS: Constant 'JWT_SECRET' defined (Defined)  ⚠️ WARN: JWT_SECRET is still using default value - MUST be changed in production! ℹ️ INFO: APP_ENV: development ====================================================================== Test 3: Database Connectivity ======================================================================  ❌ FAIL: Database connection failed: SQLSTATE[HY000] [1045] Access denied for user 'root'@'localhost' (using password: NO) ====================================================================== Test 4: File System Permissions ======================================================================  ✅ PASS: Directory writable: logs (Writable)  ✅ PASS: Directory writable: uploads (Writable) ====================================================================== Test 5: Required Directories ======================================================================  ✅ PASS: Directory exists: api (Found)  ✅ PASS: Directory exists: lib (Found)  ✅ PASS: Directory exists: services (Found)  ✅ PASS: Directory exists: sql (Found)  ✅ PASS: Directory exists: tests (Found) ====================================================================== Test 6: Database Schema Validation ======================================================================  ❌ FAIL: Schema validation failed: SQLSTATE[HY000] [1045] Access denied for user 'root'@'localhost' (using password: NO) ====================================================================== Test 7: Test Data Availability ======================================================================  ❌ FAIL: Data availability check failed: SQLSTATE[HY000] [1045] Access denied for user 'root'@'localhost' (using password: NO) ====================================================================== Test 8: API Health Endpoint ======================================================================  ✅ PASS: Health endpoint file exists (Found) Error: Cannot modify header information - headers already sent by (output started at /home/mehdydri/demo-smso.mehdydriouech.fr/demo/orchestrator/tests/smoke_test_qa01.php:508) in /home/mehdydri/demo-smso.mehdydriouech.fr/demo/orchestrator/lib/util.php on line 155
Warning: Cannot modify header information - headers already sent by (output started at /home/mehdydri/demo-smso.mehdydriouech.fr/demo/orchestrator/tests/smoke_test_qa01.php:508) in /home/mehdydri/demo-smso.mehdydriouech.fr/demo/orchestrator/lib/util.php on line 155
Error: Cannot modify header information - headers already sent by (output started at /home/mehdydri/demo-smso.mehdydriouech.fr/demo/orchestrator/tests/smoke_test_qa01.php:508) in /home/mehdydri/demo-smso.mehdydriouech.fr/demo/orchestrator/lib/util.php on line 170
Warning: Cannot modify header information - headers already sent by (output started at /home/mehdydri/demo-smso.mehdydriouech.fr/demo/orchestrator/tests/smoke_test_qa01.php:508) in /home/mehdydri/demo-smso.mehdydriouech.fr/demo/orchestrator/lib/util.php on line 170
Error: Cannot modify header information - headers already sent by (output started at /home/mehdydri/demo-smso.mehdydriouech.fr/demo/orchestrator/tests/smoke_test_qa01.php:508) in /home/mehdydri/demo-smso.mehdydriouech.fr/demo/orchestrator/lib/util.php on line 171
Warning: Cannot modify header information - headers already sent by (output started at /home/mehdydri/demo-smso.mehdydriouech.fr/demo/orchestrator/tests/smoke_test_qa01.php:508) in /home/mehdydri/demo-smso.mehdydriouech.fr/demo/orchestrator/lib/util.php on line 171
Error: Cannot modify header information - headers already sent by (output started at /home/mehdydri/demo-smso.mehdydriouech.fr/demo/orchestrator/tests/smoke_test_qa01.php:508) in /home/mehdydri/demo-smso.mehdydriouech.fr/demo/orchestrator/lib/util.php on line 172
Warning: Cannot modify header information - headers already sent by (output started at /home/mehdydri/demo-smso.mehdydriouech.fr/demo/orchestrator/tests/smoke_test_qa01.php:508) in /home/mehdydri/demo-smso.mehdydriouech.fr/demo/orchestrator/lib/util.php on line 172
Error: Cannot modify header information - headers already sent by (output started at /home/mehdydri/demo-smso.mehdydriouech.fr/demo/orchestrator/tests/smoke_test_qa01.php:508) in /home/mehdydri/demo-smso.mehdydriouech.fr/demo/orchestrator/lib/util.php on line 173
Warning: Cannot modify header information - headers already sent by (output started at /home/mehdydri/demo-smso.mehdydriouech.fr/demo/orchestrator/tests/smoke_test_qa01.php:508) in /home/mehdydri/demo-smso.mehdydriouech.fr/demo/orchestrator/lib/util.php on line 173
Exception: Undefined constant "APP_VERSION" #0 /home/mehdydri/demo-smso.mehdydriouech.fr/demo/orchestrator/tests/smoke_test_qa01.php(358): include() #1 /home/mehdydri/demo-smso.mehdydriouech.fr/demo/orchestrator/tests/smoke_test_qa01.php(61): SmokeTest->testHealthEndpoint() #2 /home/mehdydri/demo-smso.mehdydriouech.fr/demo/orchestrator/tests/smoke_test_qa01.php(552): SmokeTest->run() #3 {main} Error: Cannot modify header information - headers already sent by (output started at /home/mehdydri/demo-smso.mehdydriouech.fr/demo/orchestrator/tests/smoke_test_qa01.php:508) in /home/mehdydri/demo-smso.mehdydriouech.fr/demo/orchestrator/.env.php on line 166
Warning: Cannot modify header information - headers already sent by (output started at /home/mehdydri/demo-smso.mehdydriouech.fr/demo/orchestrator/tests/smoke_test_qa01.php:508) in /home/mehdydri/demo-smso.mehdydriouech.fr/demo/orchestrator/.env.php on line 166
{"code":"SERVER_ERROR","message":"Undefined constant \"APP_VERSION\"","timestamp":"2026-09-16T16:07:34+00:00"}