Drupal - 迁移到新服务器

发布于 2024-08-17 22:40:22 字数 396 浏览 4 评论 0原文

我有一个相当新的 drupal 安装,有几百个节点。我将其从开发服务器移至生产服务器。

但是,当我打开主页时,它说找不到页面。检查完所有链接后,似乎我无法访问我的任何内容。它们存在于节点数据库以及内容类型表中。我验证了我的所有 URL 别名也都已到位。在大多数情况下,我仍然可以从我创建的视图中看到所有信息,但是当单击查看完整节点视图时,我得到“找不到页面”。

在导入之前我确实修剪了所有缓存表以减少数据库的大小。以前有人有过这些症状吗?也许有一个特定的表,当被截断时,会导致这个问题?

**更新:再次导入我的修订表,然后很快 - 尽管我的内容回来了,但我仍然遇到某种权限问题。当匿名访问者访问该网站时,他们被告知他们无权查看内容类型“页面”等项目,但在用户权限中,一切看起来都很好(在迁移之前肯定很好)也许是另一个已删除的表?

I have a fairly new drupal installation with a few hundred nodes. I moved it from the development server to the production server.

However, when I opened my homepage, it says page not found. After checking all my links, it seems that I can't get to any of my content. They exist in the node database, as well as the content type tables. I verified that all my URL aliases are also in place. In most cases, I can still see all the information from views I had created, but when clicking to see the full node view, I get the "Page not found".

I did trim all my cache tables before importing to reduce the size of the DB. Has anyone had these symptoms before? Perhaps there is a particular table, that when truncated, will lead to this problem?

**Update: Imported my revision table again, and presto - Although my content came back, I'm still having a sort of permissions problem. When an anonymous visitor comes to the site, they are told they don't have permission to see items like content type "Page", yet in user permissions, everything looks good (definitely good before migration) perhaps another deleted table?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

空城仅有旧梦在 2024-08-24 22:40:22

是的,节点内容信息位于修订表中,而不是节点表中。您确实需要修订表。我认为您可以再次重新迁移,这次无需截断修订。

Yes, node content information is in the revisions table, not the node table. You REALLY need the revisions table. I assume you can just remigrate again, this time without truncating revisions.

风为裳 2024-08-24 22:40:22

如果表格损坏,它不应显示“找不到页面”。可能会显示sql错误,表或列不存在。
尝试在 http://drupal.org/node/201875 中进行故障排除(您将看到找不到页面链接在中间)。
也可能您在节点主题中使用了一些重定向,请检查这一点。

ps 无论如何,node保存touch 2个表:node和node_revisions

if table is broken, it shouldn't show "Page not found". It may show that sql error that table or column doesn't exists.
Try troubleshoot in http://drupal.org/node/201875 (you will see Page Not Found links in middle).
Also may be you use some redirecting in your node theming, check this.

p.s. In any case, node saving touch 2 tables: node and node_revisions

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文