Drupal 将用户(也是 uid 1)重定向到“找不到页面”对于未发布的节点。无法查看、无法编辑

发布于 2024-09-07 01:12:54 字数 180 浏览 1 评论 0原文

我的 Drupal 站点之一出现一些奇怪的行为。通常,当我以管理员身份(uid 1)登录时,我始终可以查看和编辑节点,即使它们未发布(有意义)。然而,在我的一个网站上,即使我以 uid 1 身份登录,我总是会被重定向到“找不到页面”页面(404 重定向)。有什么想法吗?这是一个 Drupal 5 站点 (awww)。

-托马斯

I'm having some strange behaviour on one of my Drupal sites. Usually when I'm logged in as admin (uid 1) I can always see and edit nodes even if they are unpublished (makes sense). However on one of my sites I always get redirected to the "page not found"-page (404 redirect) even when i'm logged in as uid 1. Any ideas?? This is a Drupal 5 site (awww).

-Thomas

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

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

发布评论

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

评论(2

Saygoodbye 2024-09-14 01:12:54

由于用户 1 也会发生这种情况,因此这不可能是权限问题,因为 uid 1 会覆盖所有访问控制。

因此,很可能您安装了一些模块,当用户尝试访问未发布的节点时,该模块会重定向到 404 页面,而不是返回访问被拒绝的信息。

免责声明,这只是一个猜测。

Since this happens for user 1 as well, it can't be a permission matter, as uid 1 overrides all access controls.

So most likely you have some module installed, that redirect to the 404 page, when users try to access unpublished nodes, instead of returning access denied.

Disclaimer, this is just a guess.

も让我眼熟你 2024-09-14 01:12:54

检查 admin/build 中 URL 别名或 URL 重定向下是否有错误的 Pathredirect 或 Pathauto 别名。这通常是我在使用节点时有时会发生的情况。

您的 .htaccess 文件也可能有问题。尝试关闭干净的 URL,看看会发生什么。

Check for a errant Pathredirect or Pathauto alias under URL Alias or URL Redirects in admin/build. This generally is what happens to me sometimes when working with nodes.

Your .htaccess file may have a problem too. Try turning off clean URLs and see what happens.

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