douwuying4709 2014-04-09 19:00
浏览 21

Silverstripe管理页面未来

I'm kinda new to silverstripe, had everything working perfect on my localserver, migrated a remote server, things worked fine at the first glance. The next day, I found can't access the admin page though I have been accessing it just the day before. When I type http://www.mydomain.com/admin i get to the homepage of my site with the following url

http://www.mydomain.com/Security/login?BackURL=%2Fadmin%2Fpages

I have looked into all posts online and kinda got lost since there is no error in the page or any indication what could have possible went wrong overnight.

Please advise!

Thanks,

  • 写回答

2条回答 默认 最新

  • duandazhen7306 2014-04-09 21:00
    关注

    The page redirects to http://www.mydomain.com/Security/login?BackURL=%2Fadmin%2Fpages because you have been logged out and need to log in again.

    If you do not see the log in form on this page it may be because you have removed $Form from your page template.

    Find your Layout/Page.ss template. It may be located in themes/[your-theme]/templates/Layout/Page.ss.

    Check if you have $Form in your template. If not, add it after $Content.

    Edit

    The jquery.mobile-1.2.0.min.js you are loading is blocking your log in form. What you can do is not load jquery mobile for the security pages. Here is a simple if statement you can wrap around your script include that will load it for every page except the Security pages:

    <% if $ID > 0 %>
        <script src="https://s3.amazonaws.com/codiqa-cdn/mobile/1.2.0/jquery.mobile-1.2.0.min.js"></script>
    <% end_if %>
    

    Otherwise what you could do is only load jquery mobile for mobile devices and not for desktop devices. This should do the same thing.

    评论

报告相同问题?

悬赏问题

  • ¥20 模型在y分布之外的数据上预测能力不好如何解决
  • ¥15 processing提取音乐节奏
  • ¥15 gg加速器加速游戏时,提示不是x86架构
  • ¥15 python按要求编写程序
  • ¥15 Python输入字符串转化为列表排序具体见图,严格按照输入
  • ¥20 XP系统在重新启动后进不去桌面,一直黑屏。
  • ¥15 opencv图像处理,需要四个处理结果图
  • ¥15 无线移动边缘计算系统中的系统模型
  • ¥15 深度学习中的画图问题
  • ¥15 java报错:使用mybatis plus查询一个只返回一条数据的sql,却报错返回了1000多条