RankMath sitemap function throws an error and does not work

#946763
  • Resolved Christian Scharff
    Rank Math free

    Hi,

    RankMath sitemap function throws an error and does not work (I use FS_METHOD “direct” – so FTP is not in use).

    So it wrongly initates FTP to write the sitemap.
    File right are available.

    BR

    Christian

    [09-Jan-2025 14:23:37 UTC] PHP Deprecated: Increment on non-alphanumeric string is deprecated in /var/www/houseaffair/wp-content/plugins/seo-by-rank-math/includes/modules/sitemap/providers/class-author.php on l ine 103
    [09-Jan-2025 14:23:37 UTC] PHP Fatal error: Uncaught TypeError: ftp_fput(): Argument #1 ($ftp) must be of type FTP\Connection, null given in /var/www/houseaffair/wp-admin/includes/class-wp-filesystem-ftpext.php :212
    Stack trace:
    #0 /var/www/houseaffair/wp-admin/includes/class-wp-filesystem-ftpext.php(212): ftp_fput()
    #1 /var/www/houseaffair/wp-content/plugins/seo-by-rank-math/includes/modules/sitemap/class-cache.php(135): WP_Filesystem_FTPext->put_contents()
    #2 /var/www/houseaffair/wp-content/plugins/seo-by-rank-math/includes/modules/sitemap/class-sitemap-xml.php(155): RankMath\Sitemap\Cache->store_sitemap()
    #3 /var/www/houseaffair/wp-content/plugins/seo-by-rank-math/includes/modules/sitemap/class-sitemap-xml.php(92): RankMath\Sitemap\Sitemap_XML->has_sitemap_in_cache()
    #4 /var/www/houseaffair/wp-content/plugins/seo-by-rank-math/includes/modules/sitemap/class-sitemap-xml.php(82): RankMath\Sitemap\Sitemap_XML->output()
    #5 /var/www/houseaffair/wp-content/plugins/seo-by-rank-math/includes/modules/sitemap/class-router.php(79): RankMath\Sitemap\Sitemap_XML->__construct()
    #6 /var/www/houseaffair/wp-includes/class-wp-hook.php(324): RankMath\Sitemap\Router->request_sitemap()
    #7 /var/www/houseaffair/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()
    #8 /var/www/houseaffair/wp-includes/plugin.php(565): WP_Hook->do_action()
    #9 /var/www/houseaffair/wp-includes/class-wp-query.php(1140): do_action_ref_array()
    #10 /var/www/houseaffair/wp-includes/class-wp-query.php(1868): WP_Query->parse_query()
    #11 /var/www/houseaffair/wp-includes/class-wp-query.php(3852): WP_Query->get_posts()
    #12 /var/www/houseaffair/wp-includes/class-wp.php(696): WP_Query->query()
    #13 /var/www/houseaffair/wp-includes/class-wp.php(816): WP->query_posts()
    #14 /var/www/houseaffair/wp-includes/functions.php(1336): WP->main()
    #15 /var/www/houseaffair/wp-blog-header.php(16): wp()
    #16 /var/www/houseaffair/index.php(17): require(‘…’)
    #17 {main}
    thrown in /var/www/houseaffair/wp-admin/includes/class-wp-filesystem-ftpext.php on line 212

Viewing 2 replies - 1 through 2 (of 2 total)
  • Christian Scharff
    Rank Math free

    PHP Version is LSPHP8.3

    Hello,

    Thank you for contacting us and sorry for any inconvenience that might have been caused due to that.

    Please make sure you’re using the latest version of the Rank Math free (v1.0.235) plugin on your website: https://rankmath.com/changelog/free/

    If you’re not able to see the update, please clear Rank Math’s transients from WP Dashboard > Rank Math > Status & Tools > Database Tools > Remove Rank Math Transients: https://rankmath.com/kb/rank-math-status-and-tools/#rank-math-transients

    Once done, please clear your website cache and see if that fixes the issue.

    If the issue persists, please head over to your WP Dashboard > Rank Math > Status & Tools > System Status, click the “Copy System Info to Clipboard” button, and paste it here so we can check this further for you.

    Let us know how it goes. Looking forward to helping 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 2 replies - 1 through 2 (of 2 total)

The ticket ‘RankMath sitemap function throws an error and does not work’ is closed to new replies.