• Resolved robertveit

    (@robertveit)


    Dear Sybre –

    Congratulations to Version 2.6 – for me it is the best SEO plugin for WordPress.

    Still I have a minor issue with the sitemap generator in combination with WPML. When activating the sitemap generator of The SEO Framework, displayed URLs in the sitemap are not 100% correct. For example the sitemap is showing http://www.lucianabveit.com/biografia as a first entry correctly and http://www.lucianabveit.com/en/biografia as a second entry, however, the second entry should read http://www.lucianabveit.com/en/biography as the entire site was translated.

    This is not a big issue, as WPML is smart enough to redirect to the correct URL or alternatively I can use another sitemap plugin which is working correctly.

    Nevertheless, I would like to know if you have plans to fix this in one of the upcoming updates?

    Thanks a lot,

    Robert

    BTW other sitemap plugins are displaying one standalone sitemap per language such as url/en/sitemap.xml and url/nl/sitemap.xml, each one showing only URLs in the selected language. Maybe this is easier to handle…

    https://wordpress.org/plugins/autodescription/

Viewing 4 replies - 1 through 4 (of 4 total)
  • @ Robert

    Just to chime in here. I notice that there are several issues with your existing sitemap plugin that may or may not be relevant to your post above.

    In your original language posts sitemap there are /en/ language posts e.g.:

    3	http://www.lucianabveit.com/en/strindbergs-miss-julie/
    4	http://www.lucianabveit.com/en/sam-shepards-dark-world/

    and also duplicates:

    256	http://www.lucianabveit.com/o-hospede-ideal/
    257	http://www.lucianabveit.com/o-hospede-ideal/

    Then in your /en/ posts sitemap there are Portuguese language posts:

    12	http://www.lucianabveit.com/o-que-e-teatro/
    13	http://www.lucianabveit.com/philippe-jaroussky-contra-tenor/

    and also duplicates:

    252	http://www.lucianabveit.com/en/megalopolers/
    253	http://www.lucianabveit.com/en/megalopolers/

    Hope this is of some use to you.

    Plugin Author Sybre Waaijer

    (@cybr)

    Hi Robert,

    Thank you so much for the kind words :).

    This is an ongoing issue ever since I added sitemaps to this plugin and it has been discussed with WPML, alas no concrete solution has yet been found. This issue has been confirmed, but until today I’ve only seen it on your website.

    Digging deeper (technical)
    Your website has been around for quite some time and over that time many updated for both WPML and WordPress have taken place.

    I’m afraid something has gone wrong with the post ID synchronization (or something like that) when you’ve upgraded WPML and WordPress in the past 3 years. These things can unfortunately happen without an evident cause as both WPML and WordPress are two separated projects.

    From what I remember, I’ve already confirmed the posts contain different ID’s through a debugging plugin.
    However, I assume not all language data can be correctly fetched from these, some might be outdated and unchanged, and some might have the wrong ID attached to them. Some might have the wrong slug given to WordPress core.

    I use WordPress’ core get_posts() to fetch all Posts. This call is made three times, for ‘page’, ‘post’, and then for all public “post types”.

    For each ID, an URL is generated. The prefix for this URL is fetched through the wpml_post_language_details filter and then handled from your WPML settings.
    Beforehand, the URL is fetched through WordPress’ own get_permalink() feature. It’s seen in action right here.

    Conclusion (not technical)
    With all this information, I can conclude the following things:
    1. Your website has been around for quite a long time. Plugin/core issues might be present.
    2. WPML might not be able to hook correctly into get_permalink(). But I really doubt that.
    3. A reset or synchronization at some point is needed.

    Resolution
    To follow point 3 from the conclusion, we can reset in a few ways.

    I’d first like to suggest doing the following:
    1. Go to /wp-admin/options-permalink.php, hit “Save Changes”.

    If that doesn’t work, continue:
    2. Go to /wp-admin/admin.php?page=sitepress-multilingual-cms%2Fmenu%2Fmenu-sync%2Fmenus-sync.php, scroll down and hit “Sync”. Perform step 1 once more.

    If that doesn’t work, continue:
    3. Go to /wp-admin/admin.php?page=sitepress-multilingual-cms%2Fmenu%2Ftranslation-options.php, make a screenshot of the “Post and pages synchronization” options, and send them to me :). I believe you’ve got my e-mail address. We’ll continue from there.

    I hope this helps!

    Thread Starter robertveit

    (@robertveit)

    Dear Barnez –

    Thanks for testing my sitemap. I highly appreciated it.

    Dear Sybre –

    I followed all mentioned steps – unfortunately nothing was fixing a/m issues in my sitemap. However, while testing several settings within WordPress and WPML, I finally found the issue.

    In the WPML settings under “Languages > Make themes work multilingual” I unselected the option. After clearing the entire cache the sitemap was finally displaying correctly for both languages!

    Thanks for inspiring me!

    Robert

    Plugin Author Sybre Waaijer

    (@cybr)

    Finally, after countless months of digging, the culprit has been found!
    That’s great to hear Robert!

    All the best! 🙂

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Sitemap / WPML’ is closed to new replies.