dqfwcj0030 2015-03-02 12:39
浏览 58
已采纳

XAMPP在codeigniter上加载空白屏幕

I'm using XAMPP as my localhost server testing, and I'm using the CodeIgniter PHP framework for my web app.

When I want to test my web application, XAMPP doesn't load properly. I've been waiting around a minute, and then what I get is just blank screen on the browser page.

I really need a local testing. But, oddly my CodeIgniter does work very well on my web hosting; no errors at all.

I'm using XAMPP v3.2.1, and my PHP version is 5.6.3.

Is there any custom configuration I should do?

And one more thing: this blank screen only appears when the model is trying to fetch data from database.

I have tested things like "Hello world" and it works fine. Any ideas?

  • 写回答

2条回答 默认 最新

  • doudun5009 2015-03-04 01:55
    关注

    Blank page is likely due to PHP errors with directives to display errors turned off. Check your php.ini for display_errors, html_errors and error_reporting directives. Should be:

    display_errors = On
    html_errors = On
    error_reporting = E_ALL & ~E_DEPRECATED & ~E_STRICT
    
    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?

悬赏问题

  • ¥15 HFSS 中的 H 场图与 MATLAB 中绘制的 B1 场 部分对应不上
  • ¥15 如何在scanpy上做差异基因和通路富集?
  • ¥20 关于#硬件工程#的问题,请各位专家解答!
  • ¥15 关于#matlab#的问题:期望的系统闭环传递函数为G(s)=wn^2/s^2+2¢wn+wn^2阻尼系数¢=0.707,使系统具有较小的超调量
  • ¥15 FLUENT如何实现在堆积颗粒的上表面加载高斯热源
  • ¥30 截图中的mathematics程序转换成matlab
  • ¥15 动力学代码报错,维度不匹配
  • ¥15 Power query添加列问题
  • ¥50 Kubernetes&Fission&Eleasticsearch
  • ¥15 報錯:Person is not mapped,如何解決?