• Resolved djangoarya

    (@djangoarya)


    Hi,

    I’m using this plugin and have noticed that there are no validated URLs. I had been using the plugin along with Yoast Glue for AMP and have only just found out that this no longer works. I’m really new to all this, so could someone please explain in laymans terms why my urls aren’t validated?

    I have this error in Health Check:

    Error: [] cURL error 28: Operation timed out after 10000 milliseconds with 0 bytes received

    Please advise.

    Thanks

    Denise

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

Viewing 9 replies - 1 through 9 (of 9 total)
  • @djangoarya The error you are encountering indicates your site is running too slowly for the compatibility tool to validate your AMP URLs. It could be active plugins, theme issues or server configurations contributing to the slow performance.

    You can try adding the following to your active themes functions.php file, which increases the validation timeout:

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

    The fastest way to improve your site’s performance is to add a persistent object cache. You can also choose the plugins reader mode if you continue to encounter timeout issues.

    Plugin Author Weston Ruter

    (@westonruter)

    @jamesosborne that may not be the issue because they said they got the error in Health Check as well.

    @djangoarya What is the result for the “loopback request” test in Site Health in the WordPress admin?

    Thread Starter djangoarya

    (@djangoarya)

    Thanks for your reply @jamesosborne

    @westonruter This is the loopback result:

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

    Thanks

    Denise

    Thread Starter djangoarya

    (@djangoarya)

    I have the same error for loopback and rest API in Site Health.

    Plugin Author Weston Ruter

    (@westonruter)

    These are issues you should contact your host about. These aren’t issues with the AMP plugin itself.

    Thread Starter djangoarya

    (@djangoarya)

    Ok, thanks. Are these errors what’s affecting my AMP working?

    Regards

    Plugin Author Weston Ruter

    (@westonruter)

    The AMP pages are able to be generated without loopback requests working, but you aren’t able to get feedback about potential validation errors that are being sanitized. In other words, it could be that your site has a theme or plugin that is trying to do something that is not allowed in AMP, like are a custom script on the page. The AMP plugin removes such custom scripts to ensure AMP validity. But in removing the custom script, some functionality of your site may be missing. Without loopback requests working, you’ll have to manually check for such issues.

    Thread Starter djangoarya

    (@djangoarya)

    Thanks, I’ll get in touch with them.

    Happy New Year!

    Hi guys, if it helps any, I was getting the same cURL28 issue. I turned of all my plugins and worked through each. Checkin site health each time. It was 40 plus plugins. For me it was the All in one widget kit for Elementor as the cause. Disabling it cleared site health warnings and removed the php error in the logs on my server.

    If you are using Elementor you may also have that widget kit.

    If not then a quick look in the logs might give you a clue as to the culprit. I have cpanel so went to File manager – logs – mydomain.com.php.error.log

    • This reply was modified 4 years, 10 months ago by outlaw11wa.
Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘No Validated URLs’ is closed to new replies.