BASELINE 26-02-2026 Cursor 5 servers
This commit is contained in:
41
debug_amazoncloud.php
Executable file
41
debug_amazoncloud.php
Executable file
@@ -0,0 +1,41 @@
|
||||
<?php
|
||||
// Debug script pour identifier le problème exact
|
||||
|
||||
echo "=== AMAZON CLOUD DEBUG ===\n";
|
||||
|
||||
// Test du chemin de configuration
|
||||
$currentDir = __DIR__;
|
||||
echo "Current directory: $currentDir\n";
|
||||
|
||||
$configPath1 = __DIR__ . '/app/config/amazoncloud.crd.json';
|
||||
$configPath2 = __DIR__ . '/app/libraries/../config/amazoncloud.crd.json';
|
||||
|
||||
echo "Config path 1: $configPath1 - " . (file_exists($configPath1) ? "EXISTS" : "NOT FOUND") . "\n";
|
||||
echo "Config path 2: $configPath2 - " . (file_exists($configPath2) ? "EXISTS" : "NOT FOUND") . "\n";
|
||||
|
||||
// Test de l'autoloader AWS
|
||||
$autoloadPath1 = __DIR__ . '/vendor/autoload.php';
|
||||
$autoloadPath2 = __DIR__ . '/app/libraries/../../vendor/autoload.php';
|
||||
|
||||
echo "Autoload path 1: $autoloadPath1 - " . (file_exists($autoloadPath1) ? "EXISTS" : "NOT FOUND") . "\n";
|
||||
echo "Autoload path 2: $autoloadPath2 - " . (file_exists($autoloadPath2) ? "EXISTS" : "NOT FOUND") . "\n";
|
||||
|
||||
// Simuler l'appel depuis le framework
|
||||
try {
|
||||
echo "\n=== TESTING AMAZONCLOUD CLASS ===\n";
|
||||
|
||||
// Include comme le ferait le framework
|
||||
require_once 'app/libraries/AmazonCloud.php';
|
||||
|
||||
echo "Class included successfully\n";
|
||||
|
||||
$amazonCloud = new AmazonCloud();
|
||||
echo "Instance created successfully\n";
|
||||
|
||||
$result = $amazonCloud->testConnection();
|
||||
echo "Test connection result: " . json_encode($result, JSON_PRETTY_PRINT) . "\n";
|
||||
|
||||
} catch (Exception $e) {
|
||||
echo "ERROR: " . $e->getMessage() . "\n";
|
||||
echo "Stack trace:\n" . $e->getTraceAsString() . "\n";
|
||||
}
|
||||
Reference in New Issue
Block a user