Sitemap error

#464247
  • Resolved Heather
    Rank Math free

    Hi there,
    I am getting a critical error with my sitemap

    https://www.sirenblossoms.eu.org/sitemap_index.xml

    “There has been a critical error on this website”

    I have flushed the cache using the guide but that didn’t fix it (both sitemap and permalink cache)

    I tried disabling all plugins and reinstalling them too, but that didn’t fix it

    Read forum and help pages but nothing works.

    Not having any other issues. Just this sitemap.

    I don’t have any cache plugins either

    When I turn on PHP errors being shown on screen I get these errors:

    Fatal error: Uncaught Error: Call to undefined function RankMathSitemapmemory_get_usage() in /var/www/vhosts/sirenblossoms.eu.org/httpdocs/wp-content/plugins/seo-by-rank-math/includes/modules/sitemap/class-sitemap-xml.php:181 Stack trace: #0 /var/www/vhosts/sirenblossoms.eu.org/httpdocs/wp-content/plugins/seo-by-rank-math/includes/modules/sitemap/class-sitemap-xml.php(84): RankMathSitemapSitemap_XML->init_stats() #1 /var/www/vhosts/sirenblossoms.eu.org/httpdocs/wp-content/plugins/seo-by-rank-math/includes/modules/sitemap/class-sitemap-xml.php(75): RankMathSitemapSitemap_XML->output() #2 /var/www/vhosts/sirenblossoms.eu.org/httpdocs/wp-content/plugins/seo-by-rank-math/includes/modules/sitemap/class-router.php(79): RankMathSitemapSitemap_XML->__construct() #3 /var/www/vhosts/sirenblossoms.eu.org/httpdocs/wp-includes/class-wp-hook.php(307): RankMathSitemapRouter->request_sitemap() #4 /var/www/vhosts/sirenblossoms.eu.org/httpdocs/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters() #5 /var/www/vhosts/sirenblossoms.eu.org/httpdocs/wp-includes/plugin.php(524): WP_Hook->do_action() #6 /var/www/vhosts/sirenblossoms.eu.org/httpdocs/wp-includes/class-wp-query.php(1104): do_action_ref_array() #7 /var/www/vhosts/sirenblossoms.eu.org/httpdocs/wp-includes/class-wp-query.php(1792): WP_Query->parse_query() #8 /var/www/vhosts/sirenblossoms.eu.org/httpdocs/wp-includes/class-wp-query.php(3586): WP_Query->get_posts() #9 /var/www/vhosts/sirenblossoms.eu.org/httpdocs/wp-includes/class-wp.php(648): WP_Query->query() #10 /var/www/vhosts/sirenblossoms.eu.org/httpdocs/wp-includes/class-wp.php(775): WP->query_posts() #11 /var/www/vhosts/sirenblossoms.eu.org/httpdocs/wp-includes/functions.php(1330): WP->main() #12 /var/www/vhosts/sirenblossoms.eu.org/httpdocs/wp-blog-header.php(16): wp() #13 /var/www/vhosts/sirenblossoms.eu.org/httpdocs/index.php(17): require(‘…’) #14 {main} thrown in /var/www/vhosts/sirenblossoms.eu.org/httpdocs/wp-content/plugins/seo-by-rank-math/includes/modules/sitemap/class-sitemap-xml.php on line 181

    Can you help?

    Just for reference:
    I have installed rankmath about 80 times and have it on numerous blogs.
    I used to work for 20 years in IT and also web development and made thousands of websites over the years.
    Just so you know my level of experience as I am not a newbie and have read though the guides and used my own experience too but nothing works

