duanpiao6679 2018-10-06 12:05
浏览 264

如何在codeigniter中显示错误而不是HTTP ERROR 500

My CI project doesnt show any error and it is only show HTTP ERROR 500.
I have searched already and done these:

define('ENVIRONMENT', 'development');

    case 'development':
    error_reporting(E_ALL);
    ini_set('display_errors', 'On');
    ini_set("error_reporting","E_ALL & ~E_NOTICE & ~E_STRICT");
    break;

Also tested

ini_set('display_errors', 1);

But nothing changed.
Any help would be apriciated.

  • 写回答

1条回答 默认 最新

  • dongzhi5587 2018-10-06 14:31
    关注

    I have encountered this problem before. this problem occurs because I deleted the errors folder inapplication / view codeigniter.

    the solution is only to download the folder back on the codeigniter web

    评论

报告相同问题?

悬赏问题

  • ¥20 有关区间dp的问题求解
  • ¥15 多电路系统共用电源的串扰问题
  • ¥15 slam rangenet++配置
  • ¥15 有没有研究水声通信方面的帮我改俩matlab代码
  • ¥15 对于相关问题的求解与代码
  • ¥15 ubuntu子系统密码忘记
  • ¥15 信号傅里叶变换在matlab上遇到的小问题请求帮助
  • ¥15 保护模式-系统加载-段寄存器
  • ¥15 电脑桌面设定一个区域禁止鼠标操作
  • ¥15 求NPF226060磁芯的详细资料