Fatal error: Allowed memory size of 134217728 bytes exhausted on sitemap.xml

#437509
  • Resolved David Christian
    Rank Math free

    Hi am getting fattal error when I visit sitemap.xml

    Here is the error message:

    Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 20480 bytes) in /www/wwwroot/mydomain.com/wp-includes/wp-db.php on line 2135
    There has been a critical error on this website.
Viewing 5 replies - 1 through 5 (of 5 total)
  • Anas
    Rank Math business

    Hello,

    Thank you for contacting Rank Math, and sorry for any inconvenience caused.

    It seems like the memory is getting exhausted.

    Please contact your web host and ask them to set the following value:

    PHP Memory Limit: 512M
    

    Hope this helps.

    Thank you.

    Thank you, that one solved the problem.. May I know why it need more Memory? Before it was 128M set to my site

    Hello,

    You may be loading the sitemap with a lot of links per sitemap page. To avoid that, you need to decrease the links per sitemap settings under Rank Math > Sitemap Settings > General:

    sitemap

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

    Thanks for detailed information

    Hello,

    We are super happy that we could address your issue.

    If you have another question in the future, please feel free to create a new forum topic, and it will be our pleasure to assist you again.

    Thank you.

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

You must be logged in to reply to this ticket.