Viewing 11 replies - 1 through 11 (of 11 total)
  • Md. Sakib Khandaker
    Rank Math agency

    Hello,

    Thanks for contacting us, and sorry for any inconvenience that might have been caused due to that.

    Can you please confirm if you’re using PHP 7.2 or higher version? If yes, please try checking if your server configuration matches to the following:

    PHP Memory Limit: 512M
    Max input time: 150
    PHP time limit: 120
    PHP max input variables: 1000

    If not, please contact your web host and ask them to set the above values and see if that fixes the issue.

    Also, please try checking if your configuation met the requirements to run Rank Math smoothly:
    https://rankmath.com/kb/requirements/

    If the issue still persists, then we might need to take a closer look at the settings. Please edit the first post on this ticket and include your WordPress & FTP logins in the designated Sensitive Data section.

    Please do take a complete backup of your website before sharing the information with us.

    Sensitive Data Section

    It is completely secure and only our support staff has access to that section. If you want, you can use the below plugin to generate a temporary login URL to your website and share that with us instead:

    https://wordpress.org/plugins/temporary-login-without-password/

    You can use the above plugin in conjunction with the WP Security Audit Log to monitor what changes our staff might make on your website (if any):

    https://wordpress.org/plugins/wp-security-audit-log/

    We really look forward to helping you.

    Thank you.

    Heather
    Rank Math free

    I have higher PHP version than that, yes. That is no the issue for sure. Made sure of the version before I even installed WordPress.

    I have asked my host to change those amounts to see if it helps.
    I am a little lower than those amounts, but not by much so not sure if that is it or not.

    Will come back to you once the host changes those to see if it helps.

    Anas
    Rank Math business

    Hello,

    Let us know how it goes.

    Meanwhile, if you have any questions, please feel free to ask.

    We are here to assist you.

    Heather
    Rank Math free

    They changed all those settings to what you said but I am still getting a critical error.

    This is the latest:

    AH01071: Got error ‘PHP message: PHP Fatal error: Uncaught Error: Call to undefined function RankMath\\Sitemap\\memory_get_usage() in /var/www/vhosts/sirenblossoms.eu.org/httpdocs/wp-content/plugins/seo-by-rank-math/includes/modules/sitemap/class-sitemap-xml.php:181\nStack trace:\n#0 /var/www/vhosts/sirenblossoms.eu.org/httpdocs/wp-content/plugins/seo-by-rank-math/includes/modules/sitemap/class-sitemap-xml.php(84): RankMath\\Sitemap\\Sitemap_XML->init_stats()\n#1 /var/www/vhosts/sirenblossoms.eu.org/httpdocs/wp-content/plugins/seo-by-rank-math/includes/modules/sitemap/class-sitemap-xml.php(75): RankMath\\Sitemap\\Sitemap_XML->output()\n#2 /var/www/vhosts/sirenblossoms.eu.org/httpdocs/wp-content/plugins/seo-by-rank-math/includes/modules/sitemap/class-router.php(79): RankMath\\Sitemap\\Sitemap_XML->__construct()\n#3 /var/www/vhosts/sirenblossoms.eu.org/httpdocs/wp-includes/class-wp-hook.php(307): RankMath\\Sitemap\\Router->request_sitemap()\n#4 /var/www/vhosts/sirenblossoms.eu.org/httpdocs/wp-includes/class-wp-hook.php(331): WP_Hook->apply_f…’, referer: https://www.sirenblossoms.eu.org/wp-admin/admin.php?page=rank-math-options-sitemap

    Md. Sakib Khandaker
    Rank Math agency

    Hello,

    As mentioned above, can you please share the login credentials with us? So that we can investigate the issue further for you.

    Looking forward to helping you.

    Thank you.

    Heather
    Rank Math free

    Hello,

    I have updated the sensitive data as requested. Can you please check further?

    Thank you.

    Heather
    Rank Math free

    ok. Not sure what you can do once you login to my site though as it’s not anything my end that is the cause and I’ve done the permalink flush etc.

    The error has been posted above and everything is setup correctly as I have it installed on 7 sites I think. Not had this issue before and all my sites are setup the same.

    The error I posted from my plesk panel above shows the error in detail.

    I thought the error might help you figure out the issue?
    You won’t find that error in detail like this, on WordPress which is why I posted it

    Done the temporary login plugin and gave the email address using the sensitive data.

    I’ve flushed the cache 80 times at least following the guides.
    I’ve uninstalled and reinstalled

    It’s not a setting issue nor is it a cache issue.

    Hello,

    The error log states that your website is having a memory usage issue and currently, we aren’t able to reproduce this issue on our own WordPress setup so this may be an issue where other plugins or your currently active theme.

    Since you mentioned that you have tried disabling the plugin, have you also tried disabling them including the current theme with only Rank Math is enabled?

    Is it possible for you to create a staging website for us to deeply debug the issue without worrying about breaking your live site? If so, please create one, replicate the issue there and share the admin login here so we can further determine what’s causing this issue.

    Looking forward to helping you with this one.

    Heather
    Rank Math free

    Yes, memory issue. That is why I queried why you needed to log in to my site in my last reply as there isn’t much that you can see on wordpress itself.

    You agree with memory issue as that is what I thought it was as the error stated “memory_get_usage” but can you tell me what the error is? PHP memory?
    That is all I have been trying to find out.

    My host replied with this:

    Regarding the PHP issue, I believe this is due to us blocking the usage of the memory_get_usage function. We have had previous incidents where this function was used in an attempt to cause harm to other customers on the servers.

    No I cannot make a staging site sadly. I don’t have the resources available to create more than 1 site and a staging site counts as 2.

    I have lots of experience for 20 years so if there are settings or things I can do or things I can ask my host to do, please let me know.

    Here are my PHP settings again after they changed them to what you asked me to ask them to change it to, are they correct?
    https://ibb.co/Bt0GLcW

    Anything I can do or ask them to do?

    Heather
    Rank Math free

    Just to add, my host changed something and it is working for now.
    They didn’t say what but I think it will be related to that file they block.

    Will come back if it happens again.

    Anas
    Rank Math business

    Hello,

    Let us know if you face this issue again.

    We are here to assist you.

    Hello,

    Since we did not hear back from you for 15 days, we are assuming that you found the solution. We are closing this support ticket.

    If you still need assistance or any other help, please feel free to open a new support ticket, and we will be more than happy to assist.

    Thank you.

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

The ticket ‘Sitemap error’ is closed to new replies.