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

Command icon 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

esquareddesign’s picture

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

dave reid’s picture

Status: Active » Postponed (maintainer needs more info)

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.

Anonymous’s picture

Do you have the correct permissions on the files directory? The httpd server needs write access to the directories.

esquareddesign’s picture

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.

Anonymous’s picture

Do you have a sitemap.xml file in the DocumentRoot?

esquareddesign’s picture

Got it! Was the .htaccess file. Thanks.

Anonymous’s picture

Status: Postponed (maintainer needs more info) » Fixed
carajito’s picture

#6
@esquareddesign
What did you change on the .htaccess file???

joknjokn’s picture

I have the same issue. What did you change in the htaccess?

vadym.kononenko’s picture

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

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

Samvada_Jain_M made their first commit to this issue’s fork.