🔍 DÉBOGAGE DU CONTRÔLEUR PHP =================================================== [2026-04-12 05:50:56] Début des tests de débogage [2026-04-12 05:50:56] Test du chemin Python... === TEST: Configuration Python === ✅ JSON valide: { "script_path": "\/var\/www\/html\/suite\/jobs_scraper_cli.py", "script_exists": true, "script_readable": true, "current_dir": "\/var\/www\/html\/suite", "python_version": "Python 3.10.12", "script_size": 26527 } [2026-04-12 05:50:56] Test des permissions des répertoires... === TEST: Permissions répertoires === ✅ JSON valide: { "logs": { "path": "logs", "exists": false, "readable": false, "writable": false }, "exports": { "path": "exports", "exists": false, "readable": false, "writable": false }, "configs": { "path": "configs", "exists": true, "readable": true, "writable": false, "files_count": 1 }, "temp": { "path": "temp", "exists": false, "readable": false, "writable": false }, "backups": { "path": "backups", "exists": false, "readable": false, "writable": false } } [2026-04-12 05:50:56] Test des opérations sur les fichiers... === TEST: Fichier CSV manquant === ✅ JSON valide: { "exists": false, "path": "\/root\/liens\/1jobs_ch_complete_extraction.csv", "error": "Fichier non trouvé" } [2026-04-12 05:50:56] Test des fichiers de statut... === TEST: Fichiers de statut === ✅ JSON valide: { "status": { "path": "scraper_status.json", "exists": true, "readable": true, "writable": true, "size": 145, "modified": "2026-04-12 02:00:18", "json_valid": true, "json_keys": [ "status", "timestamp", "jobs_found", "is_active", "test_mode" ] }, "log": { "path": "scraper.log", "exists": true, "readable": true, "writable": true, "size": 211, "modified": "2025-08-29 21:27:39" }, "debug_log": { "path": "scraper_debug.log", "exists": true, "readable": true, "writable": true, "size": 30567, "modified": "2025-08-29 21:16:17" }, "progress": { "path": "scraping_progress.json", "exists": true, "readable": true, "writable": true, "size": 310, "modified": "2025-08-30 13:19:46", "json_valid": true, "json_keys": [ "processed_urls", "stats", "timestamp" ] } } [2026-04-12 05:50:56] Création d'un fichier de statut minimal... [2026-04-12 05:50:56] ✅ Fichier de statut créé: scraper_status.json [2026-04-12 05:50:56] Test des endpoints du contrôleur... --- Test endpoint: check_csv --- === TEST: Endpoint check_csv === ✅ JSON valide: { "exists": false, "error": "Fichier non trouvé" } --- Test endpoint: status ---
Warning: Undefined variable $STATUS_FILE in /var/www/html/suite/debug_controller.php on line 239

Deprecated: file_exists(): Passing null to parameter #1 ($filename) of type string is deprecated in /var/www/html/suite/debug_controller.php on line 239
=== TEST: Endpoint status === ✅ JSON valide: { "status": "Inactif", "jobs_found": 0 } --- Test endpoint: system_info --- === TEST: Endpoint system_info === ✅ JSON valide: { "php_version": "8.1.2-1ubuntu2.23", "system": "Linux server1.popojobs.com 5.15.0-173-generic #183-Ubuntu SMP Fri Mar 6 13:29:34 UTC 2026 x86_64", "memory_limit": "128M", "current_time": "2026-04-12 05:50:56" } [2026-04-12 05:50:56] Tests terminés 🎯 DIAGNOSTIC: 1. Vérifiez que tous les fichiers existent 2. Vérifiez les permissions des répertoires 3. Testez scraper_control.php avec ce script 4. Si tout est OK, le problème vient d'ailleurs === RÉPONSE JSON PROPRE ===
Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/suite/debug_controller.php:296) in /var/www/html/suite/debug_controller.php on line 297
{ "success": true, "message": "Tests de débogage terminés", "timestamp": "2026-04-12 05:50:56", "debug_complete": true }