Search Console Error “Referenced AMP URL is self-canonical AMP”

#90797
  • Hello, I’m currently facing an issue on the AMP section of my Google Search Console, it’s showing that my pages Referenced AMP URL is self-canonical AMP. Kindly help me to resolve this. Thanks in Advance

Viewing 10 replies - 1 through 10 (of 10 total)
  • Hello,

    Thank you for contacting Rank Math and sorry for any inconvenience that might have been caused due to that.

    Could you please share your affected URLs so we can look into this?

    Also which AMP plugin are you using?

    If you are using the AMP for WP plugin, please choose Rank Math from the dropdown at WordPress Dashboard > AMP > Settings > SEO.

    If you are using any other AMP plugin, please enable the Rank Math AMP module at WordPress Dashboard > Rank Math > Dashboard

    Then, clear your website cache along with the AMP cache. Click on the “Validate Fix” in your Google Search Console and wait 4-5 days for Google to see the fixed AMPs and remove the errors from your search console.

    Looking forward to helping you.

    Hello,

    I have updated the sensitive data as requested. Can you please check further?

    Thank you.

    Hello,

    You didn’t share the AMP Plugin you are using. Some of the amp URLs you share d seem to redirect to the main pages: /amp/about-us redirects to /about us and the same for the disclaimer page. Please check and fix the issue with these pages.

    The pages also seem to have structured data issues. Please update Rank math the latest release and clear your cache then test your URL here: https://search.google.com/test/rich-results

    If the issue persists then we might need to take a closer look at the settings. Please edit the first post on this ticket and include your WP logins in the designated Sensitive Data section.
    Sensitive Data Section

    It is completely secure and only our support staff has access to that section. If you want, you can use the below plugin to generate a temporary login URL to your website and share that with us instead:

    https://wordpress.org/plugins/temporary-login-without-password/

    You can use the above plugin in conjunction with the WP Security Audit Log to monitor what changes our staff might make on your website (if any):

    https://wordpress.org/plugins/wp-security-audit-log/

    We really look forward to helping you.

    Hello,

    I have updated the sensitive data as requested. Can you please check further?

    Thank you.

    Thanks for the reply and the support,

    I have updated The plugin to the latest version.

    I’m Using Better AMP which is integrated with Publisher Theme

    I followed a previous ticket from a user who had a similar issue and added the code to the function.php and this seems to work as validation is going on well.

    However, as you have seen I’m experiencing some structured data errors

    I have Hacked one of the structured data errors displayed on the pages by adding a Featured image on each of the pages showing the error.

    The only remaining error is “Missing field “logo”

    Kindly help.
    Thanks

    Hello,

    The logo issue was fixed with release of Rank math v1.0.48.2. Could you please make sure you have updated you plugin and if the issue still persists?

    Looking forward to helping you. Thank you.

    ​​​​​​

    I have currently disabled the amp option in the dashboard and requested a validation still showing as still in progress.

    The other issue is that I have a warning “Error in required structured data element”

    Hello,

    We were able to reproduce the error and have logged it. Please allow us some time to test and release a fix. It should be added to the plugin in the upcoming update.

    For now, to fix the issue on your site, plase add follwoing filter code in your theme’s functions.php file:

    
    add_action( 'rank_math/json_ld', function( $schemas, $jsonld ) {
    	if ( ! is_singular() || ! isset( $schemas['publisher'] ) || empty( $schemas['publisher']['image'] ) ) {
    		return $schemas;
    	}
    
    	$schemas['publisher']['logo'] = $schemas['publisher']['image'];
    	return $schemas;
    
    }, 999, 2 );

    I hope that helps.

    Thank you for your support, I have added the code to the theme function file and after testing the issue seems solved. However I wanted to ask if I can now turn on the AMP option on rankmath dashboard since I had turned it off as I had indicated on my previous reply.

    Hello,

    You can remove that code and update to the latest version instead.

    We fixed the issue in the most recent update. Please update to the latest version and let us know if you are still experiencing the issue?

    You can open a new support ticket or reply to this one.

    Please do clear the cache of your website, server-side, & browser is there’s anything unusual.

    We appreciate your patience and understanding in this matter.

    Thank you.

    Hello,

    Since we did not hear back from you for 15 days, we are assuming that you found the solution. We are closing this support ticket.

    If you still need assistance or any other help, please feel free to open a new support ticket, and we will be more than happy to assist.

    Thank you.

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

The ticket ‘Search Console Error “Referenced AMP URL is self-canonical AMP”’ is closed to new replies.