• Resolved Mohammad Nur Hossain

    (@nur1952)


    Our server is Ubuntu/Nginx. If we add define(“fs_method”, “direct”), the sitemap throws error. If we comment out fs_method, sitemap loads. I’ve tried with disabling all plugins but same issue. The issue is related to FS_METHOD. Looking for help.

Viewing 1 replies (of 1 total)
  • Plugin Support Rank Math Support

    (@rankmathsupport)

    Hello @nur1952,

    Thank you for your query and we are so sorry about the trouble this must have caused.

    We can’t seem to replicate this issue on our end.

    Please follow the steps below while the code define(“fs_method”, “direct”) is added to your wp-config.php file:

    1. Flush the Sitemap cache by following this video screencast:
    https://i.rankmath.com/pipRDp

    2. Apply the following filter code to your site.
    <br>add_filter( 'rank_math/sitemap/enable_caching', '__return_false');

    Here’s how you can add filter to your WordPress site:https://rankmath.com/kb/wordpress-hooks-actions-filters/

    Let us know how that goes.

Viewing 1 replies (of 1 total)
  • The topic ‘Sitemap throws error when fs_method direct with Nginx’ is closed to new replies.