Viewing 10 replies - 1 through 10 (of 10 total)
  • A 500 error could be caused by a number of different things. Have you tried to temporarily deactivate all plugins (apart from the AMP plugin) temporarily to see if there is a plugin incompatibility?

    Hello I have the sudhir600’s same problem. The only thing I did is to rebuilt my VPS to ubuntu 18.04 LTS. All the sites in this new VPS have the same ERROR 500. Please help. https://tambopata.com.pe/eco-magico-3-dias-2-noches/?amp=1

    Thank you.

    Ramiro

    I have deactivate all plugin and the error still continue.

    Did you try the following release candidate version? Give it a try, but before installing delete your existing plugin first. I can’t say it will fix it, but try after deactivating your SEO and Gravity Forms plugin.

    It could be a .htaccess file issue also with your new hosting setup. But try the above first.

    Plugin Author Weston Ruter

    (@westonruter)

    If there is a 500 error, please look at your server logs to identify what the error is.

    Thank you for your help. I enable debug in wordpress and I saw the following errors:

    Fatal error: Uncaught Error: Class ‘DOMDocument’ not found in tambopata.com.pe/public_html/wp-content/plugins/amp/includes/utils/class-amp-dom-utils.php:65 Stack trace: #0 tambopata.com.pe/public_html/wp-content/plugins/amp/includes/utils/class-amp-dom-utils.php(324): AMP_DOM_Utils::get_dom(‘<html><head><me…’) #1 tambopata.com.pe/public_html/wp-content/plugins/amp/includes/templates/class-amp-content-sanitizer.php(27): AMP_DOM_Utils::get_dom_from_content(‘<div class=”ui …’) #2 tambopata.com.pe/public_html/wp-content/plugins/amp/includes/templates/class-amp-content.php(185): AMP_Content_Sanitizer::sanitize(‘<div class=”ui …’, Array, Array) #3 ambopata.com.pe/public_html/wp-content/plugins/amp/includes/templates/class-amp-content.php(118): AMP_Content->sanitize(‘<div class=”ui …’) #4 tambopata.com.pe/public_html/wp-content/plugins/amp/includes/templates/class-amp-content.php(76): AMP_Content->transform() #5 tambopata.com.pe/p in /home/ramiro/tambopata.com.pe/public_html/wp-content/plugins/amp/includes/utils/class-amp-dom-utils.php on line 65

    Any Idea?

    thank you very much.

    I just needed to install: sudo apt-get install php-dom , now everything`s fine.
    thank you very much.

    Thread Starter Sudhir Kumar Gupta

    (@sudhir600)

    Congrats @ramiro100 for solving this issue. but i have few question
    1. what is the apt-get install php-dom and
    2. how to install the same for linux share hosting (i have no sudo access)

    Thread Starter Sudhir Kumar Gupta

    (@sudhir600)

    Finally I got success. Thanks ramiro for your research.

    Those who are using linux shared hosting and have no access of sudo then follow this step.
    1. login to cpanel
    2. search “php version” or just php
    3. click on “select php version”
    4. choose php 7.1 or upper version then find “DOM” in that page. (that will be one from from module list)
    5. check that and save.
    6. come to wordpress and clear the cache..
    “Thats it.. now your page will work like this -” https://comedymood.com/adventure-places-india/amp/

    Plugin Author Weston Ruter

    (@westonruter)

    Aside: v1.1 of the plugin will show an admin notice when the DOM extension is not present. See https://github.com/Automattic/amp-wp/pull/1533

Viewing 10 replies - 1 through 10 (of 10 total)

The topic ‘I tried all possible way but still not working’ is closed to new replies.