I have installed, uninstalled and reinstalled the XML Sitemap module and it still goes to a 404 Error page. I can not even access the files with the long link.
It works on my development site on the same server but not on the live site.
I have dumped my browser cache, the site cache, rebuilt the sitemap. I have been through every post here pertaining to 404 errors or missing pages. Any help would be appreciated.
Maybe I am not uninstalling correctly:
Disabled the modules
Uninstalled the modules
Removed any mention of it in the variables table
Dumped the cache
Did I miss anything?
Issue fork xmlsitemap-1917770
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 #1
esquareddesign commentedI get an error if I try to access the XML file directly from the browser using this link:
http://www.tranpak.com/sites/default/files/xmlsitemap/NXhscRe0440PFpI5dS...
Uncaught TypeError: Cannot call method 'appendChild' of undefined
Comment #2
dave reidSomething with your server is interferring with the request and not allowing it to proceed to Drupal. For example, http://www.tranpak.com/?q=sitemap.xml gets through just fine. I would check your .htaccess rules for something amiss.
The error you are seeing is because the stylesheet http://www.tranpak.com/sitemap.xsl also fails to load for the same reason.
Comment #3
Anonymous (not verified) commentedDo you have the correct permissions on the files directory? The httpd server needs write access to the directories.
Comment #4
esquareddesign commentedI have checked the permissions on the file directory and yes they are correct. The file is there I just can not access it via the link. If I download the file in the files directory the site map is there but if I even click on the link give above there is no information on the page.
Comment #5
Anonymous (not verified) commentedDo you have a sitemap.xml file in the DocumentRoot?
Comment #6
esquareddesign commentedGot it! Was the .htaccess file. Thanks.
Comment #7
Anonymous (not verified) commentedComment #8
carajito commented#6
@esquareddesign
What did you change on the .htaccess file???
Comment #9
joknjokn commentedI have the same issue. What did you change in the htaccess?
Comment #10
vadym.kononenko commentedI have the same issue.
Debugging it a little bit.
file in site 'files' directory exists and I can see it in browser by looooong URL. :) (I think it is possible acces it throught custom rewrite rules in .htacess)
File: xmlsitemap.module
function xmlsitemap_sitemap_load_by_context(array $context = NULL) {
...
1) input parameter $context is empty
2) xmlsitemap_get_current_context() return
$context: Array
(
[language] => uk
)
3) xmlsitemap_sitemap_get_context_hash($context) return T43qaxwUQWS5cOCpwG2tGLGOF5UzykA0K-mCFL6oRhs
4) Dump of my DB table 'xmlsitemap_sitemap':
INSERT INTO `xmlsitemap_sitemap` (`smid`, `context`, `updated`, `links`, `chunks`, `max_filesize`) VALUES
('NXhscRe0440PFpI5dSznEVgmauL25KojD7u4e9aZwOM', 'a:0:{}', 1364901224, 1085, 1, 79175);
5) query: "$smid = db_query_range("SELECT smid FROM {xmlsitemap_sitemap} WHERE smid = :hash", 0, 1, array(':hash' => $hash))->fetchField();" return an empty result
6) xmlsitemap_sitemap_load($smid); return empty string
and
6) Drupal return 404 page