In order to extend this module to index other items for the sitemap (in my case, a certain category of files), does the new module have to be a submodule of xmlsitemap, with xmlsitemap hook prefixes, or can I make a custom module - on that would live in the custom modules directory, not contrib, and that would be named and function-prefixed 'mymodule'?
Proper approach to extending the module?
error updating 6x beta2
I installed 6.x-2.0-beta2 over 6.x-1.2 and update php created an error:
user warning: Unknown column 'max_filesize' in 'field list' query: INSERT INTO xmlsitemap_sitemap (smid, context, updated, links, chunks, max_filesize) VALUES ('NXh.....random-code?.......ZwOM', 'a:0:{}', 0, 0, 0, 0) in /home/public_html/drupal-6/includes/common.inc on line 3538.
After deleting the old xmlsitemap file, a cron run and add the new xmlsitemap by hand, it looks like it works. There are no more errors after the update.
please create a link on the project page
Entitiy translation is now supported by https://drupal.org/project/node_translation_sitemap it would be nice to have a link on the project page :)
XML Parsing Error: junk after document element
Hi,
When I try to view my created xml sitemap, i get this error :
XML Parsing Error: junk after document element
Location: http://geriblogi.lt/sitemap.xml
Line Number 659, Column 1:^
I couldn't find any similar situation discussed on drupal forums and I have no idea how to fix it or where to even look for the error. Tried reinstaling and different versions of the module - didn't help. Any guidance would help a lot!
Thanks for looking!
Set correct language for url()
Patch gets the language from the $sitemap settings, and passes it a long to url(). This means that when cron is run we still grab the correct language, rather than the default language.
use the $_SERVER[NAME] in case of multiple domain name for the same site
Dear all,
I have a drupal7 installation which is accessible by 2 different domains :
www.mysite.com and/or www.othersite.com
both lead to the same content.
Trouble withe xmlsitemap :
I can access to the sitemap, using either www.mysite.com/sitemap.xml, either www.othersite.com/sitemap.xml
The problem is that these 2 sitemaps show the same links
www.mysite.com/node/1 (considering that "Default base URL" = www.mysite.com)
I would like that www.mysite.com/sitemap.xml show links such as
www.mysite.com/node/1
and www.othersite.com/sitemap.xml show links such as
www.othersite.com/node/1
According to what I understood (I may not understood correctly) of this module, that would need 2 modifications :
1/ no more parameter "Default base URL" (or different use of it)
2/ no cache, or different way of caching (based on $_SERVER[NAME] recognition)
Thanks for your feedbacks.
Download link is broken
Download link of dev version is broken I think.
XMLWriter::openUri(): Unable to resolve file path as returned from xmlsitemap_sitemap_get_file.
We have been having trouble getting the xmlsitemap to work in a WAMP setup. We were trying the latest beta version but it was hanging on cron so I tried the most recent dev version (as of yesterday).
I ran xmlsitemap with just one content type included to see if it would generate the sitemap. The cron no longer timed out, but I found errors like those below in the watchdog logs. The key one is the openUri error as all the other errors stem from that one.
I updated the code in xmlsitemap.xmlsitemap.inc to change:
$this->uri = xmlsitemap_sitemap_get_file($sitemap, $page);
to
$this->uri = $_SERVER['DOCUMENT_ROOT'].'/'.xmlsitemap_sitemap_get_file($sitemap, $page);
and then I no longer got the openUri error and the sitemap was generated properly.
Perhaps there is some system setting that needs to be set for the xmlwriter to be able to find the file properly? I do not normally develop on Windows but this site was put on Windows on the request of the client. Please let me know if you have any idea of how to update the server/settings so as to get the xmlwriter code to understand where the xmlsitemap files live.
Btw, the only post I found that may be related is: http://bugs.php.net/bug.php?id=49051
Thanks in advance for any help you may be able to provide!
Kristen
=====
Errors:
=====
XMLWriter::openUri(): Unable to resolve file path in C:\cv-svnroot\trunk\src\www-drupal\sites\all\modules\xmlsitemap\xmlsitemap.xmlsitemap.inc on line 37.
Could not open file sites/default/files/xmlsitemap/NXhscRe0440PFpI5dSznEVgmauL25KojD7u4e9aZwOM/1.xml for writing. in C:\cv-svnroot\trunk\src\www-drupal\sites\all\modules\xmlsitemap\xmlsitemap.xmlsitemap.inc
XMLWriter::setIndent(): Invalid or unitialized XMLWriter object in C:\cv-svnroot\trunk\src\www-drupal\sites\all\modules\xmlsitemap\xmlsitemap.xmlsitemap.inc
PDOException: SQLSTATE[42S02]: Base table or view not found: 1146 Table xmlsitemap_sitemap doesn't exist
When enabling the module, it comes up with the following 500 error:
PDOException: SQLSTATE[42S02]: Base table or view not found: 1146 Table 'xmlsitemap_sitemap' doesn't exist: SELECT xmlsitemap_sitemap.* FROM {xmlsitemap_sitemap} xmlsitemap_sitemap; Array ( ) in xmlsitemap_sitemap_load_multiple() (line 362 of sites\all\modules\xmlsitemap\xmlsitemap.module).
Table {xmlsitemap} doesn't exist
I use drush to enable the new xmlsitemap 2.x-dev after fully uninstalling 1.x and ensuring that the files and db tables are deleted... :
webmaster@neo001:/var/www/vhosts/versichern24.org$ dre xmlsitemap_menu xmlsitemap xmlsitemap_node xmlsitemap_engines
The following modules will be enabled: xmlsitemap_menu, xmlsitemap, xmlsitemap_node, xmlsitemap_engines
Do you really want to continue? (y/n): y
XML sitemap menu was enabled successfully. [ok]
XML sitemap was enabled successfully. [ok]
XML sitemap node was enabled successfully. [ok]
XML sitemap engines was enabled successfully. [ok]
user warning: Table 'dr_versichern24_org.v24xmlsitemap' [error]
doesn't exist
query: SELECT COUNT(*) FROM v24xmlsitemap WHERE status = 1 in
/var/www/vhosts/versichern24.org/sites/all/modules/xmlsitemap/xmlsitemap.module
on line 343.
An error occurred at function : drush_pm_enable [error]
---------------------------
You need to check if the db table xmlsitemap exists before quering it in the module file. Somehow on install it is not created or the .module file is referenced from the .install ... Sth is wrong ... Go on that 343 line and see.
Marking as critical cause extremely ugly and simple to fix IMHO.
Verified, logged - but still not submitting to Bing (Google OK)
Problem
I'm not sure where to begin troubleshooting this problem. My site's sitemap.xml has never been automatically submitted to Bing, despite this being configured and the site verified last July 15.
Even the db log seems to say that it is submitting successfully, yet Bing is still telling me that sitemap.xml has not been submitted since July 15.
Google is fine. It's reporting the last submission on Sept 12.
From the log:
Type xmlsitemap
Date Thursday, September 12, 2013 - 4:40pm
User Anonymous (not verified)
Location http://www.xxxxx.ca/portfolio/photo-gallery?field_gallery_image_product_tid[]=2
Referrer
Message Submitted the sitemap to http://www.google.com/webmasters/tools/ping?sitemap=http://xxxx.ca/sitemap.xml and received response 200.
Severity notice
Hostname 180.76.5.91
Operations
Type xmlsitemap
Date Thursday, September 12, 2013 - 4:40pm
User Anonymous (not verified)
Location http://www.xxxx.ca/portfolio/photo-gallery?field_gallery_image_product_tid[]=2
Referrer
Message Submitted the sitemap to http://www.bing.com/webmaster/ping.aspx?siteMap=http://xxxx.ca/sitemap.xml and received response 200.
Severity notice
Hostname 180.76.5.91
I have double-checked that the site is, indeed, verified.
Am I missing something obvious? Can someone give me a lead?
Thanks in advance! Our clients love the module.
nested indexing" errors in google webmaster
Getting "nested indexing" errors in google webmaster for my sitemaps.
Not sure exactly what that means.
Example:
This Sitemap Index is referenced by another Sitemap Index.
Sitemap: subdomain.sitename.com/sitemap.xml?page=2
URL: /sitemap.xml
URL: /sitemap.xml?page=2
-
Apr 24, 2013
Sitemap: subdomain.sitename.com/sitemap.xml?page=1
URL: /sitemap.xml
URL: /sitemap.xml?page=1
Any ideas?
Can't add XML sitemap
I deleted by accident my standard xml sitemap (thought it was bugged).
When I try to add a new one, I get the msg:
There are currently no XML sitemap contexts available.
Then I click on "save" and get the msg:
A sitemap with the same context already exists.
I tried clearing cashes, disabled and removed xmlsitemap module but nothing helped.
Is there anything else I can try?
Exclude a contact page (core contact module / site-wide block) from sitemap.xml
Hi-
I'm on Drupal 6.28, and I have a contact page set up in a site-wide block, set to just show on one page, /contact. (It's been so long I don't recall why I used this method, I think it's a consequence of using the D6 core contact module?)
I have purposely configured this contact page to be blocked from being crawled in my robots.txt (Disallow).
Google's webmaster tools gives me a warning: "Sitemap contains urls which are blocked by robots.txt." (Under crawl/sitemaps.)
Because it is not a "normal" node, the traditional method to remove a page from sitemap.xml is not available for this page. (i.e. there's no edit tab so I can't exclude it from sitemap.xml.)
Is there a way to explicitly exclude a page such as this from sitemap.xml?
Thanks!!
Dev links broken
Hi, neither the D6 nor D7 dev links work for either tar or zip. They both lead to 404 pages. Sure hate to install a version that's almost a year old if there's a more recent dev. Thanks!
i18n negociation per domain name
I use I18n and xmlsitemap and engin-module etc.
For internationalization, I use the negociation per domain name.
Default is French with http://www.musee-des-bisses.ch
Second language is German with http://www.suonenmuseum.ch/
I did 2 xml sitmaps
For French : http://www.musee-des-bisses.ch/sitemap.xml
For German : http://www.suonenmuseum.ch/sitemap.xml
Is it right until now ?
In admin/settings/xmlsitemap/engines, for field “Costum submission URLs”, for now I did not write anything. Do I need to write my second domain name here? Or is this field related to XML sitemap custom? I did dot enable this one.
As a result I have wrong urls in sitemaps (not good domain name) and in Google webmaster tools, I see just the French xml file.
Sitemap is not submitted to Yahoo
Hi there,
According to my Watchdog logs, xmlsitemap is submitting updated maps to Yahoo and Google on a regular basis, and has been for weeks. Sample log entry:
xmlsitemap 2008-08-05 17:09 Site map successfully submitted to Yahoo!.
However, Yahoo Site Explorer is telling me that my last sitemap submission was on 07/21/2008 (the day I began using the module) and that it was last processed a day later. So while the logs are telling me that it's being submitted, it seems there is a disconnect.
Any ideas? My site is authenticated, and I double-checked that xmlsitemap has the proper validation keys.
Looking for the best method to exclude nodes based on field settings
Hi,
I'm looking for the best method to exclude nodes based on field settings.
A simple example is if the page is unpublished the node does not display in the site map.
What I need is something similar but instead of the page needing to be unpublished it need to use a field value.
For example an even. If the event end date hasn't passed then the node needs to be in the sitemap but, if the event date has passed then the node needs to be excluded from the sitemap.
The date is field in the custom content type for the node.
What would be the best method to achieve this?
Can it be configured with rules of some other extension module?
Or should I build a module to achieve this?
If a module, where should I hook in? with hook_query_xmlsitemap_generate_alter() ?
thanks
AJAX HTTP error on rebuild
Got a bug when rebuilding my site sitemap, the site has around 17000 pages and about half way through we get this error appearing:
An AJAX HTTP error occurred. HTTP Result Code: 500 Debugging information follows. Path: /batch?id=406656&op=do StatusText: Service unavailable (with message) ResponseText:
Any ideas how to fix this?
We have installed the lastest version of the module but the error is still appearing.
pager broken when listing custom links
When viewing the list of custom links by clicking on the custom links tab the xmlsitemap_custom module tries to show all the custom links. This can be an issue if you have a large number of custom links as it may timeout.