Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I've installed 6.x-2.0-beta1 and when I go to the admin page, I see "No XML sitemaps available. Add a new XML sitemap", and then when I go to /admin/settings/xmlsitemaps/add, I get "There are currently no XML sitemap contexts available." I can't see any other options to change/activate.
So, how do I get this thing started?
Comment | File | Size | Author |
---|---|---|---|
#34 | xmlsitemap-2.x-delete_sitemap_smid_type-6.x.patch | 591 bytes | AlexisWilke |
#31 | Screenshot.png | 99.54 KB | AlexisWilke |
#31 | Screenshot-1.png | 15.59 KB | AlexisWilke |
#31 | Screenshot-2.png | 91.2 KB | AlexisWilke |
#31 | Screenshot-3.png | 103.79 KB | AlexisWilke |
Comments
Comment #1
bdwelle CreditAttribution: bdwelle commented...and if I click "Save" on the .../add page, I just end up back on /admin/settings/xmlsitemap with "No XML sitemaps available. Add a new XML sitemap" again.
Any help getting this running?
thx
Comment #2
Dave ReidThe module didn't create a default sitemap for you on install? That's odd.
I also don't have any problems saving the one and only new sitemap if there are no contexts (and that's totally fine because there isn't any contexts by default). I need to come up with something better to put because like you can attest, it seems wrong.
Comment #3
bdwelle CreditAttribution: bdwelle commentedI think that my problem was due to an unclean upgrade from 6.x-1.2... I deleted all the xmlsitemap tables and variables and reinstalled 6.x-2.0-beta1, and now I have a sitemap listed on the admin page. Thx for replying!
Comment #4
marafa CreditAttribution: marafa commentedhi
i just fixed this problem for myself
i disabled all xmlsitemap modules then uninstalled the modules.
and then i re enabled the modules. the sitemap was automatically generated. however it only had one link to my front page.
at least it works now!
Comment #5
huongle CreditAttribution: huongle commentedHi,
At Settings tab, click to items of Taxonomy, User, Content or Forum... and change Inclusion to Included, then rebuild your xmlsitemap.
Cheers,
SymphonyThemes.com
Comment #6
marafa CreditAttribution: marafa commented@huongle
thanks!
Comment #7
cdpapoulias CreditAttribution: cdpapoulias commentedHi,
No matter what I do following suggestions in this post, I can't get this module to work. I've tried removing all the variables in the Drupal db, disabling/re-enabling - I made all my content was included - but whenever I go to Add a new sitemap, Drupal simple tells me that "There are currently no XML sitemap contexts available."
Any other possible suggestions?
Thanks all, very very much!
Dinos
Comment #8
Dave Reid"There are currently no XML sitemap contexts available." is *not* an error message. Just continue to press Save and you'll get it to work.
Comment #9
cdpapoulias CreditAttribution: cdpapoulias commentedHello,
Unfortunately I haven't been able to get it to work still. I'd like to start from scratch - how can I start from the beginning as if I had never used the module before?
This is what I see so far:
1. disable the module itself
2. remove the cache files
3. remove all variables starting with "sitemap..." in the Drupal database table
then..
re-enable the module. Did I miss anything?
If I can contribute something in the process, I'd love to.
Thanks again,
Dinos
Comment #10
cdpapoulias CreditAttribution: cdpapoulias commentedScratch that - I figured it out - got it too work having read a few more issue logs. Thanks again - and great module :-)
Comment #11
Anonymous (not verified) CreditAttribution: Anonymous commentedDoes the static sitemap.xml file still exist in your DocumentRoot directory?
Comment #12
cdpapoulias CreditAttribution: cdpapoulias commentedNo, but I did get it working. Thanks again! Much appreciated.
Comment #13
Anonymous (not verified) CreditAttribution: Anonymous commentedComment #14
PaulWoodhead CreditAttribution: PaulWoodhead commentedHi Dinos,
I've just been reading your forum posts: because I’m having a torrid time with the sitemap module. I feel like I’ve done everything humanly possible to make it generate a sitemap.xml file, but always to no effect. I can use external sitemap engines and everything is picked up, but the XML Sitemap module has no pages and no links, and when i try to create a new one, no contexts, and therefore no sitemap, and so ad infinitum. I would be sycophantically grateful if you could offer me some advice how to get this module to function.
Yours eagerly,
Paul
Comment #15
bradjones1For what it's worth, I've found this to be a frustration myself after upgrading xml sitemap a few sub-versions, and here's what I did to correct this "error" message, plus the problem of having a sitemap with 0 pages, 0 links, and thus a 404 error on attempted load.
This module just didn't seem to upgrade properly for me, so along with drush I did a drush pm-disable xmlsitemap (which will take care of all the submodules too), then drush pm-uninstall, then drush en, which rebuilt the database tables. Also make sure your Web server's write access to files/xmlsitemap is correct. The pm-uninstall/enable routine seemed to shake it loose, and I couldn't find an uninstall option using the Web UI, it was only available (or only worked) through drush. Hope this helps.
Comment #16
PaulWoodhead CreditAttribution: PaulWoodhead commentedCheers for that Brad, I've just gone back to the older xmlsitemap module for now....Working fine! Nice one for opening my eyes to drush also! When my frustration gland has settled down a bit, i'll try upgrading again. In the meantime I'm going to have a good look at drush.
Cheers,
Paul
Comment #18
alexharries CreditAttribution: alexharries commentedJust installed this onto a clean install of UberDrupal and am also seeing "There are currently no XML sitemap contexts available."
Menus and nodes are included; here's the XML Sitemap main page (attached as a screen shot).
Any help would be greatly appreciated. I apologise but I don't have the time right now to look into this myself, otherwise I would try and find a way to suggest how the error message and handling itself could be improved, as this is also hugely frustrating.
Best regards,
Al
Comment #19
Dave Reid@alexharries And if you read this issue:
According to your screenshot it looks like everything is working as expected. I'm working on improving that context message in the other context issues.
Comment #21
AdamKlein CreditAttribution: AdamKlein commentedComment #22
AdamKlein CreditAttribution: AdamKlein commentedHi Dave maybe you can help:::
I'm having the issue described above - /sitemap.xml returns "page not found" AND There are currently no XML sitemap contexts available
Here's what I've got configured:
*I don't have il8n submodule installed (not even on server, shows missing on module admin page)
*Element Module Installed
*I've tried rebuilding and updating cache pages
*Content set to Include
Debug at /sitemap?debug
Current context: Array ( )
Sitemap: Array ( [smid] => 1 [context_hash] => 40cd750bba9870f18aada2478b24840a [context] => Array ( ) [updated] => 1284493398 [links] => 0 [chunks] => 0 [uri] => Array ( [path] => sitemap.xml [options] => Array ( [absolute] => 1 [base_url] => http://pacificadvisors.com ) ) )
Chunk: 1
Cache file location: sites/pacificadvisors.com/files/xmlsitemap/40cd750bba9870f18aada2478b24840a/1.xml
Cache file exists: No
After I rebuild or update Cache:
warning: fopen() [function.fopen]: Unable to access sites/pacificadvisors.com/files/xmlsitemap/40cd750bba9870f18aada2478b24840a/1.xml in /var/www/vhosts/pacificadvisors.com/httpdocs/sites/all/modules/xmlsitemap/xmlsitemap.generate.inc on line 190.
warning: fopen(sites/pacificadvisors.com/files/xmlsitemap/40cd750bba9870f18aada2478b24840a/1.xml) [function.fopen]: failed to open stream: Success in /var/www/vhosts/pacificadvisors.com/httpdocs/sites/all/modules/xmlsitemap/xmlsitemap.generate.inc on line 190.
user notice: Could not open file sites/pacificadvisors.com/files/xmlsitemap/40cd750bba9870f18aada2478b24840a/1.xml for writing. in /var/www/vhosts/pacificadvisors.com/httpdocs/sites/all/modules/xmlsitemap/xmlsitemap.generate.inc on line 191.
There are no files located at /files/xmlsitemap/
Comment #23
WeRockYourWeb.com CreditAttribution: WeRockYourWeb.com commentedUpgrade didn't work, fresh uninstall and re-install didn't work.
When I try and "add sitemap" I get the following error:
Fatal error: Cannot use object of type stdClass as array in /home/public_html/modules/xmlsitemap/xmlsitemap.admin.inc on line 232
Going back to 6.x-1.2 for now.
Comment #24
Dave Reid@cwdnow: Which version of the module were you using? The latest 6.x-2.x-dev download from a couple days ago?
Comment #25
WeRockYourWeb.com CreditAttribution: WeRockYourWeb.com commentedHi Dave,
Yes, sorry - probably should have used the recommended beta. I went back and uninstalled and reinstalled using 6.x-2.0-beta1. However, I still could not get the sitemap added no matter what I tried (despite the above error no longer showing up), so I followed these steps (I've added comments in case anyone finds this useful):
0) Backup your DB (you should always do this)
1) Uninstall module and flush cache
2) Delete (after backing up) /files/xmlsitemap directory (you might need to adjust permissions to get it to delete)
3) Search (via phpMyAdmin/ mySQL) the database for any instances of "xmlsitemap" (I had been running 6.x-1.2) and delete them if they're old xmlsitemap entries (for example, there was a bunch in the "system" table)
4) Reinstall only the base module and run cron
5) Voila - the sitemap now shows up
6) Install the add-on modules
I really want the comment update feature added as well, but am not comfortable installing the latest dev, so for now I've simply made this simple change that changes the lastmod timestamp so pages are updated with comments.
Thanks for all your hard work Dave! Excellent (and very important) module.
Comment #26
jannalexx CreditAttribution: jannalexx commentedThere are currently no XML sitemap contexts available, even in dev.
Clean install (beta1 and dev)
No way to add new sitemap, no form to do that. A sitemap with the same context already exists. if u press save again and nothing happens, no way or form to add a new name in settings page (beta1 and ajax ui in dev).
Also, in editing default after install and only www.domain.name/sitemap.xml, errors if saving (without anything to change in page)
and if I delete default sitemap.xml there is no way to add it again. Any ideas?
error and backtrace in dev:
Comment #27
Dave ReidThe stdclass/array error messages have been fixed in #921644: add sitemap gives error and deletes existing sitemap.
@AdamKlein: Please visit admin/reports/status on your site and let me know if you see any red warnings. It sounds like your webserver cannot write to your files directory.
Comment #28
inforeto CreditAttribution: inforeto commentedThe link "add new sitemap", what does it do?
admin/settings/xmlsitemap/add says:
"There are currently no XML sitemap contexts available."
Pressing save it says:
"A sitemap with the same context already exists."
What is a context?
Could not find these in the handbook pages for xmlsitemap nor by site search.
Looking to have a separate sitemap file for each multisite, so that each show links with the corresponding base_url.
Comment #29
Dave Reid@inforeto: If you want XML sitemap on a multisite, you have to install it on each site. That's the way multisite works. If you are using the Domain access module, you should use the Domain XML sitemap integration.
Comment #30
Mandakini_Kumari CreditAttribution: Mandakini_Kumari commentedNot sure what's use of "Add new XML sitemap" and Edit/ Delete Operations ?
If I click on Edit Operation getting below result
There are currently no XML sitemap contexts available.
Cancel
I want to edit sitemap.xml because I am getting only front page link on
http://drupalwebdevelopment.info/sitemap.xml and http://www.ayushiinfotech.com/sitemap.xml
Comment #31
AlexisWilke CreditAttribution: AlexisWilke commentedHi guys,
How can this bug be marked as "closed" or "postponed" since until fixed the XML sitemap is pretty much empty?
Well... maybe you're using a menu, I did not try that one (although looking at the code there is no menu context either), but I wanted my nodes to appear in the XML sitemap. The <front> page appears, that's it.
In the code, there is clearly no context for all sub-types except one: i18n, which I do not use either. How can this possibly be considered working without the contexts? Is there some trick in the core XML sitemap module that is expected to find all the nodes and add them to the sitemap?
Again, I wouldn't mind to help, but I need direction and know whether you, on your end, have the code ready just did not release it yet?
At this this point, the XML sitemap module just doesn't work at all.
As proof, there are a few screenshots and the extended code of the node context:
Screenshot.png -- shows that there is 1 link/page in the XML sitemap, I ran cron.php 4 times
Screenshot-1.png -- here we can see the actual xmlsitemap, just and only the front page
Screenshot-2.png -- there is the list of nodes that I want to see in the XML sitemap, but there is no node context...
Screenshot-3.png -- here I show the status, all is just fine, and it shows you that the CRON process was run very recently -- further down the XML sitemap is said to be generated and ready, and it is indeed downloadable, it's just pretty much useless at this point...
Please, let me know whether a helping hand would be welcome and what should be worked on so this 2.x version becomes a working version. 8-)
Thank you.
Alexis Wilke
Comment #32
AlexisWilke CreditAttribution: AlexisWilke commentedJust in case, I change the version too, although from what I read here, 2.x and 2.0-beta1 have the exact same problem.
Thank you.
Alexis
Comment #33
Dave ReidWell even though #31/32 aren't actually related to this issue, I'll bite.
Please take a screenshot of your admin/settings/xmlsitemap/settings page and the 'node' fieldset. Are all of your content types excluded?
Comment #34
AlexisWilke CreditAttribution: AlexisWilke commentedOkay, so I guess I'm an idiot 8-)
Now, the old behavior, if I recall, was for all the node types to be enabled by default... So big surprise! Agreed that #31/32 are not directly linked with this issue.
This being said, which module is supposed to give you a way to name the sitemap you Add? Or are all sitemaps expected to be named sitemap.xml?
At this point we cannot create a new sitemap... there is no context (unless you have i18n) and no way to name the sitemap or when you edit to rename an existing sitemap.
As mentioned by someone here, I tried the Delete to try to track this very problem on a Save of a new sitemap. The smid is considered an integer which did not work with the current version.
Once I fixed the delete, I could remove the existing sitemap and then re-create it and it magically worked. Although I got an error message saying that it was up to date even though it was empty...
Here I was testing with a new site where there was no Sitemap 1.x before. I had a problem upgrading from 1.x to 2.x as I mentioned somewhere else. And when I tried to create a new sitemap on those sites, from what I recall, it wouldn't work. I'll try again as I have several other sites with the same problem.
Thank you for the quick answer! (and fixing my problem!)
Alexis Wilke
Comment #35
Dave ReidComment #36
AlexisWilke CreditAttribution: AlexisWilke commentedActuall, I should have changed the status, but at the time I had other problems that looked like something else wasn't working.
The "no context" message is definitively a bad one! 8-)
Thank you.
Alexis
Comment #37
tomjoy CreditAttribution: tomjoy commentedAwesome thanks so much!
Comment #38
johnTEN CreditAttribution: johnTEN commentedIm having the same problem. I only just installed it and it never generated a map.
Comment #39
ajventure CreditAttribution: ajventure commentedI too am having this issue. I have been having constant problems with the sitemap including unpublished pages and since the last update (which was supposed to amend this issue). Today I attempted to update to yet another update of this module as I thought it would address this issue and I unfortunately, as above, cannot even generate a sitemap at all. I have tried many of the suggestions in this report to no avail.
Just wanted to add to the discussion on the topic, to help others to see there continues to be an issue.
Thankyou for the module and time put into the Drupal community.
Comment #40
Anandyrh CreditAttribution: Anandyrh commentedThanks a lot!
This one is Fantastic!
Comment #41
reikiman CreditAttribution: reikiman commentedI appear to have made a duplicate filing (#1139186: Sitemap.xml doesn't have any entries in it on one site, while other sites it has entries)
In my case reading the above comments pointed me to the Inclusion/Exclusion settings as I just described in a blog post: http://davidherron.com/content/potential-and-fix-drupal-xmlsitemap-modul...
Switching nodes and taxonomies and menus to be Included fixed my issues and my site is now generating proper xmlsitemap's
Comment #42
porcupine73 CreditAttribution: porcupine73 commentedI upgraded from 6x 2.0 beta1 to 6x 2.0 beta 2 and then started having the 'There are currently no XML sitemap contexts available' problem again. I remember having this issue when installing beta 1. After messing around for about two hours, I gave up, disabled the add-in, uninstalled it, then reinstalled it, and now it seems to be working.
It seemed like if I clicked the 'update cached files' or 'rebuild links' then that's when the 'There are currently no XML sitemap contexts available' problem started.
One thing I noticed, was, in the xmlsitemap_sitemap table, oh wait, I just noticed the table structure is different between beta 1 and beta 2. I looked in update.php but it said there were no updates available. It looks like beta 2 does away with the context_hash table and adds a max_filesize column. Maybe that's where the problems were?
Uninstalling and reinstalling is a pain, because then all the node types default back to 'excluded' from the sitemap, and, if you have a lot of node types that takes quite a while to go through each one to re-include it.
editing to add: Ok, I'm stupid, I see what I did now. I have about a dozen sites in multisite, so I'm on to the next site. It was the update.php. I saw the xmlsitemap add ins, and those said no update needed, but the xml sitemap engine and something else, those had updates listed. But I didn't notice those the first time so I thought running update.php wasn't needed. It indeed is! This will save me time not uninstalling and reinstalling on the rest of the sites. Thanks for the great add-in!
Comment #43
Anonymous (not verified) CreditAttribution: Anonymous commented#42: Since this issue is for 6.x.2.x-dev, please leave it that way. If you have a similar issue for 7.x-2.x then find a suitable issue or create a new one.
Comment #44
paolomainardi CreditAttribution: paolomainardi commentedSubscribe, same problems here.
I have the same problem, the module has created a "sitemap.xml" that is correctly built, with menu, taxonomy and users, as configured by settings.
But "edit" and "add" functionalities seems to be totally broken, with messages like "A sitemap with the same context already exists." with no possibilities to change contexts (what are contexts ?) on "add" interface and the usual "There are currently no XML sitemap contexts available." when trying to edit the default sitemap.
Thanks a lot for this great module but a little bit of documentation would be great :)
Comment #45
dominateyourmarket CreditAttribution: dominateyourmarket commentedsubscribe
Comment #46
almamun CreditAttribution: almamun commentedI had the same problem, cause I have set noconnection for .xml in htaccess. But when I created an url alias without file extension, its working, though "no context" message is there D:
almamun
----------------------------
Dinajpur- My District Portal,
Rangpur-Another Local Portal (Drupal Powered)
Banglajogot- Bangla Web Design Blog (Drupal Powered)
JoomlaBangla - Joomla! Bangla Support Site
Comment #47
grabo CreditAttribution: grabo commentedI have the same problem, waiting for a final stable version for drupal 6 and hope it works better.
Comment #48
Cybergrass CreditAttribution: Cybergrass commentedWith DP 7.8, I cannot generate the XML file.
Also, GoogleNews for 7.x doesn't work either.
The file sites/default/files/xmlsitemap/.../1.xml is there with headers and structure content but no URL content.
I hope this helps you out.
Thanks
Comment #49
Anonymous (not verified) CreditAttribution: Anonymous commentedPlease do not change the version data in a ticket. If you have a differing Drupal version with a similar issue create a new ticket if one doesn't exist already.
The patch in #34 still needs a review by Dave who seems to be MIA.
Comment #50
Cybergrass CreditAttribution: Cybergrass commentedSorry and thank you Earnie
Comment #51
Cybergrass CreditAttribution: Cybergrass commentedRemoval of the 'ad' advertising module resulted in googlenews working fully and properly.
Since the ad module is still premature and somewhat experimental, there was probably a conflict somewhere that impacted googlenews.
Comment #52
Cybergrass CreditAttribution: Cybergrass commentedRemoval of the 'ad' advertising module resulted in googlenews working fully and properly.
Since the ad module is still premature and somewhat experimental, there was probably a conflict somewhere that impacted googlenews.
Comment #53
Dave ReidThe patch in this issue has already been resolved, moving this back to active.
Comment #54
polarizz CreditAttribution: polarizz commentedbig thanks to cdpapoulias, it's work for me.
Comment #55
chlee CreditAttribution: chlee commented#9 from cdpapoulias worked for me as well. Many thanks.
Comment #56
spiderplant0 CreditAttribution: spiderplant0 commentedWhat does "#9 from cdpapoulias worked for me as well." mean exactly? Comment #9 does not offer a solution, he just says else where that he found a solution for him self.
Just to confirm this bug still exists on 6.x-2.0-rc2 and on 6.x-2.x-dev