Title: AMP Validated URLs
Last modified: January 2, 2019

---

# AMP Validated URLs

 *  Resolved [Harris Marfel](https://wordpress.org/support/users/hrace009/)
 * (@hrace009)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/amp-validated-urls/)
 * I have problem with validate URL, when press button re-validate, and it give 
   me this error:
 * `Failed to fetch URL(s) to validate. This may be due to a request timeout.`
 * I have add this code to my costume function, but still not solve
 *     ```
       // Increase timeout for AMP validation requests from 15 to 60 seconds.
       add_filter( 'http_request_args', function( $args, $url ) {
       	$query = wp_parse_args( wp_parse_url( $url, PHP_URL_QUERY ) );
       	if ( isset( $query['amp_validate'] ) ) {
       		$args['timeout'] = 100000;
       	}
       	return $args;
       }, 10, 2 );
       ```
   
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Famp-validated-urls%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Thread Starter [Harris Marfel](https://wordpress.org/support/users/hrace009/)
 * (@hrace009)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/amp-validated-urls/#post-11042940)
 * btw, my website using nginx as a front end, and the back end is apache.
 *  Thread Starter [Harris Marfel](https://wordpress.org/support/users/hrace009/)
 * (@hrace009)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/amp-validated-urls/#post-11044647)
 * any respond from support please!
 *  Thread Starter [Harris Marfel](https://wordpress.org/support/users/hrace009/)
 * (@hrace009)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/amp-validated-urls/#post-11046506)
 * lack of support 🙁 really bad
 *  Plugin Author [Weston Ruter](https://wordpress.org/support/users/westonruter/)
 * (@westonruter)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/amp-validated-urls/#post-11046517)
 * We’re getting back from the holidays.
 * If timeouts are too much of a problem on your site, then you should stick with
   the Classic mode for now.
 *  Plugin Author [Weston Ruter](https://wordpress.org/support/users/westonruter/)
 * (@westonruter)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/amp-validated-urls/#post-11046522)
 * Also make sure that the `add_filter()` function is actually getting called.
 *  Thread Starter [Harris Marfel](https://wordpress.org/support/users/hrace009/)
 * (@hrace009)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/amp-validated-urls/#post-11066886)
 * hi, thanks for reply
 * But i want to use paired mode, and i still got message:
    `Paired mode activated!
   However, there was an error when checking the AMP validity for your site. cURL
   error 28: Operation timed out after 15011 milliseconds with 0 bytes received`
 * i am sure `add_filter()` is getting called.
 *  Plugin Author [Weston Ruter](https://wordpress.org/support/users/westonruter/)
 * (@westonruter)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/amp-validated-urls/#post-11067070)
 * If the error message says the timeout was 15011 milliseconds then this indicates
   that the `http_request_args` filter is not getting added, because you set the
   timeout to 100000 (which would be 27+ hours).
 *  Thread Starter [Harris Marfel](https://wordpress.org/support/users/hrace009/)
 * (@hrace009)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/amp-validated-urls/#post-11067117)
 * i have change it to `10`
    but still got this message: `Paired mode activated!
   However, there was an error when checking the AMP validity for your site. cURL
   error 28: Operation timed out after 10001 milliseconds with 0 bytes received`
 * and when i try to revalidate, i got this message:
    `Failed to fetch URL(s) to
   validate. This may be due to a request timeout.`
 *  Thread Starter [Harris Marfel](https://wordpress.org/support/users/hrace009/)
 * (@hrace009)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/amp-validated-urls/#post-11067126)
 * i change it to `60`, then i got this message:
    `Paired mode activated! However,
   there was an error when checking the AMP validity for your site. cURL error 28:
   Operation timed out after 60000 milliseconds with 0 bytes received`
 * and i try to revalidate:
    `Failed to fetch URL(s) to validate. This may be due
   to a request timeout.`
 * Still same, what ever i put time out, it still give the same message.
 *  Plugin Author [Weston Ruter](https://wordpress.org/support/users/westonruter/)
 * (@westonruter)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/amp-validated-urls/#post-11067187)
 * Sorry, I don’t know why your site is responding so slowly.
 * Can you confirm that scheduled events are working properly? You can use the Health
   Check plugin to confirm: [https://wordpress.org/plugins/health-check/](https://wordpress.org/plugins/health-check/)
 * If scheduled events aren’t working, then that could indicate that loopback events
   aren’t working on your site. This would also cause problems for AMP.
 *  Thread Starter [Harris Marfel](https://wordpress.org/support/users/hrace009/)
 * (@hrace009)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/amp-validated-urls/#post-11071408)
 * hi, thanks for the info, seems plugin [Check Email](https://wordpress.org/plugins/check-email/)
   is a root cause of the problem, i have disabled and remove it, not everything
   is working fine.

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

The topic ‘AMP Validated URLs’ is closed to new replies.

 * ![](https://ps.w.org/amp/assets/icon.svg?rev=2527602)
 * [AMP](https://wordpress.org/plugins/amp/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/amp/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/amp/)
 * [Active Topics](https://wordpress.org/support/plugin/amp/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/amp/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/amp/reviews/)

 * 11 replies
 * 2 participants
 * Last reply from: [Harris Marfel](https://wordpress.org/support/users/hrace009/)
 * Last activity: [7 years, 4 months ago](https://wordpress.org/support/topic/amp-validated-urls/#post-11071408)
 * Status: resolved