• Hi,

    I’m using this plugin in my news website. It is generating sitemap year wise from 2017 but seems like this plugin is not generating sitemap for the year 2019,2020,2021. While clicking on these year’s sitemap it’s showing some error message like this

    his XML file does not appear to have any style information associated with it. The document tree is shown below.

    <error>
    <code>internal_server_error</code>
    <title>
    <![CDATA[ WordPress &rsaquo; Error ]]>
    </title>
    <message>
    <![CDATA[ <p>There has been a critical error on this website.</p><p><a href=&quot;https://wordpress.org/support/article/faq-troubleshooting/&quot;>Learn more about troubleshooting WordPress.</a></p> ]]>
    </message>
    <data>
    <status>500</status>
    </data>
    </error>

    PLease help me in resolving this

    Thanks in advance
    Chandra Sekhar

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hi, it might be that the server is running out of PHP memory for these sitemaps. This happens if there are too many posts in one year. Try the “Split by: Month” option on Settings > XML Sitemap > General in the Posts section.

    Thread Starter Chandra Sekhar Biswal

    (@csbiswal)

    Ok, Thanks for the reply. I checked the Memory Limit is 128M.

    It will be wise for “increasing the Memory Limit” or “Splitting the sitemap by months” ?

    I’m Afraid, if the split will affect the website traffic.

    Thanks
    Chandra

    Sure you can try increasing the memory limit but be aware that even if the yearly sitemaps then work, they might load very slowly. This might have a negative impact… Maybe you have “expensive” options like “automatic priority calculation” and “update lastmod on comments” turned on? If so, try switching these off.

    But really, splitting by month should NOT affect traffic negatively, just make sure to submit the main index /sitemap.xml, not individual sitemaps. Monthly sitemaps load much faster too 🙂

    Thread Starter Chandra Sekhar Biswal

    (@csbiswal)

    Thank you so much,

    I have splitted the sitemaps by months.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Not generating sitemap of certain years’ is closed to new replies.