error-reporting

PHP not displaying errors - Internal Server Error (500)

和自甴很熟 提交于 2019-12-04 15:57:51
问题 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 I see is HTTP Error 500 (Internal Server Error): An unexpected condition was encountered while the server was attempting to fulfil the request. I have checked my /etc/php5/apache2/php.ini file and as far as I can tell error reporting should be set up. The contents of the file (regarding errors) are: ;

Php not reporting any errors on IIS7

百般思念 提交于 2019-12-04 09:53:25
I am developing a PHP application using our XAMPP setup as a test server. Once the app is ready to deploy, I have to upload it to the client's server, The problem is the client's server is running IIS 7, and every time there is a PHP error it just displays a blank page... Now, my app has error_reporting(E_ALL) already set, and I do not have access to the php.ini file (don't ask why!)... and I have tried every combination of parameters for error_reporting() found here: http://www.php.net/manual/en/errorfunc.configuration.php#ini.error-reporting Can anyone point me towards another way of getting

Retrieving ADO errors using Delphi

心已入冬 提交于 2019-12-04 08:15:20
I'm using Delphi 2007 with ADO to access a SQL Server 2008 database. A stored procedure on the database prevalidates the input and if the validation fails it returns an error result set (containing custom error info). Using SQL Server Management Studio, when I run the stored procedure, I get the custom error result set in one tab and the native error message in another. Back in my Delphi app, when I open the stored procedure, I can access the custom error result set. However, the Errors object on the ADO connection does not contain the native error. How do I access the Errors collection object

header() error not shown in php

£可爱£侵袭症+ 提交于 2019-12-04 06:22:22
问题 I wrote a PHP program, I use session_start() and header() functions, I know I should use this functions before I sending anything to client. it's ok, but for test I send a test message to client with echo "test"; before using header(), but I didn't get any error and header function work without any problem ! In previous versions of PHP at this time I will got a message like : Warning: Cannot modify header information - headers already sent by (output started at /some/file.php:22) in /some

Error reporting when sending emails with delayed_job

对着背影说爱祢 提交于 2019-12-04 03:23:39
What's the proper way to get error reports, when using a tool like AirBrake or ExceptionNotifier from mailing delayed jobs? I tried to creating my own delayed job class, but the mail object created by Mailer.welcome() (or similar) is not serialized correctly. I also tried adding an error(job, exception) method to the PerformableMailer and PerformableMethod classes, but I got more errors generally related to serializing I believe. I tried both psych and sych for the serialization. Updated Solution Overall the solution is quite simple. If you have are doing delayed_job on an Object (like MyClass

Enable errors in browser when parsing PHP-files

筅森魡賤 提交于 2019-12-03 23:04:17
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 file through a web-browser and an error occurred. With the default installation of MAMP it seems that this feature is disabled, whenever I hit an error I can't see the cause of it, I can't even see a single line informing me that an error occurred. Not until I start to debug the code in a debugger I can see where the error occurred. Any idea how error reporting can be turned on? I tried: error

YUI CustomEvent no errors being reported

这一生的挚爱 提交于 2019-12-03 21:42:07
Does anyone know how to get the below to report a javascript error? (any browser) <head> <title></title> <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/yui/2.6.0/build/yahoo-dom-event/yahoo-dom-event.js"> </script> <script type="text/javascript"> ObjWithEvent = { testEvent: new YAHOO.util.CustomEvent("testEvent") }; ObjSubscriber = { handleTestEvent: function(){ alert('the next line will not show up in the error console'); not_a_valid_function_bro(); } }; ObjWithEvent.testEvent.subscribe(ObjSubscriber.handleTestEvent); ObjWithEvent.testEvent.fire(); </script> </head>

Disable strict standards in PHP 5.3.8

梦想与她 提交于 2019-12-03 19:30:31
I am using strict standards option in PHP but I want to disable it because Joomla doesn't like it and I have to use Joomla on my localhost. In response to another question on this site, this solution was given: E_ALL & ~E_DEPRECATED & ~E_STRICT but this didn't work for me. I think it only works for PHP 5.4 while I am using 5.3.8. Can anyone tell me what I should use? I am currently using error_reporting(E_ALL & ~E_NOTICE) . Also I am using ini_set('display_errors') but there are still errors shown that are related to strict standards. So how can I disable strict standard errors? I have the

E_NOTICE ?== E_DEBUG, avoiding isset() and @ with more sophisticated error_handler

人盡茶涼 提交于 2019-12-03 12:10:23
问题 Which better ways exist to avoid an abundance of isset() in the application logic, and retain the ability to see debug messages (E_NOTICE) when required? Presumption first: E_NOTICE is not an error, it's a misnomer and should actually be E_DEBUG. However while this is true for unset variables (PHP is still a scripting language), some file system functions etc. throw them too. Hence it's desirable to develop with E_NOTICEs on. Yet not all debug notices are useful, which is why it's a common

Exception reporting from a WPF Application

烈酒焚心 提交于 2019-12-03 11:34:12
问题 So lets say I happen to have an unhandled exception in my application or it crashes for some reason. 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 the background, which only job is to listen for an abnormal exit of the main application and then show the 'report' dialog where the user could choose to email me the output of the error. Not really sure how to implement this, or if