Error: Rank Math cache – Failed to open stream (sitemap xml)
-
I have an error and a suggestion. 🙂
In my error logs, I permanently get “failed to open stream” warnings from Rank Math.
It’s really strange, because it looks like Rank Math tries to write files in the
/wp-content/plugins/seo-by-rank-math/sitemap-cache/
folder. I’m not sure, if this is “WordPress Best Practice”.Other plugins like the “EWWW Image Optimizer” or “LiteSpeed Cache” generated their files (e.g. cache files, tmp files, …), which are needed to operate the plugins correctly, in a own subfolder of
/wp-content
./wp-content/ewww
/wp-content/litespeed
Maybe it’s possible, that Rank Math follow this scheme too?
/wp-content/rankmath
Best,
AndreasBelow my error from the debug.log:
[17-Jun-2020 07:23:55 UTC] Array ( [type] => 2 [message] => file_get_contents(/wp-content/plugins/seo-by-rank-math/sitemap-cache/rank_math_626232be5ff42a970fad4c5d1b3be31b.xml): failed to open stream: No such file or directory [file] => /wp-admin/includes/class-wp-filesystem-direct.php [line] => 39 )
- The topic ‘Error: Rank Math cache – Failed to open stream (sitemap xml)’ is closed to new replies.