404 page showing in sitemap

#11636
  • Resolved Rajdeep Das
    Rank Math free

    I’m getting a 404-page error sometimes when visiting the sitemap. Not only that google search console also showing that sitemap is 404
    I have also done the troubleshooting steps which were posted before in this forum. But it worked for temporary, not actually solved the problem.
    Please fix this issue with the sitemap. Note it’s not a bug it’s an issue, I think. fix it soon

    • This topic was modified 4 years, 8 months ago by Rajdeep Das.
Viewing 11 replies - 16 through 26 (of 26 total)
  • Hi there,

    Thanks for the follow up.

    I would suggest that you enable WP_DEBUG and WP_DEBUG_LOG by setting these constants to true on your wp-config.php file.
    This will then log all the error on your site on debug.log on the wp-content folder. Please check for any errors reported and fix them.

    Thank you.

    is this issue happening due to this?
    $path = $_SERVER['HTTP_HOST'] . $_SERVER[REQUEST_URI]; at line no 73 theme function file.

    Hi Rajdeep,

    Thanks for the question.

    This could be one of the reasons, you can fix that by modifying the code to:
    $path = $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'];

    I hope this info helps. Thank you.

    what other changes you have done to fix the issue of Infoetc-A India’s Technical Website

    • This reply was modified 4 years, 8 months ago by Rajdeep Das.

    HI Rajdeep,

    The errors were related to the above, undefined constants.

    I did not make other changes.

    Thank you.

    image

    Michael Davis it has happened now in the evening when I’m writing a new post.
    How to fix it?

    HI Rajdeep,

    Thanks for getting back to us and sorry for the inconvenience caused.

    The sitemap is working correctly when I check at this time which makes this issue very strange. Since this is causing an issue on your server, I would suggest that you disable the sitemap module and install the following plugin https://wordpress.org/plugins/google-sitemap-generator/ instead.

    I hope this info helps. Thank you.

    im

    Davis, it happened again.
    Another person has also reported regarding this issue.
    So has everyone has issues in their hosting server?
    https://support.rankmath.com/ticket/sitemap-is-not-generating-404/

    After doing this sitemap appears again,
    Rankmath>Sitemaps>Save Changes
    img

    Hi Rajdeep,

    Thank you for the follow up and sorry for any inconvenience caused.

    We are going to investigate this further and then get back to you.

    Thank you for the patience and understanding.

    Hello,

    The Sitemap seems to be working fine on your site now. Can you please tell us the steps to reproduce this issue on your site?

    Looking forward to helpin 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 11 replies - 16 through 26 (of 26 total)

The ticket ‘404 page showing in sitemap’ is closed to new replies.