Couldn’t fetch AmpProject\Dom\Element (0) [Error]
-
On Amp 2.2.3 I get the following error on amp articles. Downgrading to 2.2.1 fixes it (haven’t tested 2.2.2).
Php 8.0.7
Theme: Newspaper 11.4.2Couldn't fetch AmpProject\Dom\Element (0) [Error] /var/www/vhosts/mojprihranek.si/httpdocs/wp-content/plugins/amp/vendor/ampproject/amp-toolbox/src/Optimizer/Transformer/OptimizeHeroImages.php:474 #0 /var/www/vhosts/mojprihranek.si/httpdocs/wp-content/plugins/amp/vendor/ampproject/amp-toolbox/src/Optimizer/Transformer/OptimizeHeroImages.php(474): DOMElement->getAttribute() #1 /var/www/vhosts/mojprihranek.si/httpdocs/wp-content/plugins/amp/vendor/ampproject/amp-toolbox/src/Optimizer/Transformer/OptimizeHeroImages.php(183): AmpProject\Optimizer\Transformer\OptimizeHeroImages->removeLazyLoading() #2 /var/www/vhosts/mojprihranek.si/httpdocs/wp-content/plugins/amp/vendor/ampproject/amp-toolbox/src/Optimizer/TransformationEngine.php(78): AmpProject\Optimizer\Transformer\OptimizeHeroImages->transform() #3 /var/www/vhosts/mojprihranek.si/httpdocs/wp-content/plugins/amp/src/Optimizer/OptimizerService.php(46): AmpProject\Optimizer\TransformationEngine->optimizeDom() #4 /var/www/vhosts/mojprihranek.si/httpdocs/wp-content/plugins/amp/includes/class-amp-theme-support.php(2131): AmpProject\AmpWP\Optimizer\OptimizerService->optimizeDom() #5 /var/www/vhosts/mojprihranek.si/httpdocs/wp-content/plugins/amp/includes/class-amp-theme-support.php(1750): AMP_Theme_Support::prepare_response() #6 [internal function]: AMP_Theme_Support::finish_output_buffering() #7 /var/www/vhosts/mojprihranek.si/httpdocs/wp-includes/functions.php(5219): ob_end_flush() #8 /var/www/vhosts/mojprihranek.si/httpdocs/wp-includes/class-wp-hook.php(307): wp_ob_end_flush_all() #9 /var/www/vhosts/mojprihranek.si/httpdocs/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters() #10 /var/www/vhosts/mojprihranek.si/httpdocs/wp-includes/plugin.php(474): WP_Hook->do_action() #11 /var/www/vhosts/mojprihranek.si/httpdocs/wp-includes/load.php(1100): do_action() #12 [internal function]: shutdown_action_hook() #13 {main}
- The topic ‘Couldn’t fetch AmpProject\Dom\Element (0) [Error]’ is closed to new replies.