• 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 457

    Call stack:

    1. AMPforWP\AMPVendor\AMP_Style_Sanitizer::collect_inline_styles()
      wp-content/plugins/accelerated-mobile-pages/includes/vendor/amp/includes/sanitizers/class-amp-style-sanitizer.php:204
    2. AMPforWP\AMPVendor\AMP_Style_Sanitizer::sanitize()
      wp-content/plugins/accelerated-mobile-pages/includes/vendor/amp/includes/class-amp-content.php:135
    3. AMPforWP\AMPVendor\AMP_Content_Sanitizer::sanitize()
      wp-content/plugins/accelerated-mobile-pages/includes/vendor/amp/includes/class-amp-content.php:100
    4. AMPforWP\AMPVendor\AMP_Content::sanitize()
      wp-content/plugins/accelerated-mobile-pages/includes/vendor/amp/includes/class-amp-content.php:60
    5. AMPforWP\AMPVendor\AMP_Content::transform()
      wp-content/plugins/accelerated-mobile-pages/includes/vendor/amp/includes/class-amp-content.php:26
    6. AMPforWP\AMPVendor\AMP_Content::__construct()
      wp-content/plugins/accelerated-mobile-pages/includes/vendor/amp/includes/class-amp-post-template.php:327
    7. AMPforWP\AMPVendor\AMP_Post_Template::build_post_content()
      wp-content/plugins/accelerated-mobile-pages/includes/vendor/amp/includes/class-amp-post-template.php:121
    8. AMPforWP\AMPVendor\AMP_Post_Template::__construct()
      wp-content/plugins/accelerated-mobile-pages/includes/vendor/amp/amp.php:94
    9. AMPforWP\AMPVendor\amp_render()
      wp-includes/class-wp-hook.php:308
    10. WP_Hook::apply_filters()
      wp-includes/class-wp-hook.php:332
    11. WP_Hook::do_action()
      wp-includes/plugin.php:517
    12. do_action()
      wp-includes/template-loader.php:13
    13. require_once()
      wp-blog-header.php:19
    14. require()
      index.php:17
Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Ahmed Kaludi

    (@ahmedkaludi)

    Sorry for the inconvenience. Can you please check once by updating the plugin to the latest version 1.0.77.56. And let us know back if you face any issues?

    Thread Starter superandreescu

    (@superandreescu)

    same errors in AMP for WP 1.0.78

    Plugin Author Ahmed Kaludi

    (@ahmedkaludi)

    Sorry for the inconvenience. I have cross checked this scenario and recreated it at our end but its not recurring at our end. Kindly provide more info to reproduce the same on our end, So that we will assist you accordingly to fix the issue ASAP!

    Thread Starter superandreescu

    (@superandreescu)

    how to do?

    Plugin Author Ahmed Kaludi

    (@ahmedkaludi)

    You can share it as a short video, So that we will reproduce the same on our end and assist you to fix the issue immediately.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Fatal error in php 8.1’ is closed to new replies.