PHP not displaying errors on debian

I have PHP installed on debian with apache web server. For some reason even with display_errors() turned on, error_reporting(E_ALL), and display_startup_errors() on, it still doesn't display errors. But if there is no error PHP works, otherwise I see only a blank white screen. The errors are getting logged in the error log and everything. On my windows setup I haven't had this problem

PHP不会在debian上显示错误

我有Apache安装在Apache Web服务器上的Debian。 由于某些原因,即使启用了display_errors(),error_reporting(E_ALL)和display_startup_errors(),它仍然不会显示错误。 但是如果PHP没有错误,否则我只看到一个空白的白屏。 错误记录在错误日志和所有内容中。 在我的Windows设置我没有这个问题,所以也许它是debian? 如果任何人有任何经验或提示,请让我知道。

fcgi) doesn't show or log errors

I've got a problem. There is Apache/2.2.16 (Debian) and PHP 5.3.3-7+squeeze8 with Suhosin-Patch (cgi-fcgi). ini_get_all() shows that display_errors is "On", same as log_errors but. When there's an error, php returns blank (white) page and nothing in log ;( error_reporting = E_ALL. Any ideas how can I fix that?

fcgi)不显示或记录错误

我有一个问题。 Apache / 2.2.16(Debian)和PHP 5.3.3-7 + squeeze8与Suhosin-Patch(cgi-fcgi)。 ini_get_all()显示display_errors是“On”,与log_errors相同。 当出现错误时,php返回空白(白色)页面并且没有记录;(error_reporting = E_ALL。任何想法如何解决?

Why does Code Igniter give me a white page?

Hey, not sure why CodeIgniter is giving me a blank page when I load a simple model. I'm breaking the code down, backwards, and I can't figure out what's breaking. Here's the controller: class Leads extends Controller { function Leads() { parent::Controller(); $this->load->scaffolding('leads'); } function index() { $data = array( 'title' => 'Lead Managem

为什么Code Igniter给我一个白页?

嘿,不知道为什么CodeIgniter给我一个空白页面,当我加载一个简单的模型。 我打破了代码,倒退了,我无法弄清楚有什么问题。 这里是控制器: class Leads extends Controller { function Leads() { parent::Controller(); $this->load->scaffolding('leads'); } function index() { $data = array( 'title' => 'Lead Management' ); $this->load->view('html_head', $data); $this-&g

PHP's white screen of death

I installed LAMP from scratch on Amazon EC2: Apache/2.4.7, PHP 5.5.9-1ubuntu4.17, mysql Ver 14.14 Distrib 5.5.49 I use prestashop (1.4.1.5) but when I run it I get a white screen. No error in the log or on screen. I tried to find the line where it breaks and found that if I do: if (!Language::getLanguage((int)$this->id_lang)) { $t = Configuration::get('PS_LANG_DEFAULT');

PHP的死亡白屏

我在Amazon EC2上从头开始安装LAMP:Apache / 2.4.7,PHP 5.5.9-1ubuntu4.17,mysql Ver 14.14 Distrib 5.5.49 我使用prestashop(1.4.1.5),但是当我运行它时,我得到一个白色的屏幕。 在日志或屏幕上没有错误。 我试图找到它断裂的地方,发现如果我这样做: if (!Language::getLanguage((int)$this->id_lang)) { $t = Configuration::get('PS_LANG_DEFAULT'); echo 1; $this->id_la

white screen of death with codeigniter

I have move a codeigniter script from a development server to production server ( same server, just different domains, so no PHP/database/apache config/ or related issues ) 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) DEBU

与codeigniter死亡的白色屏幕

我已经将开发服务器的代码字符脚本移动到生产服务器( 相同的服务器,只是不同的域,所以没有PHP /数据库/ Apache配置/或相关的问题 ) 我已经能够登录只有一个地方/应用程序/日志文件夹我已经尝试了所有其他日志(启用PHP日志等)没有什么似乎告诉我什么是问题,是什么导致白屏) DEBUG - 2016-06-16 15:47:48 --> Config Class Initialized DEBUG - 2016-06-16 15:47:48 --> Hooks Class Initialized DEBUG - 20

Laravel wsod (white screen of death) on godaddy hosting

I'm developing a laravel 5.1 application which is working absolutely fine on my localhost. But when I deploy it to GoDaddy's shared hosting, it gives a blank white page on opening the domain. I have followed this tutorial to upload to the server. http://www.nickmarriotti.com/blog/deploying-laravel-5-project-to-godaddy How can I resolve this error problem? Any help will be appreciat

在godaddy主机上的Laravel wsod(死亡白屏)

我正在开发一个laravel 5.1应用程序,它在我的本地主机上工作得非常好。 但是,当我将它部署到GoDaddy的共享主机时,它会在打开域时提供空白的白页。 我已经按照这个教程上传到服务器。 http://www.nickmarriotti.com/blog/deploying-laravel-5-project-to-godaddy 我该如何解决这个错误问题? 任何帮助将不胜感激。 谢谢 请检查文件权限。 一般来说,这个问题出现在文件权限不正确时。 最好打电话给GoDaddy客户服

Debugging Drupal's White Screen of Death?

I have a Drupal installation that previously worked perfectly on my localhost. However, now, after a formatted my computer, it just shows a blank screen (completely white). So my question is, how can I see where things are going wrong, if I can't even log into the sever? The only errors I can find are (taken from the Apache Error Logs): [Tue May 17 05:05:04 2011] [notice] Parent: child

调试Drupal的死亡白屏?

我有一个以前在我的本地主机上完美工作的Drupal安装。 但是,现在,在我的电脑格式化后,它只显示一个空白屏幕(完全白色)。 所以我的问题是,如果我甚至无法登录服务器,我怎么能看到事情出错了? 我能找到的唯一错误是(来自Apache错误日志): [Tue May 17 05:05:04 2011] [notice] Parent: child process exited with status 255 -- Restarting. [Tue May 17 05:05:04 2011] [notice] Digest: generating secret for d

No Errors with Errors turned ON

I have all errors turned on (error_reporting(-1)) in Drupal, but for some reason most errors do not come through in the logs or on screen. I can replicate the problem by simply changing a function name to something else, and I would expect to see a function doesn't exist error, but I just get a white screen. I have tried replicating this outside of the Drupal framework and I can't - so

错误打开时没有错误

我在Drupal中打开了所有错误(error_reporting(-1)),但由于某些原因,大多数错误不会在日志或屏幕上显示。 我可以通过简单地将函数名更改为其他内容来复制问题,并且我期望看到函数不存在错误,但是我只是得到一个白色屏幕。 我已经尝试在Drupal框架之外进行复制,而且我不能 - 所以它让我相信这不是我的PHP(Zend Server / Apache2 / PHP / Windows)的设置,而是在Drupal的某处。 任何想法的人? 我知道这可能会很晚

How do I debug a PHP WSOD?

Very occasionally I get a mystifying white-screen-of-death PHP error - nothing is displayed or logged, even with the following settings: ini_set("error_reporting",E_ALL); ini_set("display_errors",true); ini_set("log_errors",true); ini_set("display_startup_errors",true); ini_set("html_errors",false); ini_set("error_log","/var/log/php_error_log"); I read somewhere that output buffering or memory

我如何调试PHP WSOD?

偶尔我会遇到一个神秘的白屏PHP错误 - 即使使用以下设置,也不会显示或记录任何内容: ini_set("error_reporting",E_ALL); ini_set("display_errors",true); ini_set("log_errors",true); ini_set("display_startup_errors",true); ini_set("html_errors",false); ini_set("error_log","/var/log/php_error_log"); 我在某处读到输出缓冲或内存限制错误可能导致没有错误输出,但之前(例如)我找到了一个简单地由__autoload(

What is a Python equivalent of PHP's var

This question already has an answer here: Is there a built-in function to print all the current properties and values of an object? 22 answers To display a value nicely, you can use the pprint module. The easiest way to dump all variables with it is to do from pprint import pprint pprint(globals()) pprint(locals()) If you are running in CGI, a useful debugging feature is the cgitb module

什么是PHP的变种Python的等价物

这个问题在这里已经有了答案: 是否有一个内置函数来打印对象的所有当前属性和值? 22个答案 要很好地显示值,可以使用pprint模块。 转储所有变量的最简单方法就是做 from pprint import pprint pprint(globals()) pprint(locals()) 如果您正在CGI中运行,则一个有用的调试功能是cgitb模块,该模块将本地变量的值显示为回溯的一部分。 我认为与PHP的var_dump($foo, $bar)最相当的结合print和vars : print vars(foo),va