Support » Plugin: AMP for WP - Accelerated Mobile Pages » PHP Fatal error: Uncaught Error: Class ‘DOMDocument’ not found in

  • Resolved enderax

    (@enderax)


    Hi,

    AMP pages have started to give 5XX errors since yesterday.
    I updated to the version 1.0.76.2 but didn’t resolve the issue. I disabled the plugin as a workaround.

    Here are logs from debug:

    [17-Feb-2021 18:47:51 UTC] PHP Fatal error: Uncaught Error: Class ‘DOMDocument’ not found in /var/www/html/XXX/wp-content/plugins/accelerated-mobile-pages/includes/vendor/amp/includes/utils/class-amp-dom-utils.php:63
    Stack trace:
    #0 /var/www/html/XXX/wp-content/plugins/accelerated-mobile-pages/includes/vendor/amp/includes/utils/class-amp-dom-utils.php(324): AMPforWP\AMPVendor\AMP_DOM_Utils::get_dom()
    #1 /var/www/html/XXX/wp-content/plugins/accelerated-mobile-pages/includes/vendor/amp/includes/class-amp-content.php(114): AMPforWP\AMPVendor\AMP_DOM_Utils::get_dom_from_content()
    #2 /var/www/html/XXX/wp-content/plugins/accelerated-mobile-pages/includes/vendor/amp/includes/class-amp-content.php(44): AMPforWP\AMPVendor\AMP_Content_Sanitizer::sanitize()
    #3 /var/www/html/XXX/wp-content/plugins/accelerated-mobile-pages/includes/vendor/amp/includes/class-amp-content.php(26): AMPforWP\AMPVendor\AMP_Content->transform()
    #4 /var/www/html/XXX/wp-content/plugins/accelerated-mobile-pages/includes/vendor/amp/includes/class-amp-post-templat in /var/www/html/XXX/wp-content/plugins/accelerated-mobile-pages/includes/vendor/amp/includes/utils/class-amp-dom-utils.php on line 63
    [17-Feb-2021 18:47:51 UTC] PHP Fatal error: Uncaught Error: Class ‘DOMDocument’ not found in /var/www/html/XXX/wp-content/plugins/accelerated-mobile-pages/templates/features.php:8400
    Stack trace:
    #0 /var/www/html/XXX/wp-includes/class-wp-hook.php(287): ampforwp_include_required_scripts()
    #1 /var/www/html/XXX/wp-includes/plugin.php(212): WP_Hook->apply_filters()
    #2 /var/www/html/XXX/wp-content/plugins/accelerated-mobile-pages/includes/features/functions.php(246): apply_filters()
    #3 [internal function]: ampforwp_the_content_filter_full()
    #4 /var/www/html/XXX/wp-includes/functions.php(4755): ob_end_flush()
    #5 /var/www/html/XXX/wp-includes/class-wp-hook.php(287): wp_ob_end_flush_all()
    #6 /var/www/html/XXX/wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters()
    #7 /var/www/html/XXX/wp-includes/plugin.php(484): WP_Hook->do_action()
    #8 /var/www/html/XXX/wp-includes/load.php(1052): do_action()
    #9 [internal function]: shutdown_action_hook()
    #10 {main}
    thrown in /var/www/html/XXX/wp-content/plugins/accelerated-mobile-pages/templates/features.php on line 8400

    Let me know if you need more information

    • This topic was modified 2 months ago by enderax.
Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Ahmed Kaludi

    (@ahmedkaludi)

    Can you please share URL link of your site? We will analyze it and let you know back.

    Thread Starter enderax

    (@enderax)

    Hi Ahmed,

    Sure, it’s here https://www.gezender.com/sedir-adasi-gezi-notlari/

    Note that AMP plugin is disabled now.

    Plugin Author Ahmed Kaludi

    (@ahmedkaludi)

    Can you please enable the plugin, So that we can analyze the issue and help you resolve it. And also do share few screenshots of the issue for reference.

    Thread Starter enderax

    (@enderax)

    Hi Ahmed

    I updated to 1.0.76.4 and the issue is sorted out. I don’t see any error. The plugin is enabled now.

    Thanks for all your effort!

    Plugin Author Ahmed Kaludi

    (@ahmedkaludi)

    We are glad that your issue has been resolved.

Viewing 5 replies - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.