An error occurred while your plugin was running and displaying the hreflang tag
-
On 3 of our sites there is an error with your plugin when the TranslatePress plugin works together.
What is the error:
Your plugin specifically for pages created using Page in WordPress interferes with the hreflang tag, so that it translates its url into another language, there is no error when you disable your plugin.
Let me give you a specific example:For a page translated into Spanish https://boatlifemagazine.com/es/terminos-y-condiciones/ (the default on the site is English) and with your hreflang plugin enabled, this is (with errors):
link rel=”alternate” hreflang=”en-GB” href=”https://boatlifemagazine.com/terminos-y-condiciones/” – here is an error
link rel=”alternate” hreflang=”es-ES” href=”https://boatlifemagazine.com/es/terminos-y-condiciones/”
link rel=”alternate” hreflang=”en” href=”https://boatlifemagazine.com/terminos-y-condiciones/” – here is an error
link rel=”alternate” hreflang=”es” href=”https://boatlifemagazine.com/es/terminos-y-condiciones/”
link rel=”alternate” hreflang=”x-default” href=”https://boatlifemagazine.com/terminos-y-condiciones/” – here is an error
The error is that the url is translated into Spanish where it should be English.With your hreflang plugin disabled, the page is like this (this one is correct):
link rel=”alternate” hreflang=”en-GB” href=”https://boatlifemagazine.com/terms-conditions/”
link rel=”alternate” hreflang=”es-ES” href=”https://boatlifemagazine.com/es/terminos-y-condiciones/”
link rel=”alternate” hreflang=”en” href=”https://boatlifemagazine.com/terms-conditions/”/>
link rel=”alternate” hreflang=”es” href=”https://boatlifemagazine.com/es/terminos-y-condiciones/”
link rel=”alternate” hreflang=”x-default” href=”https://boatlifemagazine.com/terms-conditions/”I think that one of the plugin settings, and you have a lot of them, can affect this error.
Please tell me what possible settings in your plugin can affect the work with the hreflang tag?The page I need help with: [log in to see the link]
- The topic ‘An error occurred while your plugin was running and displaying the hreflang tag’ is closed to new replies.