Critical error by RankMath in my site

#76996
  • Resolved entrespacios tours
    Rank Math free

    Hi, my name is Sebastian, and my site is broken. I entered the recuperation WordPress interface and it tells me it is Rank Math the one who is giving problems:

    Versión 1.0.46 | Por Rank Math | Ver detalles
    Este plugin no se ha cargado correctamente y está en pausa durante el modo de recuperación.

    Se ha producido un error del tipo E_COMPILE_ERROR en la línea 11 del archivo /hosting/www/somosentrespacios.com/public/wp-content/plugins/seo-by-rank-math/includes/modules/sitemap/class-sitemap-index.php. Mensaje de error: Namespace declaration statement has to be the very first statement or after any declare call in the script.

    I don’t understand, recently I haven’t made changes to the sitemap or Rankmath, in fact, this has happened from one moment to another

Viewing 3 replies - 1 through 3 (of 3 total)
  • Alberto
    Rank Math business

    Hello,

    We released a quick Beta update to fix the issue.

    Please enable the Beta update by following this:
    https://rankmath.com/kb/version-control/#beta-updates

    beta update

    If you are unable to see an update, please clear Rank Math’s transients from:
    WP Dashboard > Rank Math > Status & Tools > Database Tools > Remove Rank Math Transients > Remove transients
    remove transients rank math

    Please clear the caches, server, and WordPress after updating.

    If the issue is still not resolved, please let us know.

    We are here to assist. Thank you.

    Hi, I already made the update to the beta version, but now when checking my sitemap the following message appears

    This page contains the following errors:
    error on line 1 at column 96: Extra content at the end of the document
    Below is a rendering of the page up to the first error.

    Hello,

    It seems one of your theme or plugin files is adding a blank line which is usually the cause of the error.

    Please do the following:
    1. Check your theme functions.php to ensure the is not blank line at the start or at the end of the file. You can check this by heading to WordPress Dashboard > Appearance > Theme Editor

    2. Check your WP_CONFIG file for the same issue in your root folder.

    If the above fails you will have to dig further.

    3. Switch the current theme with a default theme then check your sitemap in a private browser.

    4. If the issue persists, deactivate your plugins, leaving Rank math active and while testing the sitemap in a private browser. You should be able to find the cause of the error. Let us know how this goes.

    Looking forward to helping you. Thank 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 3 replies - 1 through 3 (of 3 total)

The ticket ‘Critical error by RankMath in my site’ is closed to new replies.