Uncaught Error: Call to a member function hasAttributes()
-
Latest 1.1.6 release is throwing the following fatal on PHP 8.3:
PHP Fatal error: Uncaught Error: Call to a member function hasAttributes() on string in /srv/htdocs/wp-content/plugins/accelerated-mobile-pages/includes/vendor/tool/Dom/Document.php:839
Stack trace:
#0 /srv/htdocs/wp-content/plugins/accelerated-mobile-pages/includes/vendor/tool/Dom/Document.php(545): AmpProject\Dom\Document->normalizeHtmlAttributes()
#1 /srv/htdocs/wp-content/plugins/accelerated-mobile-pages/includes/vendor/tool/Dom/Document.php(473): AmpProject\Dom\Document->loadHTMLFragment('<!doctype html>...', Array)
#2 /srv/htdocs/wp-content/plugins/accelerated-mobile-pages/includes/vendor/tool/Dom/Document.php(374): AmpProject\Dom\Document->loadHTML('<!doctype html>...', Array)
#3 /srv/htdocs/wp-content/plugins/accelerated-mobile-pages/includes/vendor/tool/Optimizer/TransformationEngine.php(78): AmpProject\Dom\Document::fromHtml('<!doctype html>...')
#4 /srv/htdocs/wp-content/plugins/accelerated-mobile-pages/includes/amp-optimizer-addon.php(17): AmpProject\Optimizer\TransformationEngine->optimizeHtml('<!doctype html>...', Object(AmpProject\Optimizer\ErrorCollection))
#5 /wordpress/core/6.8.2/wp-includes/class-wp-hook.php(324): ampforwp_add_optimizer_addon('<!doctype html>...')
#6 /wordpress/core/6.8.2/wp-includes/plugin.php(205): WP_Hook->apply_filters('<!doctype html>...', Array)
#7 /srv/htdocs/wp-content/plugins/accelerated-mobile-pages/includes/features/functions.php(314): apply_filters('ampforwp_the_co...', '<!doctype html>...')
#8 [internal function]: ampforwp_the_content_filter_full('<!doctype html>...', 9)
#9 /wordpress/core/6.8.2/wp-includes/functions.php(5471): ob_end_flush()
#10 /wordpress/core/6.8.2/wp-includes/class-wp-hook.php(324): wp_ob_end_flush_all('')
#11 /wordpress/core/6.8.2/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array)
#12 /wordpress/core/6.8.2/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
#13 /wordpress/core/6.8.2/wp-includes/load.php(1304): do_action('shutdown')
#14 [internal function]: shutdown_action_hook()
#15 {main}
thrown in /srv/htdocs/wp-content/plugins/accelerated-mobile-pages/includes/vendor/tool/Dom/Document.php on line 839
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
The topic ‘Uncaught Error: Call to a member function hasAttributes()’ is closed to new replies.