Doesn't generate nodes sitemap for other websites (Multisite) domain access. Only the first site.

Created on 2 June 2021, about 3 years ago
Updated 28 June 2024, about 24 hours ago

Site 1 - Nodes are generated.
Site 2 - No nodes are generated.
Site 3 - No nodes are generated.

Taxonomy - generated per domain.

Simple Sitemap version : 8.x-3.7
Domain access version: 8.x-1.0-beta6

๐Ÿ› Bug report
Status

Needs review

Version

2.0

Component

Code

Created by

๐Ÿ‡ต๐Ÿ‡ญPhilippines localnetwork

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • ๐Ÿ‡ธ๐Ÿ‡ฐSlovakia durifal

    I have the same problem. Problem is that the cron is always filtering also the domain on which it is runnig + domain for the sitemap. So here is how you can reproduce it:

    1. create at least 2 domains
    2. create content where some content will be accessible only for first domain, some only for second domain and some for both
    3. run the cron / rebuild sitemaps on the first domain
    4. You can see that first domain has all content links in sitemap, but the second domain has in sitemap only content links where both first domain and second domain is set and is missing all content links which have only second domain
    5. now run cron / rebuild sitemaps under second domain
    6. you can see that second sitemap has all links and sitemap for first domain is missing content which have only first domain.
  • @durifal
    I have more or less the same issue, I've added it to this thread:
    https://www.drupal.org/project/domain_simple_sitemap/issues/3251227#comm... โœจ Make compatible with simple_sitemap 4.0 & domain_entity Needs review

  • ๐Ÿ‡ธ๐Ÿ‡ฐSlovakia durifal

    I have found out that the problem appear because I have in the sitemaps (/admin/config/search/simplesitemap) also Default hreflang sitemap type. When I removed it and keep there only sitemaps for each domain, than all sitemaps are generated correctly.

    I have also posted the issue in the thread:
    https://www.drupal.org/project/domain_simple_sitemap/issues/3251227#comm... โœจ Make compatible with simple_sitemap 4.0 & domain_entity Needs review

  • ๐Ÿ‡ท๐Ÿ‡บRussia _cosmos_ Izhevsk

    I 've faced with the same bug, for example I have 2 domains
    - Domain 1 has 3 articles
    - Domain 2 has 2 articles

    Then I created 2 sitemaps here /admin/config/search/simplesitemap
    - Sitemap 1 (On Inclusion I set index Content only for sitemap1)
    - Sitemap 2 (On Inclusion I set index Content only for sitemap2)

    If I run cron from Domain1 I got this:
    - Sitemap 1 (indexed 3 articles)
    - Sitemap 2 (empty sitemap)

    If I run cron from Domain2 I got this:
    - Sitemap 1 (empty sitemap)
    - Sitemap 2 (indexed 2 articles)

    It's always generate sitemap for 1 current domain and remove for others.
    But I need to get result like:
    - Sitemap 1 (indexed 3 articles)
    - Sitemap 2 (indexed 2 articles)

    How to get the correct results?

  • ๐Ÿ‡ช๐Ÿ‡ธSpain paucala

    Same problem here

  • Status changed to Needs review 4 days ago
  • ๐Ÿ‡บ๐Ÿ‡ธUnited States veronicaSeveryn

    Have you seen this comment: https://www.drupal.org/project/domain_simple_sitemap/issues/3251227#comm... โœจ Make compatible with simple_sitemap 4.0 & domain_entity Needs review that might fix your problem? It did help me with indexing content by domains properly.

  • ๐Ÿ‡ช๐Ÿ‡ธSpain paucala

    Thank you @veronicaSeveryn you are totally right
    I think this should be warned somewere though
    Maybe on the front page of the module, maybe on the documentation...
    And i think a possible update is one that changes the autogeneration of domian sitemaps and selects only the one correct

    Guys, if you're having the same issue, follow this comment of jeni_dc:

    Sorry to keep adding to a closed issue, but for the folks who commented earlier and anyone else who ends up here, removing the default "Entity URL Generator" from the domain specific sitemap types generated by domain simple sitemap got me the correct results. Make sure "Domain entity URL generator" is the only entity URL generator available in the domain specific sitemap types otherwise all entities from the default domain get added to all of the sitemaps for the other domains.

    In my case I was only adding nodes as well as taxonomy terms assigned to a domain through the domain entity module to the sitemaps.

    This is with Simple XML Sitemap 4.1.8 and Domain Simple Sitemap 3.0.0-beta1.

  • First commit to issue fork.
  • ๐Ÿ‡ท๐Ÿ‡ชRรฉunion Martygraphie Saint-Denis (Rรฉunion)

    Hello,
    I'm also reproducing the problem in version 3.x.
    If I understand correctly the problem / solution proposed by @veronicaSeveryn
    I proposed a fix following feedback from @veronicaSeveryn. Which only adds Domain entity URL generator when creating the variant. I'm not aware of the impact on other features.

Production build 0.69.0 2024