Sorry, I'm confused.
I navigated to each of my content types and enabled (checked) "Index content of this type." I then enabled Simple Sitemap for my Taxonomy terms.
I then navigated to "Configuration > Simple XML Sitemap Settings" and pressed the "Regenerate Content" button and -- after processing the request -- Simple XML Sitemap reported "The XML sitemap has been regenerated for all languages." I then loaded http://www.MyDomain.com/sitemap.xml which resulted in this...
<urlset>
<url>
<loc>http://www.MyDomain.com/</loc>
<priority>1.0</priority>
</url>
</urlset>
Where are the mappings to all of my content types and taxonomy?
In addition, there does not appear to be any sitemap.xml file located in my site's root directory (when I look with my FTP client).
What am I doing wrong?
Comment | File | Size | Author |
---|---|---|---|
#32 | interdiff-31_32.txt | 663 bytes | Oscaner |
#32 | 2678146-32.patch | 982 bytes | Oscaner |
#28 | simple_sitemap_cache_issue.png | 126.14 KB | Debasish147 |
#16 | sitemap_only_updated-2678146-16.patch | 525 bytes | hctom |
Issue fork simple_sitemap-2678146
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
gbyte CreditAttribution: gbyte as a volunteer and commentedYou do not appear to be doing anything wrong.
There is no physical file, as sitemaps are cached in the database (as a matter of fact you will not find any pages you create on the server via ftp). Most pages in Drupal (and most CMSs for that matter) are created dynamically from the DB.
If you find links are missing on the sitemap, make sure the content you intend to index is viewable by anonymous users.
If that's the case and regenerating the sitemap doesn't work for some reason, please clear caches, regenerate again. Waiting for your report.
Is your site public, can you provide its address?No worries, I see you provided the address on my blog. :)Comment #3
gbyte CreditAttribution: gbyte as a volunteer and commentedCan you please try the dev version? I've noticed a cache invalidation problem and temporarily addressed it in the dev version. Please do not forget to clear the caches after updating the module files. Looking forward to your report.
Comment #4
Q2U CreditAttribution: Q2U commentedThank you very much for your quick response. I performed the following steps...
Hey, thanks a lot GB! My issue may well be cache related as you surmised.
Comment #5
gbyte CreditAttribution: gbyte as a volunteer and commentedThat's great!
Comment #6
Anonymous (not verified) CreditAttribution: Anonymous commentedThe sitemap still doesn't get updated with the caching enabled. After disabling the cache I got the sitemap generated.
Comment #7
Anonymous (not verified) CreditAttribution: Anonymous commentedAs soon as I enable the cache the sitemap gets empty again.
Comment #8
gbyte CreditAttribution: gbyte commentedHave you cleared the cache after upgrading to the dev version?
Comment #9
Anonymous (not verified) CreditAttribution: Anonymous commentedYes, I did clear the cache. But for some reason after reinstalling it works.
Comment #10
lmedrano CreditAttribution: lmedrano commentedI cleared cache, installed dev version and followed step by srep instructions on #4 and #8, but nothing, just a blank page (on firefox) with the custom links on it (just text, no links).
I have moved my site from localhost to live server.
Any other idea?
Comment #11
Anonymous (not verified) CreditAttribution: Anonymous commentedImedrano you should notice that currently this ticket is marked as closed. Please make sure to mark it as open if the issue persists.
Comment #12
gbyte CreditAttribution: gbyte commented@Imedrano The ticket was marked closed, hence I did not see your post.
The "blank page with custom links on it" is correct, this is how firefox interprets hreflang sitemaps. Press ctrl+u to see what the bots see. If you are missing content type links, you haven't configured your sitemap yet. Please read the readme.txt file from the module root directory.
As mentioned, if your problem persists, please reopen the ticket.
Comment #13
ws.agency CreditAttribution: ws.agency at Websolutions Agency commentedI am reopening this ticket. Its confusing because regenerated sitemap is visible only after clearing the caches. I think this module should invalidate sitemap cache whenever "Regenerate sitemap" option is used.
Comment #14
gbyte CreditAttribution: gbyte commentedThis should be the case with the dev version of the 2.x branch. Please get back to me with your findings.
Comment #15
hctomWe are experiencing similar problems with our sitemap. We are using the latest dev-release (with commit 134f4ee0cc0092c6bcbbbee4d4abdc7360d9fe8d) and here are the steps to reproduce our problems:
devel_generate
orDrupal Console
)/admin/config/search/simplesitemap
/sitemap.xml
- you will see the sitemap with the currently added items/sitemap.xml
again - No changes are present, the last accessed state is displayed/sitemap.xml
- All items are present nowThis may really cause problems, e.g. when the sitemap crawler visits the sitemap during regeneration (e.g. via cron), then the sitemap might even be completely empty and won't display real content until either the caches are cleared or the sitemap is generated again.
I'd appreciate your help, if there is an easy fix for this. I will also dig through the code to see if I can find a place, where to invalidate cache at the end of the generation. If I find something, I will provide a patch.
Comment #16
hctomOkay, this was easy ;) Here is the proposed patch with cache tag invalidation for the sitemap output
Comment #17
gbyte CreditAttribution: gbyte commented@hctom thanks for your observations. I can't use your patch, as it would trigger a cache clear after the creation of every single sitemap chunk. I have moved the cache invalidation to the function triggered when batch finishes.
Please test and feel free to reopen the issue.
Comment #19
raj45 CreditAttribution: raj45 at DBC commentedMy sitemap would occasionally disappear for no apparent reason, and only re-appeared after manually running cron, so I have resorted to running cron every 15th minute, with this in my crontab:
Comment #20
Q2U CreditAttribution: Q2U commented+1...I believe I'm having the same issue. For no readily apparent reason -- occasionally -- my sitemap isn't present when it is called, as shown in the screenshot below...
http://www.stonetonwestllc.com/Q/sitemap-screenshot.jpg
To remedy the issue I need to regenerate sitemap my sitemap manually.
Comment #21
raj45 CreditAttribution: raj45 at DBC commentedSetting
Status
toActive
again.Comment #22
hctomAs far as i see, The Problem is that cron regenerates the Sitemap in a single process with no real Batch. So if you have a lot of content this may lead to a timeout
Comment #23
raj45 CreditAttribution: raj45 at DBC commented@hctom: I only have 135 pages, so missing Batch process shouldn't be the problem in my case ...
Comment #24
Q2U CreditAttribution: Q2U commentedI only have a couple hundred pages also.
This issue should probably have been entered as a separate and distinct issue.
My sitemap disappears regularly, as shown below...
http://www.stonetonwestllc.com/sites/default/files/google-sitemap-error.jpg
Comment #25
Q2U CreditAttribution: Q2U commentedChanging status to "Critical."
Comment #26
gbyte CreditAttribution: gbyte commentedI cannot reproduce this in any of my projects, so it would be very beneficial if you could figure out when and how this happens.
#2711761: Sitemap sometimes disappearing may be related?
But first of all please open a new ticket for this issue for 8.x-2.x-dev.
Comment #27
gbyte CreditAttribution: gbyte commentedPlease follow this issue: #2711761: Sitemap sometimes disappearing
Comment #28
Debasish147 CreditAttribution: Debasish147 commentedStill the issue of invalidate cache is there. After generation of sitemap, if one content title has changed then that is not reflecting in sitemap. We have to hit regenerate again to get that update title as reflected.
Please find the attach screen shot , in which we are getting cache tags are missing. Can you reopen the issue as cache is not working properly.
Comment #29
gbyte CreditAttribution: gbyte commented@Debasish147 Your problem is not cache I believe. The sitemap will never update after you change a piece of content, as these files are a snapshot of what your site looks like at a time. The sitemap can be set to regenerate on cron runs, or you can click 'regenerate after clicking save' when making changes to content sitemap settings.
Comment #31
Oscaner CreditAttribution: Oscaner at CI&T commentedComment #32
Oscaner CreditAttribution: Oscaner at CI&T commented