Replies: 3
Hi,
if I enable Optimize HTML via Dom ParserImproves HTML minification efficiency option I get this PHP error on frontend:
Fatal error: Uncaught TypeError: Cannot assign null to property DOMElement::$id of type string in /var/www/vhosts/stefanofattori.it/httpdocs/wp-content/plugins/powered-cache/includes/classes/Dependencies/voku/helper/AbstractSimpleHtmlDom.php:174 Stack trace: #0 /var/www/vhosts/stefanofattori.it/httpdocs/wp-content/plugins/powered-cache/includes/classes/Dependencies/voku/helper/HtmlMinDomObserverOptimizeAttributes.php(146): PoweredCache\Dependencies\voku\helper\AbstractSimpleHtmlDom->__set() #1 /var/www/vhosts/stefanofattori.it/httpdocs/wp-content/plugins/powered-cache/includes/classes/Dependencies/voku/helper/HtmlMin.php(1688): PoweredCache\Dependencies\voku\helper\HtmlMinDomObserverOptimizeAttributes->domElementAfterMinification() #2 /var/www/vhosts/stefanofattori.it/httpdocs/wp-content/plugins/powered-cache/includes/classes/Dependencies/voku/helper/HtmlMin.php(1667): PoweredCache\Dependencies\voku\helper\HtmlMin->notifyObserversAboutDomElementAfterMinification() #3 /var/www/vhosts/stefanofattori.it/httpdocs/wp-content/plugins/powered-cache/includes/classes/Dependencies/voku/helper/HtmlMin.php(1370): PoweredCache\Dependencies\voku\helper\HtmlMin->minifyHtmlDom() #4 /var/www/vhosts/stefanofattori.it/httpdocs/wp-content/plugins/powered-cache/includes/classes/FileOptimizer.php(301): PoweredCache\Dependencies\voku\helper\HtmlMin->minify() #5 /var/www/vhosts/stefanofattori.it/httpdocs/wp-content/plugins/powered-cache/includes/classes/FileOptimizer.php(191): PoweredCache\FileOptimizer->maybe_minify_html() #6 [internal function]: PoweredCache\FileOptimizer->process_buffer() #7 /var/www/vhosts/stefanofattori.it/httpdocs/wp-includes/functions.php(5427): ob_end_flush() #8 /var/www/vhosts/stefanofattori.it/httpdocs/wp-includes/class-wp-hook.php(324): wp_ob_end_flush_all() #9 /var/www/vhosts/stefanofattori.it/httpdocs/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters() #10 /var/www/vhosts/stefanofattori.it/httpdocs/wp-includes/plugin.php(517): WP_Hook->do_action() #11 /var/www/vhosts/stefanofattori.it/httpdocs/wp-includes/load.php(1280): do_action() #12 [internal function]: shutdown_action_hook() #13 {main} thrown in
I use a VPS with plesk, NGINX
Server webnginx/1.26.1
PHP8.3.11 (supporta valori a 64bit)
PHP SAPI fpm-fcgi
Versione di cURL7.88.1 OpenSSL/3.0.14
WordPress 6.6.2