File: /home/mytest/.trash/show-errors.php.2
<?php
/**
* Show actual PHP errors
*/
error_reporting(E_ALL);
ini_set('display_errors', 1);
header('Content-Type: text/plain; charset=utf-8');
echo "=== Testing Cron File ===\n\n";
try {
require_once __DIR__ . '/cron-update-availability.php';
} catch (Exception $e) {
echo "\n\n=== FATAL ERROR ===\n";
echo "Error: " . $e->getMessage() . "\n";
echo "File: " . $e->getFile() . "\n";
echo "Line: " . $e->getLine() . "\n";
echo "\nStack trace:\n";
echo $e->getTraceAsString();
}
?>