I'm seeing this error message:
One or more problems were detected with your XML sitemap configuration:
The directory private://xmlsitemap was not found or is not writable by the server. See http://drupal.org/node/34025 for more information.
Some observations:
- The error message disappears if I switch to public file downloads
- filesystem permissions on the files/xmlsitemap and private/files/xmlsitemap directories are identical
- as far as I can tell xmlsitemap is working fine, the status report indicates a recent last generated time, and the sitemap appears to be up to date
- the sitemap.xml is accessible via a web browser
I'm thinking there may be an error in the permissions checking rather than the permissions themselves?
Comments
Comment #1
Anonymous (not verified) commentedI don't understand? If IIRC the anonymous user can't create files in the Drupal files directory in private mode. However, it is only the anonymous user that accesses sitemap.xml triggering the creation of sitemap.xml.
The statements of "How secure permissions are a problem" are not returning to the files directory in particular. They are referring to the rest of the web system, allowing someone to replace index.php for instance. The files directory should not be able to execute any scripts since you should not be able to enter a URI that will find it.
I have never had luck with private file mode.
Comment #2
drbeaker commentedPosted in error.
Comment #3
Anonymous (not verified) commentedDoes the patch at #920062-16: XMLWriter::openUri(): Unable to resolve file path as returned from xmlsitemap_sitemap_get_file. help?
Comment #4
socialnicheguru commentedI get this error on the status and the xmlsitemap admin page
my file system is private.
how can this module be used in this case?
One or more problems were detected with your XML sitemap configuration:
The following directories were not found or are not writable by the server. See http://drupal.org/node/34025 for more information.
private://xmlsitemap/NXhscRe0440PFpI5dSznEVgmauL25KojD7u4e9aZwOM
The XML cached files are out of date and need to be regenerated. You can run cron manually to regenerate the sitemap files.
Is there anyway to enable public filesystem just for this module?