error-reporting Questions
7
Solved
I am following good programming practices and I am logging the PHP errors to file instead of displaying it to user. I use set_error_handler() for that.
Now the problem. For example, I have somewhe...
Apoplexy asked 11/9, 2011 at 19:46
18
Solved
I have a Ubuntu server running Apache2 with PHP 5. In the php.ini I set display_errors = On and error_reporting = E_ALL | E_STRICT, but PHP is still not displaying error messages. I'm also using Ap...
Hephzipah asked 25/6, 2011 at 20:46
8
Solved
I am running nginx with PHP-FPM. My nginx configuration for handling php files looks like this:
location ~ \.php$ {
set $php_root /home/me/www;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index ...
Pimento asked 9/2, 2010 at 5:57
4
Solved
I've set up a fresh install of Ubuntu Server 12.04 LTS on Amazon AWS with *Apache2/MySQL/PHP5. When I run a PHP script and it encounters an error I don't see any error reporting from PHP, all...
Eponym asked 31/7, 2012 at 21:9
27
Solved
I have checked my PHP ini file (php.ini) and display_errors is set and also error reporting is E_ALL. I have restarted my Apache webserver.
I have even put these lines at the top of my script, and...
Zacharyzacherie asked 27/6, 2009 at 19:9
3
Solved
i am doing a stuff in php and not it is debug mode. So i am us
error_reporting(E_ALL);
but When i try to access any character of string it gives me error due to the error reporting.
$sentence =...
Lodger asked 4/2, 2012 at 5:31
3
Solved
How to send specific information in Sentry ? There is Events in documentation but how to use them properly and where exactly to use them (EX: Send user email with the error) ?
Sentry provided this ...
Robet asked 1/11, 2021 at 12:33
11
Solved
I have some PHP code. When I run it, a warning message appears.
How can I remove/suppress/ignore these warning messages?
Chadbourne asked 1/1, 2010 at 0:32
2
Solved
For a project I am working on, one of the things we're implementing is something that we have code for in some of my teams older ASP.NET and MVC projects - an Application_Error exception catcher th...
Winther asked 27/2, 2015 at 15:34
1
How to protect an API endpoint for reporting client-side JS errors against spam (if even necessary)?
I am developing a web application with Spring Boot and a React.js SPA, but my question is not specific to those libraries/frameworks, as i assume reporting client-side JS errors to the server (for ...
Ingrate asked 19/3, 2019 at 11:56
4
Solved
During an unhandled exception is there some way for me to capture the output and show an error report dialog when the application crashes?
What I'm thinking is having a small program running in th...
Climactic asked 18/5, 2011 at 0:11
4
Solved
E_ALL equals 8191 (0001 1111 1111 1111)
E_STRICT equals 2048 (0000 1000 0000 0000)
Using bitwise OR to combine them:
1 1111 1111 1111
1000 0000 0000
We get the exact same value as the origin...
Hamel asked 28/10, 2009 at 16:4
3
Solved
Could anyone explain differences between error_reporting(E_ALL); and error_reporting(E_ALL & ~E_NOTICE); ?
I noticed that when I change from E_ALL to E_ALL & ~E_NOTICE, an error which I wa...
Shabbygenteel asked 5/11, 2009 at 7:17
6
Solved
I can't seem to disable error reporting in PHP - I have tried everything but "Notice" errors are still displayed.
My php.ini has
display_errors = Off;
error_reporting = 0;
My .htaccess has
php...
Vulvitis asked 5/6, 2013 at 8:51
2
Solved
I was reading Microsoft document on ExceptionDispatchInfo Class and I came across a word "Watson information", I don't know what it is and I can't find any information about it on the internet. Man...
Perusse asked 16/7, 2018 at 12:1
2
Solved
What is best practice when setting error reporting on development and production applications? At the moment I have the following:
// development
error_reporting(E_ALL);
// production
ini_set('di...
Abreact asked 30/5, 2018 at 10:50
4
Solved
I recently changed to a MacBook and now use the MAMP-stack for development locally.
In my earlier development environment I always could see informative error-reports when I tried to access a PHP ...
Julian asked 23/5, 2011 at 10:14
11
Solved
I have several older applications that throw a lot of "xyz is undefined" and "undefined offset" messages when running on the E_NOTICE error level, because the existence of variables is not explicit...
Pendulum asked 25/12, 2009 at 4:55
10
Solved
I'm trying to create an app on Laravel 4 beta but I can't debug it because it doesn't show any error, display_errors is on, error_reporting is E_ALL and debug => true (config/app.php). When I tr...
Lexicography asked 28/1, 2013 at 18:14
8
Solved
What are some reasons why PHP would force errors to show, no matter what you tell it to disable?
I have tried
error_reporting(0);
ini_set('display_errors', 0);
with no luck.
Mufti asked 16/9, 2008 at 23:21
4
I am trying to get my install of PHP under IIS to display errors, but I'm having no luck at all. I tried
error_reporting(E_ALL);
in the script, and nothing shows up, just a blank screen.
I trie...
Afterheat asked 31/7, 2009 at 13:44
1
I have a client-side JavaScript application and I would like to report errors and exceptions to Stackdriver Error Reporting.
Confession asked 24/11, 2016 at 13:45
6
Solved
I know about error_reporting(0);, and ini_set('display_errors', false);, but there is a notice appearing in wordpress:
Notice: Array to string conversion in /var/www/vhosts/treethink.net/subdoma...
Sokil asked 20/8, 2009 at 19:41
3
Solved
So I have xampp and the thing won't report anything at all... I even forced an error and it didn't do anything...
I used
error_reporting(-1);
ini_set( 'display_errors', 1 );
according to this d...
Klansman asked 4/10, 2012 at 22:36
2
I've got an ANTLR 4 grammar and built a lexer and parser from that. Now I'm trying to instantiate that parser in such a way that it will parse until it encounters an error. If it encounters an erro...
Gaberones asked 10/3, 2016 at 18:50
1 Next >
© 2022 - 2024 — McMap. All rights reserved.