Error with sitemap.xml

#1024731
  • Resolved Loic
    Rank Math free

    Hi,

    I’m just trying to migrate from Yoast to Rank Math.
    But after migrating, my sitemap is not generating anymore. (https://ekkoo.fr/sitemap_index.xml)
    Trying F12 on my sitemap give me this error : Entity ‘rsquo’ not defined main-sitemap.xsl:17

    I tried to emtpy cache, save permalinks… nothing solve the matter.

    Can you help?

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

    Thank you for contacting Rank Math and bringing your concern to our attention. I’m sorry for any inconvenience this issue may have caused you.

    This issue is due to the character in Rank Math > Titles & Meta > Local SEO > Website name

    Emplacements – Plan de site – Ekkoo décrypte l’actu

    It hasn’t escaped properly on the frontend, causing our sitemap to break. You may need to remove the character, save the settings, and put it back.

    The sitemap should work after that.

    Let us know how this goes.

    Loic
    Rank Math free

    Thanks for your help.
    I tried to remove the caracter, saved. Refresh cached, saved permalinks, but i still have the matter.
    As if the caracter was coming from another place.

    Hello,

    Please access your WordPress database and check the table wp_options. You’ll notice entries like blogname with Unicode characters instead of the correct characters in there.

    To be more specific, you may take a look if you find a similar entry like l’actu in the option_value column. Here is an example below for your reference:

    Please try to replace this entry with l’actu, and then the sitemap should start working fine again.

    Let us know how it goes. Looking forward to helping you.

    Thank you.

    Loic
    Rank Math free

    Hi,

    Firstly, I well replaced the ‘&rsquo’ that i got in the Rank Math > Titles & Meta > Local SEO > Website name
    Then , i checked in database, i well have ‘l’actu’ in database (table wpmj_options ), but i removed and reinserted.
    But when generating , i still got the error. When looking in the main-sitemap.xsl, i still got the ‘&rsquo’ caracter.

    To make a try, i replaced the quote in l’actu by a space, and the sitemap was generating correctly. Then i get back with the quote, and again have the matter.

    Hello,

    Thank you for your patience.

    Could you please change the quote character to this one (copy and paste it):

    The apostrophe that you are using is getting converted because that is being caught as a single quote, which is escaped by our plugin as recommended by WordPress when handling HTML attributes: https://developer.wordpress.org/reference/functions/esc_attr/

    We do escape all HTML attributes to prevent issues in the code, not only the metadata, but also others.

    This won’t cause any issues with search engines as those attributes that contain escaped characters can be read correctly, and the correct data will be converted to the UTF-8 character set.

    Let us know how this goes.

    Loic
    Rank Math free

    Hello,

    Thanks for your tip!
    It’s now working with the ’ quote!

    Hello,

    Glad that helped.

    Please feel free to reach out to us again in case you need any other assistance.

    We are here to help.

    Thank you.

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

You must be logged in to reply to this ticket.