Title: Validate AMP Erorr
Last modified: December 23, 2018

---

# Validate AMP Erorr

 *  Resolved [Harris Marfel](https://wordpress.org/support/users/hrace009/)
 * (@hrace009)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/validate-amp-erorr/)
 * When i press validate AMP error
 * I got message like this:
 * PHP Info:
    PHP Version : 7.2.13 PHP Memory Usage: 14.61 MB PHP Memory Limit :
   128M PHP Max Upload Size : 128M PHP Max Post Size : 128M PHP Allow URL fopen :
   On PHP Allow URL Include : Off PHP Display Errors : Off PHP Max Script Execution
   Time : 300 Seconds
 * Help me to solve this
 * thanks
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fvalidate-amp-erorr%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Author [Weston Ruter](https://wordpress.org/support/users/westonruter/)
 * (@westonruter)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/validate-amp-erorr/#post-11020840)
 * Here is a workaround for this issue: [https://github.com/ampproject/amp-wp/issues/1371#issuecomment-416698815](https://github.com/ampproject/amp-wp/issues/1371#issuecomment-416698815)
 *  Thread Starter [Harris Marfel](https://wordpress.org/support/users/hrace009/)
 * (@hrace009)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/validate-amp-erorr/#post-11022698)
 * where i put this code?
 *     ```
       // 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'] = 60;
       	}
       	return $args;
       }, 10, 2 );
       ```
   
 *  Plugin Author [Weston Ruter](https://wordpress.org/support/users/westonruter/)
 * (@westonruter)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/validate-amp-erorr/#post-11022703)
 * Inside a custom plugin or your theme’s `functions.php`.
 *  Thread Starter [Harris Marfel](https://wordpress.org/support/users/hrace009/)
 * (@hrace009)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/validate-amp-erorr/#post-11022786)
 * i have setup it at costume plugin, and i have change apache TimeOut to 6000 and
   php max_execution_time to 6000, i run validate and it took long time, and 2 hours
   it still running, and i can’t access my website.
 * so how to fix that thing?
 *  Plugin Author [Weston Ruter](https://wordpress.org/support/users/westonruter/)
 * (@westonruter)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/validate-amp-erorr/#post-11022835)
 * Do you have an external object cache plugin installed and active (e.g. Memcached
   or Redis)? That is the easiest way to speed up your site.
 * Otherwise, if it is still too slow then your theme and plugins may not be suitable
   for the non-classic mode.

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

The topic ‘Validate AMP Erorr’ 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/)

 * 5 replies
 * 2 participants
 * Last reply from: [Weston Ruter](https://wordpress.org/support/users/westonruter/)
 * Last activity: [7 years, 4 months ago](https://wordpress.org/support/topic/validate-amp-erorr/#post-11022835)
 * Status: resolved