• Hi.
    I installed AMP plugin on my website ,but in this link:
    /edit.php?post_type=amp_validated_url
    shows this error:
    URL validation failed due to the AMP validation request not returning JSON data. This may be due to a PHP fatal error occurring. Please check your server PHP error logs; to do this you may need to enable WP_DEBUG_LOG. If you are stuck, please search the support forum for possible related topics, or otherwise start a new support topic including the error message, the URL to your site, and your active theme/plugins. Please include your Site Health Info.
    What should I do?! I enabled WP_DEBUG_LOG but there is no errors for single.php page. (when I go to a single post page)
    Note: I designed and developed my website theme by my own.
    Thanks.

Viewing 9 replies - 1 through 9 (of 9 total)
  • @shayanfp If you’d like to share your Site Health information we can investigate this further. You can share privately if preferred.

    Thread Starter Shayan Farhang Pazhooh

    (@shayanfp)

    Thanks.
    I sent the information you need to Google Form. (Link)
    Thanks.

    @shayanfp Thanks for sharing. While not familiar with all the plugins active we may need to perform some further troubleshooting steps. Please download and install the below plugin:
    https://gist.github.com/westonruter/48e546e4636bec5fafd8a29e0fc7a001

    Once you activate, you’ll see two new menu items under the AMP admin bar menu item:

    1. Debug AMP validation response directly
    2. Debug AMP validation response w/ loopback request

    When clicking either of the above if things are working as expected you’ll see valid JSON data being returned in both cases.

    Please copy the results of both the above options into a new gist, which you can provide a link to here.

    @shayanfp were you able to make the check above? Feel free to share any updates.

    Hi, I have a similar problem, I also have this error:
    “URL validation failed due to the AMP validation request not returning JSON data. This may be due to a PHP fatal error occurring. Please check your server PHP error logs; to do this you may need to enable WP_DEBUG_LOG. If you are stuck, please search the support forum for possible related topics, or otherwise start a new support topic including the error message, the URL to your site, and your active theme/plugins. Please include your Site Health Info.”

    Can I submit my site health information for review?

    @juanv87 If you’d like to open an individual support topic you can share your Site Health information there, or privately if preferred. It would be great if you could also share the results of the debugging steps as above as we investigate this issue further.

    Thread Starter Shayan Farhang Pazhooh

    (@shayanfp)

    @reneesoffice @jamesosborne
    What should I send?!
    Please help me. Thanks.

    If you download and install the mentioned mini plugin (as a regular WordPress plugin) after activation you’ll find the below menu items under your admin toolbar.

    1. Debug AMP validation response directly
    2. Debug AMP validation response w/ loopback request

    After visiting any AMP post on your website open those menu items and share the content. You can share in a new gist.

    If you have any questions on the above let me know.

    Renee Johnson

    (@reneesoffice)

    @shayanfp since we have not heard from you, I am marking your topic as resolved. Feel free to open a new support topic if you have further questions.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘URL validation failed due to the AMP validation request not returning JSON data’ is closed to new replies.