Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
Fatal error when Rank Math XML sitemap for preloading #1620
PHP Fatal error: Class 'RankMath\Modules\Sitemap\Router' not found in /wp-content/plugins/wp-rocket/inc/3rd-party/plugins/seo/rank-math-seo.php on line 86
In the Rank Math SEO plugin code, they're retrieving the sitemap URL like this:
whereas we're doing it like this:
So I just took the \Modules bit out of that line on my test site, which seems to have fixed the problem.