Drupal:未生成 xmlsitemap 文件
我从 Drupal 站点上最流行的使用统计中选择了 XMLSiteMap 模块, 所以我认为该模块没有太多问题。 但地图文件不存在。
我已将此模块安装在 Windows 计算机上的 drupal/sites/default/modules 中。 我已经在管理菜单中激活了 XMLSiteMap 的所有子模块。 根据文档,我还手动运行 cron.php 在 drupal/sites/default/files 中创建 sitemap.xml - 但即使在第二次重新安装时它也不存在。 如何强制创建 sitemap.xml?
(也尝试过使用和不使用干净的 URL - 仍然没有帮助)。
另外,这个模块是否有任何好的可靠替代方案?
I have chosen XMLSiteMap module from the most popular usage statistics on Drupal site,
so I assume the module is not too buggy. But the map file is absent.
I've installed this module on my Windows machine into drupal/sites/default/modules.
I've activated all the submodules of XMLSiteMap in admin menu.
Per docs, I've also run cron.php manually to create sitemap.xml in drupal/sites/default/files - but it's just not present there even when second re-install.
How can I force to create sitemap.xml?
(also tried with and w/o clean URLs - still no help).
Also, if there any good reliable alternative for this module?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(5)
你确定你安装正确了吗? 请检查状态报告(Drupal 5 中的 admin/logs/status,Drupal 6 中的 admin/reports/status)以确保一切正确。
例如,您可能尚未正确设置站点/默认/文件的权限。
Are you sure you've installed it properly? Please check the Status report (admin/logs/status in Drupal 5, admin/reports/status in Drupal 6) to ensure that you've got everything right.
It's possible that you haven't set the permissions of sites/default/files properly yet for example.
我不确定这是否会对您有帮助,但如果您正在寻找实际创建的 sitemap.xml 文件而不是在浏览器中导航到它,我不相信该文件是由该模块创建的。 我认为该模块创建了一个菜单回调来创建站点地图文件,因此对 sitemap.xml 的请求由 Drupal 的菜单系统处理,而不是创建实际的文件。 然而,sites/default/files/xmlsitemap 中会有一个缓存版本。
如果这对所提出的问题过于简单化,我们深表歉意。
我自己对该模块的可靠性没有遇到任何问题。
I'm not sure if this will help you, but if you are looking for an actual created sitemap.xml file rather than navigating to it in the browser I don't believe one is created by the module. I think the module creates a menu callback to create the sitemap file, so a request for sitemap.xml is handled by Drupal's menu system, rather than creating an actual file. There will however be a cached version in sites/default/files/xmlsitemap.
Apologies if this is an oversimplification of the question asked.
I have not had any problems with the reliability of the module myself.
还要确保您安装了最新版本,它昨天刚刚发布:
http://drupal.org/project/ xmlsitemap
另外,请参阅此问题,似乎与您的问题有关:
http://drupal.org/node /458546
Also make sure you have the latest version installed, it just came out yesterday:
http://drupal.org/project/xmlsitemap
Also, see this issue, seems related to your problem:
http://drupal.org/node/458546
我可能会建议尝试 6.x-2.x 分支,我一直在重写该分支,以解决 6.x-1.x 分支的所有烦人的错误和体系结构问题。 它目前还不完整,但目前适用于节点和菜单项。 分类术语和用户配置文件将很快添加。
您可以在项目页面上找到它的链接。 抱歉,我无法链接,因为我是新用户。 :)
I'd probably recommend trying the 6.x-2.x branch which I've been rewriting to kind of solve all the annoying bugs and architectural problems of the 6.x-1.x branch. It's currently incomplete, but it works for nodes and menu items currently. Taxonomy terms and user profiles will be added soon.
You can find the link to it on the project page. Sorry I can't link since I'm a new user. :)
运行 CRON 对我有用:
/admin/reports/status/run-cron
Running the CRON worked for me:
/admin/reports/status/run-cron