Support » Plugin: AMP » Amp plugins giving 500 server error in webmaster

  • Resolved turaco

    (@turaco)


    We have installed Amp plugins in our site. and it was not validated the pages. and we got multiple of pages as 500 server error. So we just deactivate this plugins but some file is already crowed in webmaster. Please suggest how to validate the plugins and how to resolve which are already crowed pages.

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Weston Ruter

    (@westonruter)

    Please share the PHP error that was added to the logs when the 500 error happened.

    /wp-content/plugins/accelerated-mobile-pages/includes/vendor/amp/includes/utils/class-amp-dom-utils.php on line 55
    [Sun Feb 10 02:50:11.031989 2019] [php7:error] [pid 3967:tid 140685178590976] [client 66.249.89.90:56116] PHP Fatal error: Uncaught Error: Class ‘DOMDocument’ not found in /var/www/html/blog/wp-content/plugins/accelerated-mobile-pages/includes/vendor/amp/includes/utils/class-amp-dom-utils.php:55\nStack trace:\n#0 /var/www/html/blog/wp-content/plugins/accelerated-mobile-pages/includes/vendor/amp/includes/utils/class-amp-dom-utils.php(293): AMP_DOM_Utils::get_dom(‘<html><head><me…’)\n#1 /var/www/html/blog/wp-content/plugins/accelerated-mobile-pages/includes/vendor/amp/includes/class-amp-content.php(106): AMP_DOM_Utils::get_dom_from_content(‘<p>Whether you …’)\n#2 /var/www/html/blog/wp-content/plugins/accelerated-mobile-pages/includes/vendor/amp/includes/class-amp-content.php(93): AMP_Content_Sanitizer::sanitize(‘<p>Whether you …’, Array, Array)\n#3 /var/www/html/blog/wp-content/plugins/accelerated-mobile-pages/includes/vendor/amp/includes/class-amp-content.php(54): AMP_Content->sanitize(‘<p>Whether you …’)\n#4 /var/www/html/blog/wp-content/plugins/accelerated-mobile-pages/includes/vendor/amp/includes/class-amp-content.php(22): AM in /var/www/html/blog/wp-content/plugins/accelerated-mobile-pages/includes/vendor/amp/includes/utils/class-amp-dom-utils.php on line 55
    [Sun Feb 10 02:50:12.992307 2019] [php7:error] [pid 1882:tid 140685178590976] [client 66.249.89.90:63472] PHP Fatal error: Uncaught Error: Class ‘DOMDocument’ not found in /var/www/html/blog/wp-content/plugins/accelerated-mobile-pages/includes/vendor/amp/includes/utils/class-amp-dom-utils.php:55\nStack trace:\n#0 /var/www/html/blog/wp-content/plugins/accelerated-mobile-pages/includes/vendor/amp/includes/utils/class-amp-dom-utils.php(293): AMP_DOM_Utils::get_dom(‘<html><head><me…’)\n#1 /var/www/html/blog/wp-content/plugins/accelerated-mobile-pages/includes/vendor/amp/includes/class-amp-content.php(106): AMP_DOM_Utils::get_dom_from_content(‘<p>Travel is a …’)\n#2 /var/www/html/blog/wp-content/plugins/accelerated-mobile-pages/includes/vendor/amp/includes/class-amp-content.php(93): AMP_Content_Sanitizer::sanitize(‘<p>Travel is a …’, Array, Array)\n#3 /var/www/html/blog/wp-content/plugins/accelerated-mobile-pages/includes/vendor/amp/includes/class-amp-content.php(54): AMP_Content->sanitize(‘<p>Travel is a …’)\n#4 /var/www/html/blog/wp-content/plugins/accelerated-mobile-pages/includes/vendor/amp/includes/class-amp-content.php(22): AM in /var/www/html/blog/wp-content/plugins/accelerated-mobile-pages/includes/vendor/amp/includes/utils/class-amp-dom-utils.php on line 55
    [Sun Feb 10 02:50:14.936514 2019] [php7:error] [pid 29175:tid 140684942046976] [client 66.249.89.90:41712] PHP Fatal error: Uncaught Error: Class ‘DOMDocument’ not found in /var/www/html/blog/wp-content/plugins/accelerated-mobile-pages/includes/vendor/amp/includes/utils/class-amp-dom-utils.php:55\nStack trace:\n#0 /var/www/html/blog/wp-content/plugins/accelerated-mobile-pages/includes/vendor/amp/includes/utils/class-amp-dom-utils.php(293): AMP_DOM_Utils::get_dom(‘<html><head><me…’)\n#1 /var/www/html/blog/wp-content/plugins/accelerated-mobile-pages/includes/vendor/amp/includes/class-amp-content.php(106): AMP_DOM_Utils::get_dom_from_content(‘<p>Have you eve…’)\n#2 /var/www/html/blog/wp-content/plugins/accelerated-mobile-pages/includes/vendor/amp/includes/class-amp-content.php(93): AMP_Content_Sanitizer::sanitize(‘<p>Have you eve…’, Array, Array)\n#3 /var/www/html/blog/wp-content/plugins/accelerated-mobile-pages/includes/vendor/amp/includes/class-amp-content.php(54): AMP_Content->sanitize(‘<p>Have you eve…’)\n#4 /var/www/html/blog/wp-content/plugins/accelerated-mobile-pages/includes/vendor/amp/includes/class-amp-content.php(22): AM in /var/www/html/blog/wp-content/plugins/accelerated-mobile-pages/includes/vendor/amp/includes/utils/class-amp-dom-utils.php on line 55

    Plugin Author Weston Ruter

    (@westonruter)

    Ok, you aren’t using our AMP plugin, but rather this one: https://wordpress.org/plugins/accelerated-mobile-pages/

    Please contact their support instead.

    ejazz

    (@ejazz)

    what does this error means and how to fix it?

    [25-Jun-2019 15:08:44 UTC] PHP Warning: Invalid argument supplied for foreach() in /home/dailyjob/public_html/wp-content/plugins/amp/includes/utils/class-amp-html-utils.php on line 34

    Plugin Author albertomedina

    (@albertomedina)

    @ejazz Please open a separate support ticket for your case.

    P.S.: That is a warning message, not an error. It may have to do with the version of PHP you are using.

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