From 1f884b84ce9bc279abe413badefefadda0fcaba5 Mon Sep 17 00:00:00 2001 From: "Laurent Destailleur (aka Eldy)" Date: Wed, 8 Jan 2025 23:52:35 +0100 Subject: [PATCH] Debug v21 --- htdocs/core/lib/website.lib.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/htdocs/core/lib/website.lib.php b/htdocs/core/lib/website.lib.php index c44bb31b429..86737d3defc 100644 --- a/htdocs/core/lib/website.lib.php +++ b/htdocs/core/lib/website.lib.php @@ -1354,7 +1354,9 @@ function getImageFromHtmlContent($htmlContent, $imageNumber = 1) } // Load HTML content into object - $dom->loadHTML($htmlContent); + // We add the @ to avoid verbose warnings logsin the error.log file. For example: + // "PHP message: PHP Warning: DOMDocument::loadHTML(): Tag section invalid in Entity, line: ...", etc. + @$dom->loadHTML($htmlContent); // Re-enable HTML load errors libxml_clear_errors();