• Resolved kamras

    (@kamras)


    I have a problem with one sitemap: https://shareinfo.pl/sitemap-posttype-page.xml

    All others work without any problems.

    When I enter this sitemap, I get a 500 error:

    <error>

    <code>internal_server_error</code>

    <title>

    <![CDATA[ WordPress &amp;rsaquo; Błąd ]]>

    </title>

    <message>

    <![CDATA[ &lt;p&gt;W witrynie wystąpił błąd krytyczny.&lt;/p&gt;&lt;p&gt;&lt;a href=&quot;https://wordpress.org/documentation/article/faq-troubleshooting/&quot;&gt;Dowiedz się więcej o rozwiązywaniu problemów z WordPressem.&lt;/a&gt;&lt;/p&gt; ]]>

    </message>

    <data>

    <status>500</status>

    </data>

    </error>

    <!-- Queries executed: 24 | Peak memory usage: 297.9M| Memory limit: 256M -->

    <!-- Query errors: None encountered. -->

    <!-- Queries: Set SAVEQUERIES to show saved database queries here. -->

    <!-- Average system load during the last minute: 1.45 -->

    I increased the memory limit, but it didn’t help. There are only a few pages in this sitemap. Other sitemaps show up to 2000 rows and load without a problem. I disabled all plugins, but that didn’t help either. The following error appears in the logs:

    [09-Dec-2024 10:09:15 UTC] PHP Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 8388616 bytes) in /home/jarpi/domains/shareinfo.pl/public_html/wp-includes/functions.php on line 7250

    Strange, because on another website on the same server where I have the same plugins and sitemap theme installed, it works without any problems.

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • HI, how many pages does your site have?

    Have you tried to switch to the Server setting on Settings > XML Sitemap to “WordPress”?

    Thread Starter kamras

    (@kamras)

    @ravanh The website is only 9 pages.

    After changing the server settings to “WordPress”, the site map displays correctly, but I don’t like this version because it has no images and no option to divide it into months.

    • This reply was modified 1 year, 4 months ago by kamras.
    Thread Starter kamras

    (@kamras)

    I will add that as a test I checked the sitemap with Yoast and it works fine there, but I prefer your plugin, so I would like to fix this bug.

    • This reply was modified 1 year, 4 months ago by kamras.

    How high did you set the memory limit? Looking at the Yoast sitemap, you only have a few pages so memory should really not cause this issue, unless there is some other conflict playing a part…

    Did you have any of the more intensive options like Automatic priority calculation active? If so, try disabling that.

    Other steps to debug:

    1. Install the plugin Health Check & Troubleshooting and active the Troubleshooting option (from the Plugins page after activating). Note that this will turn off all plugins and activate the default theme but ONLY for you as admin, not for regular site visitors, so your live site will not break.
    2. Then reactive the XML Sitemap plugin from the admin notification at the top of the admin page.
    3. Go to Settings > XML Sitemap and follow the XML Sitemap link on the right side, then browse to the Pages sitemap to see if the error still occurs.
    4a. If it did, please deactivate troubleshooting mode and check your server error log again: is there no other message than the memory error that occurs when accessing the page sitemap? Please let me know your PHP version.
    4b. If it did not occur, then it means there is a conflict with another plugin or your theme. Start by switching to your regular theme (in the Troubleshooting admin dialog) and start re-activating the other plugins, checking the pages sitemap in between. This should help you find out which other plugin or theme is causing the conflict.

    If I know what is causing the conflict, I can work on a fix 🙂

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

The topic ‘Internal server error 500’ is closed to new replies.