重新打开浏览器后,我无法访问 SilverStripe 中的管理面板

发布于 2024-12-15 22:08:20 字数 968 浏览 4 评论 0原文

我对 SilverStripe CMS...和浏览器有一个奇怪的问题。可能是一些我无法解决的愚蠢问题。

我在我的 Linux 机器上的 Apache 服务器上运行 SS。安装很好,我可以做一切。但是当我关闭浏览器然后重新打开它时,我唯一能看到的就是网站本身。当我尝试访问 /admin 页面时,系统会要求我输入密码,然后我应该被重定向到 CMS 管理面板页面。我被重定向了,但我只能看到“正在加载...”消息和 SS 徽标。没有更多的事情发生。

重现它的简单过程如下:

  1. 安装 SS。
  2. 关闭浏览器。
  3. 重新打开它。
  4. 尝试访问/admin。

真正有趣的是,我检查了在浏览器中看不到的页面(CMS 管理面板)的源代码:它似乎没问题。 HTML 就在那里。但该页面未正确呈现。

我还检查了我的日志。一切似乎都很好。没有服务器错误(没有 404 或 5xx 之类的错误)。

在我关闭浏览器之前(SS 安装后),一切正常。我能够访问管理面板。但关闭浏览器后,我无法再访问管理面板 - 我只能看到“正在加载...”消息和 SS 徽标。它发生在本地和远程。

如果重要的话,我同时使用 Chromium 和 FF。他们的行为都是一样的。


更新:

问题已解决。解决方案很简单:只需将以下行添加到 mysite/_config.php 文件中。

要求::set_combined_files_enabled(false);

(来源:http://www.silverstripe.org/general-questions/show/ 14861#post296241

谢谢你的评论,schellmax - 我怎么会这么愚蠢,忘记检查控制台???

I have a strange problem with SilverStripe CMS... and browsers. Probably some stupid issue that I just can't fix.

I'm running SS on an Apache server, on my Linux box. Installation is fine, and I'm able to do everything. But when I close my browser, and then reopen it, the only thing I can see is the site itself. When I try to access the /admin page, I'm being asked for the password, and then I should be redirected to the CMS admin panel page. I am redirected, but all I can see is the "Loading..." message and the SS logo. Nothing more happens.

A simple procedure to reproduce it is as follows:

  1. Install the SS.
  2. Close the browser.
  3. Reopen it.
  4. Try to reach /admin.

What's really interesting, I checked the source code for the page (the CMS admin panel) I can't see in the browser: it seems to be fine. HTML is there. The page is not rendered properly, though.

I also checked my logs. Everything seems to be fine. No server errors (nothing like 404, or 5xx).

Before I close my browser (right after the SS installation), everything works fine. I'm able to access the admin panel. But after closing the browser, I can no longer access the admin panel - all I can see is the "Loading..." message and the SS logo. And it happens both locally and remotely.

I use both Chromium and FF, if it's of any importance. And they both behave the same.


Update:

The problem is solved. The solution was simple: just add the following line to the mysite/_config.php file.

Requirements::set_combined_files_enabled(false);

(Source: http://www.silverstripe.org/general-questions/show/14861#post296241)

Thanks for your remark, schellmax - how could I be so stupid and forget to check the console???

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

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

发布评论

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

评论(1

长途伴 2024-12-22 22:08:20

我也遇到过类似的问题 - 您需要在 assets 文件夹上设置适当的权限 (777)。否则,某些 JS 无法正确组合并加载到管理界面中。

I've had similar issues - you need to set the proper permissions (777) on the assets folder. Otherwise some JS isn't properly combined and loaded in the admin interface.

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