Geta / geta-optimizely-sitemaps

Search engine sitemaps.xml for Optimizely CMS 12 and Commerce 14
Apache License 2.0
10 stars 14 forks source link

Sitemap Job runs successfully but has zero entries #99

Open PoojaJangam3714 opened 11 months ago

PoojaJangam3714 commented 11 months ago

We are using the Geta.SEO.Sitemaps 3.1.1 in Episerver CMS 12.19. The following is the configuration -

image

When the scheduled job is run there are no errors shown, even when we are using debug = true, and the job runs successfully -

image

But as seen in the image above and confirmed from the created sitemap.xml there are zero entries on the xml file. image

image

Please help on this as we are unable to figure out why the xml is empty at times and populated at others when there are no changes in configuration and code.

mikemalloy-commscope commented 11 months ago

@PoojaJangam3714 I don't know if this helps but on my lower environments I removed the 'Everyone' group to limit access. I noticed when I did that, the job would return 0 results. So, it might be a connectivity issue.

PoojaJangam3714 commented 11 months ago

@mikemalloy-commscope The user running the scheduled job has the Administrators access on the CMS. The same role is also the level to which the Sitemaps configuration is set to in code.

Soleimsen commented 11 months ago

I had a similar issue with sitemap generation, but I was able to fix it by giving the "Read" scope to the "Everyone" role. As per my understanding, a page needs to have Read on everyone to be part of the sitemap.

valdisiljuconoks commented 11 months ago

Think by default sitemap should include pages with public access. Might be good idea to include skipped pages in log, but could grow log entry significantly. Maybe just include number of pages skipped..?