Closed ghost closed 2 years ago
Looks like this is not a red indicator error (at least at a glance here):
Please reopen if I'm mistaken.
@laryn See the rest of the code: https://github.com/backdrop-contrib/xmlsitemap/blob/1.x-1.x/xmlsitemap.install#L125-L143
It changes the severity based on other factors, and when the severity is > 0 (i.e. warning or error) then it changes the description to what my original post stated: https://github.com/backdrop-contrib/xmlsitemap/blob/1.x-1.x/xmlsitemap.install#L141
@BWPanda I'm not seeing this on my site. Which of the two conditions that sets the severity level to an error is triggering this on your environment?
$max_filesize == 0
$generated_ago >= $system_config->get('cron_threshold_error')
I took a look at this problem and I couldn't reproduce it being caused by new content being created. After installing XML Sitemap for the first time, you do get a error that the sitemap needs to be generated for the first time. I don't think that's inappropriate though, since otherwise I might wonder why the /sitemap.xml
file doesn't exist.
Once the first sitemap is generated, creating further content doesn't seem to retrigger a status report error. It's possible this may have been fixed when @herbdool switched a lot of config values to state in #83.
Closing for now since we can't reproduce. @BWPanda please reopen with more details and steps to reproduce if you are still seeing this!
As soon as I create a new node, I get the little red error notification in the admin bar, which is because XML Sitemap has displayed an error on the Status Reports page:
I think this should be changed to a warning instead of an error, especially as displaying this message constantly until cron runs is quite annoying.