简体   繁体   English

php apache centos 6.5中的空白页

[英]blank page in php apache centos 6.5

I have a webpage in PHP. 我有一个PHP网页。 When I click on a link, blank page is beeing displayed. 当我单击链接时,将显示空白页面。 No error is there. 没有错误。 I already started php errors. 我已经开始php错误。

I am using CentOS 6.5, Zend Server CE 5.5, PHP 5.3, Mysql 我正在使用CentOS 6.5,Zend Server CE 5.5,PHP 5.3,Mysql

空白页

phpinfo details phpinfo详细信息

Error log in /var/log/httpd/access_log shows this error / var / log / httpd / access_log中的错误日志显示此错误

::1 - - [24/Jul/2015:11:20:37 +0530] "GET /AssetTrak/admin/labels.php
HTTP/1.1" 500 - "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36
(KHTML, like Gecko) Chrome/31.0.1650.63 Safari/537.36"

Add ini_set('error_reporting', E_ALL); 添加ini_set('error_reporting', E_ALL); to the top of the PHP script that is showing a blank page. 到显示空白页面的PHP脚本的顶部。 The blank page is caused by "White Screen of Death" which is when a page errors out but error reporting has been disabled in PHP. 空白页是由“死亡白屏”引起的,这是指页面出错但PHP中已禁用错误报告的情况。 re-enabling it by using the above snippet will have PHP output the exact script error to you in your browser. 通过使用上述代码片段重新启用它,PHP将在您的浏览器中向您输出确切的脚本错误。

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

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