Posted by esquareddesign on February 15, 2013 at 12:19am
8 followers
Jump to:
| Project: | XML sitemap |
| Version: | 7.x-2.0-rc2 |
| Component: | xmlsitemap.module |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed (fixed) |
Issue Summary
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?
Comments
#1
I 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
#2
Something 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.
#3
Do you have the correct permissions on the files directory? The httpd server needs write access to the directories.
#4
I 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.
#5
Do you have a sitemap.xml file in the DocumentRoot?
#6
Got it! Was the .htaccess file. Thanks.
#7
#8
#6
@esquareddesign
What did you change on the .htaccess file???
#9
I have the same issue. What did you change in the htaccess?
#10
I 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
#11
Automatically closed -- issue fixed for 2 weeks with no activity.