• When I turn the plugin to standard I get this error…

    Standard mode activated! However, there was an error when checking the AMP validity for your site. Failed to fetch URL to validate. cURL error 28: Operation timed out after 15002 milliseconds with 0 bytes received. Please check your Site Health to verify it can perform loopback requests. 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.

    Here are the issues in site health…

    The REST API is one way WordPress, and other applications, communicate with the server. One example is the block editor screen, which relies on this to display, and save, your posts and pages.

    The REST API request failed due to an error.
    Error: [] cURL error 28: Operation timed out after 10001 milliseconds with 0 bytes received

    __________________________-

    Loopback requests are used to run scheduled events and are also used by the built-in editors for themes and plugins to verify code stability.

    The loopback request to your site failed, this means features relying on them are not currently working as expected.
    Error: [] cURL error 28: Operation timed out after 10001 milliseconds with 0 bytes received

    Any insight would be appreciated! Thanks!

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

Viewing 2 replies - 1 through 2 (of 2 total)
  • @neo619 Can you try adding the following to your active themes functions.php or a custom plugin and check whether the same issue arises? The problem may related to your website or server performance. You’ll find out more on that here.

    // 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 );

    Alternatively can you temporarily deactivate some of your plugins or temporarily switch to a default WordPress theme and see if the same issue persists?

    Plugin Author Weston Ruter

    (@westonruter)

    If the REST API is also timing out, then increasing the timeout for AMP validation requests most likely will have no effect.

    So this is a general site configuration issue and not an issue with the AMP plugin. In the past I’ve seen reports that the Limit Login Attempts plugin can cause this problem. Otherwise, you should check with your host.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Can not get AMP pages to display’ is closed to new replies.