Fatal error in php 8.1
-
in php 7.4 and 8.0 lots of warnings
Notice Undefined property: DOMElement::$tagName….wp-content/plugins/accelerated-mobile-pages/includes/vendor/amp/includes/sanitizers/class-amp-style-sanitizer.php:457
WarningDOMDocument::loadHTML(): Tag amp-img invalid in Entity, line: 9331+wp-content/plugins/accelerated-mobile-pages/templates/features.php:8610Plugin: accelerated-mobile-pages
WarningDOMDocument::loadHTML(): Tag amp-auto-ads invalid in Entity, line: 9381+wp-content/plugins/accelerated-mobile-pages/templates/features.php:8610Plugin: accelerated-mobile-pages
WarningDOMDocument::loadHTML(): Tag header invalid in Entity, line: 941 DOMDocument::loadHTML(): Tag aside invalid in Entity, line: 944
AND
in php8.1 fatal error: Uncaught Error: Typed property DOMElement::$tagName must not be accessed before initialization
in /public_html/wp-content/plugins/accelerated-mobile-pages/includes/vendor/amp/includes/sanitizers/class-amp-style-sanitizer.php on line 457Call stack:
AMPforWP\AMPVendor\AMP_Style_Sanitizer::collect_inline_styles()
wp-content/plugins/accelerated-mobile-pages/includes/vendor/amp/includes/sanitizers/class-amp-style-sanitizer.php:204AMPforWP\AMPVendor\AMP_Style_Sanitizer::sanitize()
wp-content/plugins/accelerated-mobile-pages/includes/vendor/amp/includes/class-amp-content.php:135AMPforWP\AMPVendor\AMP_Content_Sanitizer::sanitize()
wp-content/plugins/accelerated-mobile-pages/includes/vendor/amp/includes/class-amp-content.php:100AMPforWP\AMPVendor\AMP_Content::sanitize()
wp-content/plugins/accelerated-mobile-pages/includes/vendor/amp/includes/class-amp-content.php:60AMPforWP\AMPVendor\AMP_Content::transform()
wp-content/plugins/accelerated-mobile-pages/includes/vendor/amp/includes/class-amp-content.php:26AMPforWP\AMPVendor\AMP_Content::__construct()
wp-content/plugins/accelerated-mobile-pages/includes/vendor/amp/includes/class-amp-post-template.php:327AMPforWP\AMPVendor\AMP_Post_Template::build_post_content()
wp-content/plugins/accelerated-mobile-pages/includes/vendor/amp/includes/class-amp-post-template.php:121AMPforWP\AMPVendor\AMP_Post_Template::__construct()
wp-content/plugins/accelerated-mobile-pages/includes/vendor/amp/amp.php:94AMPforWP\AMPVendor\amp_render()
wp-includes/class-wp-hook.php:308WP_Hook::apply_filters()
wp-includes/class-wp-hook.php:332WP_Hook::do_action()
wp-includes/plugin.php:517do_action()
wp-includes/template-loader.php:13require_once()
wp-blog-header.php:19require()
index.php:17
- The topic ‘Fatal error in php 8.1’ is closed to new replies.