seo icon indicating copy to clipboard operation
seo copied to clipboard

Grouped Section Sitemap Empty

Open charliestrafe opened this issue 1 year ago • 5 comments

Description

Hi there,

I am having an issue where the grouped sitemap for each section is not actually showing any individual entries. This is happening for all of my sitemap groups.

The main sitemap: Screenshot 2022-07-18 at 09 18 58

A individual group: (which is empty) Screenshot 2022-07-18 at 09 18 00

I have enabled the sitemap for the section within the backend, and configured the settings so it should be all working. Each section has more than 30+ entries in so these should be showing.

Steps to reproduce

  1. View sitemap
  2. Grouped sitemaps don't show entries

Additional info

  • Craft version: Craft Pro 4.1.4.1
  • SEO version: v4.0.3
  • PHP version: 8.1.0
  • Database driver & version: MySQL 5.7.32
  • Other Plugins: Freeform, Navigation, Redactor, Super Table, Workflow, Typed Link Field

charliestrafe avatar Jul 18 '22 08:07 charliestrafe

@charliestrafe This is odd, and not expected behaviour.

Have you tried clearing all the caches via utilities? Also, are the three selections showing correctly or are you expecting more sections?

alexjcollins avatar Jul 18 '22 09:07 alexjcollins

Just cleared all caches and that didn't fix it. Yes all sections are showing, I clicked 'remove from sitemap' on some of them just to test if it was reflected in the XML and it was. Not sure whats going on here.

charliestrafe avatar Jul 18 '22 09:07 charliestrafe

Do the sections all have public URLs?

alexjcollins avatar Jul 18 '22 11:07 alexjcollins

Yes, all public URLs

charliestrafe avatar Jul 18 '22 12:07 charliestrafe

😕

Does it work on any of your other sites? And if it does, is there anything different to the way you've configured those?

Also, try checking the logs, as the closing </urlset> is missing from the section sitemap which makes me think there's an error.

alexjcollins avatar Jul 18 '22 12:07 alexjcollins