简体   繁体   English

Silverstripe | 内部服务器错误

[英]Silverstripe | Internal Server Error

Silverstripe is running on my since a few weeks. 几个星期以来,Silverstripe一直在运行。 Recently, I get an Internal Server Error message when I try to access the admin area. 最近,当我尝试访问管理区域时,收到内部服务器错误消息。

Having a look in the server's error logs, I discovered following hint: 查看服务器的错误日志后,发现以下提示:

[Mon Apr 05 12:15:26 2010] [error] [client ...] Premature end of script headers: main.php [2010年4月5日星期一12:15:26] [错误] [客户端...]脚本头的过早结尾:main.php

I already was refered to this site: What does the 'premature end of script headers' error mean? 我已经被引荐到此站点: “脚本头过早结束”错误是什么意思?

But does anybody had this problem in connection with Silverstripe? 但是有人在Silverstripe中遇到这个问题吗? Would make it much easier to restrict the scope from where the error is caused. 将更容易限制引起错误的范围。

Regards, Benedikt 此致Benedikt

Well... it seems to work now. 好吧...看来现在可以了。

Reason: SilverStripe required a seperate 'Security.ss'-template for the login area. 原因: SilverStripe需要用于登录区域的单独的“ Security.ss”模板。 (I wonder, why it didn't was in need of that, before!) (我想知道,为什么以前不需要它!)

Unfortunatelly the web server displayed a very general 'Internal Server Error'-Message. 不幸的是,Web服务器显示了一个非常普通的“内部服务器错误”消息。 When i ran the site on another server , SilverStripe was able to display error messages to me. 我在另一台服务器上运行该站点时 ,SilverStripe能够向我显示错误消息。

insert 插入

Director::set_environment_type("dev");

in your _config.php to see more error messages. 在_config.php中查看更多错误消息。

dont use this in live mode, only dev mode. 不要在实时模式下使用此功能,而只能在开发模式下使用。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM