From f053ef52e613d7c1a5fcbd30d7eb30d596ba0176 Mon Sep 17 00:00:00 2001 From: Squidly271 Date: Thu, 9 Oct 2025 17:47:46 -0400 Subject: [PATCH] Coderabbit changes --- .../dynamix/include/DefaultPageLayout/evalContent.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/emhttp/plugins/dynamix/include/DefaultPageLayout/evalContent.php b/emhttp/plugins/dynamix/include/DefaultPageLayout/evalContent.php index 25507f35f..733243c8d 100755 --- a/emhttp/plugins/dynamix/include/DefaultPageLayout/evalContent.php +++ b/emhttp/plugins/dynamix/include/DefaultPageLayout/evalContent.php @@ -2,7 +2,7 @@ // This evaluates the contents of PHP code. Has to be "included" because the code is evaluated in the context of the calling page. // $evalContent is the PHP code to evaluate. // $evalFile is the file that the code is being evaluated in -// If an error occurs, a banner warning (disappearing in 10 seconds) is added to the page. +// Errors will be logged in the console and the php error log // The PHP error logged will also include the path of the .page file for easier debugging $evalSuccess = false; @@ -40,7 +40,8 @@ try { $severity = ($e instanceof ErrorException) ? $e->getSeverity() : 'N/A'; error_log("Error evaluating content in $evalFile (severity: $severity): ".$e->getMessage()."\nStack trace:\n".$e->getTraceAsString()); ob_clean(); - echo ""; + $errorMessage = "Error evaluating content in $evalFile: ".$e->getMessage(); + echo ""; ob_end_flush(); } ?> \ No newline at end of file