简体   繁体   English

带有codeigniter的死亡白屏

[英]white screen of death with codeigniter

I have move a codeigniter script from a development server to production server (我已将 codeigniter 脚本从开发服务器移动到生产服务器(

same server, just different domains, so no PHP/database/apache config/ or related issues相同的服务器,只是不同的域,所以没有 PHP/database/apache config/ 或相关问题

) )

I have been able to get log in just one place /application/logs folder I have tried everything else for logs ( enabled php logs etc etc.) nothing seems to show me what is the issue, what's causing white screen)我已经能够在一个地方登录 /application/logs 文件夹我已经尝试了其他所有日志(启用的 php 日志等)似乎没有告诉我是什么问题,是什么导致了白屏)

DEBUG - 2016-06-16 15:47:48 --> Config Class Initialized

DEBUG - 2016-06-16 15:47:48 --> Hooks Class Initialized

DEBUG - 2016-06-16 15:47:48 --> Utf8 Class Initialized

DEBUG - 2016-06-16 15:47:48 --> UTF-8 Support Enabled

DEBUG - 2016-06-16 15:47:49 --> URI Class Initialized

DEBUG - 2016-06-16 15:47:49 --> Router Class Initialized

DEBUG - 2016-06-16 15:47:49 --> No URI present. Default controller set.

DEBUG - 2016-06-16 15:47:49 --> Output Class Initialized

DEBUG - 2016-06-16 15:47:49 --> Security Class Initialized

DEBUG - 2016-06-16 15:47:49 --> Input Class Initialized

DEBUG - 2016-06-16 15:47:49 --> Global POST and COOKIE data sanitized

DEBUG - 2016-06-16 15:47:49 --> Language Class Initialized

DEBUG - 2016-06-16 15:47:49 --> Loader Class Initialized

DEBUG - 2016-06-16 15:47:49 --> Helper loaded: url_helper

DEBUG - 2016-06-16 15:47:49 --> Helper loaded: file_helper

DEBUG - 2016-06-16 15:47:49 --> Database Driver Class Initialized

DEBUG - 2016-06-16 15:47:49 --> Session Class Initialized

If anyone has any idea, please let me know so far I have如果有人有任何想法,请让我知道到目前为止我有

Added development server in index.php Googled, and tried everything else for some error to show up, nothing worked till now.index.php添加了开发服务器谷歌搜索,并尝试了其他一切以显示一些错误,到目前为止没有任何效果。

I am kinda out of ideas for now.我现在有点想不通了。

Got some entries in server now, but they appear to be more of hack attempts than actual errors.现在在服务器中有一些条目,但它们似乎更多是黑客尝试而不是实际错误。

2016-06-17 03:05:04.050 [INFO] [124.253.119.242:14578] File not found [/home/miverali/public_html/domain.com/404.shtml] 2016-06-17 03:05:04.050 [INFO] [124.253.119.242:14578] 找不到文件 [/home/miverali/public_html/domain.com/404.shtml]

2016-06-17 03:05:04.050 [INFO] [124.253.119.242:14578] File not found [/home/miverali/public_html/domain.com/application/index.php] 2016-06-17 03:05:04.050 [INFO] [124.253.119.242:14578] 找不到文件 [/home/miverali/public_html/domain.com/application/index.php]

2016-06-17 02:59:32.621 [INFO] [178.63.13.15:27365] File not found [/home/miverali/public_html/domain.com/404.shtml] 2016-06-17 02:59:32.621 [INFO] [178.63.13.15:27365] 找不到文件 [/home/miverali/public_html/domain.com/404.shtml]

2016-06-17 02:59:32.621 [INFO] [178.63.13.15:27365] File not found [/home/miverali/public_html/domain.com/robots.txt] 2016-06-17 02:59:32.621 [INFO] [178.63.13.15:27365] 找不到文件 [/home/miverali/public_html/domain.com/robots.txt]

2016-06-17 02:55:47.575 [INFO] [5.9.73.227:50935] File not found [/home/miverali/public_html/domain.com/404.shtml] 2016-06-17 02:55:47.575 [INFO] [5.9.73.227:50935] 找不到文件 [/home/miverali/public_html/domain.com/404.shtml]

2016-06-17 02:55:47.575 [INFO] [5.9.73.227:50935] File not found [/home/miverali/public_html/domain.com/robots.txt] 2016-06-17 02:55:47.575 [INFO] [5.9.73.227:50935] 找不到文件 [/home/miverali/public_html/domain.com/robots.txt]

I have face this issue because of the DB Driver is not responding.由于数据库驱动程序没有响应,我遇到了这个问题。

go to application/config/database.php转到application/config/database.php


If codeigniter 3.0- ( less than 3.0)如果codeigniter 3.0- (小于 3.0)

$db['default']['dbdriver'] = ''; # Change to mysqli

If codeigniter 3.0+ ( greater than 3.0)如果codeigniter 3.0+ (大于 3.0)

'dbdriver' => '', #  Change to mysqli

Thought I'd reply to this as it came up top in the searches when I was looking for an answer...我以为我会回复这个,因为它在我寻找答案时在搜索中名列前茅......

I found the answer by looking in the console on Chrome when I got a white screen.当我看到白屏时,我通过查看 Chrome 上的控制台找到了答案。 There was just this error:只有这个错误:

Failed to load resource: net::ERR_CONTENT_DECODING_FAILED

The solution was to go to the config file ( /application/config/config.php ) and find $config['compress_output'] .解决方案是转到配置文件( /application/config/config.php )并找到$config['compress_output'] In my case this was set to TRUE - change to FALSE and you might be good to go...在我的情况下,这被设置为 TRUE - 更改为 FALSE,你可能会很高兴......

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

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