php mysql 白屏_apache+php+mysql的白屏问题
環境是apache2.2.22+php5.2.17+mysql5.5.28+ie8,系統用了一會(半天內),再訪問index.php就會出現白屏,apache的logs目錄的error.log沒有任何日志,重啟機器后(大部分重啟可以,也...
環境是apache2.2.22+php5.2.17+mysql5.5.28+ie8,系統用了一會(半天內),再訪問index.php就會出現白屏,apache的logs目錄的error.log沒有任何日志,重啟機器后(大部分重啟可以,也有一次重啟了也不行),正常,再用一會,又白屏。我在index.php 前面增加了
error_reporting(E_ALL);
ini_set('display_errors', '1');
ini_set('display_startup_errors', '1');
出現白屏后,日志為:
Notice: Trying to get property of non-object in D:\localhost\htdocs\intranet\index.php on line 32
Notice: Undefined variable: owl_lang in D:\localhost\htdocs\intranet\index.php on line 302
Notice: Trying to get property of non-object in D:\localhost\htdocs\intranet\index.php on line 302
補充:最開始沒有出現白屏,我增加一個分詞功能,require_once($default->owl_fs_root ."/lib_splitword_full.php"),界面刷新時,全顯示這個php文件內容,再刷新就白屏了,后來我屏蔽這個require_once后,還是會定時出現白屏。
我隱隱感覺代碼有問題,元芳,你怎么看。求助各位大俠了,如解決,必定重重有賞。Require加載的文件都是本地文件。
Index.php代碼前幾行:
ob_start();
if (bcheckLibExists(dirname(__FILE__)."/config/owl.php")) require_once(dirname(__FILE__)."/config/owl.php");
$out = ob_get_clean();
if (bcheckLibExists($default->owl_fs_root ."/lib/disp.lib.php")) require_once($default->owl_fs_root ."/lib/disp.lib.php");//這個就是第32行
展開
總結
以上是生活随笔為你收集整理的php mysql 白屏_apache+php+mysql的白屏问题的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: c 指定端口连接mysql_c++连接
- 下一篇: linux cmake编译源码,linu