1. <tfoot id='NJERj'></tfoot>
    • <bdo id='NJERj'></bdo><ul id='NJERj'></ul>

    <small id='NJERj'></small><noframes id='NJERj'>

    <i id='NJERj'><tr id='NJERj'><dt id='NJERj'><q id='NJERj'><span id='NJERj'><b id='NJERj'><form id='NJERj'><ins id='NJERj'></ins><ul id='NJERj'></ul><sub id='NJERj'></sub></form><legend id='NJERj'></legend><bdo id='NJERj'><pre id='NJERj'><center id='NJERj'></center></pre></bdo></b><th id='NJERj'></th></span></q></dt></tr></i><div id='NJERj'><tfoot id='NJERj'></tfoot><dl id='NJERj'><fieldset id='NJERj'></fieldset></dl></div>
    <legend id='NJERj'><style id='NJERj'><dir id='NJERj'><q id='NJERj'></q></dir></style></legend>

    1. 白屏死机!

      时间:2023-09-21
        <i id='gZcSz'><tr id='gZcSz'><dt id='gZcSz'><q id='gZcSz'><span id='gZcSz'><b id='gZcSz'><form id='gZcSz'><ins id='gZcSz'></ins><ul id='gZcSz'></ul><sub id='gZcSz'></sub></form><legend id='gZcSz'></legend><bdo id='gZcSz'><pre id='gZcSz'><center id='gZcSz'></center></pre></bdo></b><th id='gZcSz'></th></span></q></dt></tr></i><div id='gZcSz'><tfoot id='gZcSz'></tfoot><dl id='gZcSz'><fieldset id='gZcSz'></fieldset></dl></div>
        <legend id='gZcSz'><style id='gZcSz'><dir id='gZcSz'><q id='gZcSz'></q></dir></style></legend>
          <tbody id='gZcSz'></tbody>

            1. <small id='gZcSz'></small><noframes id='gZcSz'>

              • <bdo id='gZcSz'></bdo><ul id='gZcSz'></ul>

                <tfoot id='gZcSz'></tfoot>
                本文介绍了白屏死机!的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

                问题描述

                在调试安装到新开发环境中的 codeigniter 应用程序后,当我看到白屏没有更多可用内容时,我开始感到害怕.我已经能够解决导致此问题的每一个错误,但它认真对待了太长时间.

                After debugging a codeigniter app that were installed into a new development environment, I have started to freak out when seeing white screens with nothing more available. I have been able to solve each and every one of the errors that have caused this, but it have taken seriously way too long time.

                PHP error_reporting(E_ALL) &display_errors", 1 也设置好了.我什至安装了 Xdebug 以希望获得更多输出,但没有.我的日志设置也有效,但没有写入日志.

                PHP error_reporting(E_ALL) & display_errors", 1 is set as well. I even installed Xdebug in hope of getting more output, but no. My logging settings are also working, but nothing is written to the log.

                有没有办法打印出一些信息而不是完整的白屏?它肯定会缩短我花在解决导致此问题的最终错误上的时间?

                Is there a way to get something informative printed out instead of a complete white screen? It would certainly shorten my time spent on solving the eventual errors that causes this?

                非常感谢!

                参考:为什么 Code Igniter 给我一个白页?

                推荐答案

                我发现,自从我提出问题以来,似乎没有什么可以确保总是用 PHP 输出错误,这似乎在这里抛出白屏在那里.无论 PHP 的 ini 设置如何.

                I've found out, since the time of my question, that nothing seems to ensure that errors are always outputted with PHP, which seems to throw white screens here and there. Regardless of PHP's ini-settings.

                我发现最好的解决方法是使用以下行来确保将错误记录放入应用程序易于访问和监控的文件中:

                I've found out that the best workaround however is to use the following line to ensure that error logging is put into a file easily accessed and monitoredby the application:

                ini_set('error_log', MYPATH .'logs/errorlog.log'); 
                

                据我测试,当出现白屏时 - 它也会记录到此错误日志中.似乎是了解出现问题时会发生什么的最简单方法.

                As far as I've tested it, when white screens appear - it also gets logged into this errorlog. Seems to be the easiest way to know what happens when things go wrong.

                这篇关于白屏死机!的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!

                上一篇:如何从致命错误“已用完允许的内存大小"中 下一篇:PHP 自定义错误页面

                相关文章

                最新文章

                    <legend id='Yczab'><style id='Yczab'><dir id='Yczab'><q id='Yczab'></q></dir></style></legend>
                  1. <i id='Yczab'><tr id='Yczab'><dt id='Yczab'><q id='Yczab'><span id='Yczab'><b id='Yczab'><form id='Yczab'><ins id='Yczab'></ins><ul id='Yczab'></ul><sub id='Yczab'></sub></form><legend id='Yczab'></legend><bdo id='Yczab'><pre id='Yczab'><center id='Yczab'></center></pre></bdo></b><th id='Yczab'></th></span></q></dt></tr></i><div id='Yczab'><tfoot id='Yczab'></tfoot><dl id='Yczab'><fieldset id='Yczab'></fieldset></dl></div>

                      <bdo id='Yczab'></bdo><ul id='Yczab'></ul>

                  2. <tfoot id='Yczab'></tfoot>

                    <small id='Yczab'></small><noframes id='Yczab'>