diff --git a/src/Admin/AnalyticsController.php b/src/Admin/AnalyticsController.php index d00432a..4b2231e 100644 --- a/src/Admin/AnalyticsController.php +++ b/src/Admin/AnalyticsController.php @@ -301,10 +301,14 @@ class AnalyticsController */ public function renderStatisticsPage(): void { - $stats = $this->licenseManager->getStatistics(); - - // Use PHP rendering directly for stability - $this->renderStatisticsPageFallback($stats); + try { + $stats = $this->licenseManager->getStatistics(); + $this->renderStatisticsPageFallback($stats); + } catch (\Throwable $e) { + echo '
Error: ' . esc_html($e->getMessage()) . '
'; + echo 'File: ' . esc_html($e->getFile()) . ':' . esc_html($e->getLine()) . '