473,225 Members | 1,277 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,225 software developers and data experts.

not getting error messages

Hi,

I'm not getting any error messages for my incorrect php code, and it's
making it very difficult to debug. Instead of an error, the page
displays part of the generated html (without the part that should have
been produced by the defective code), but no error.

I have already tried making the following settings in php.ini:

display_errors = On
error_reporting = E_ALL & ~E_NOTICE

To no avail. Is there anything else I can do. I'm working locally
doing development, and would like all error messages displayed without
exception.

Thanks for any info,
lurisia
Jul 17 '05 #1
4 5994
lurisia wrote:
Hi,

I'm not getting any error messages for my incorrect php code, and it's
making it very difficult to debug. Instead of an error, the page
displays part of the generated html (without the part that should have
been produced by the defective code), but no error.

I have already tried making the following settings in php.ini:

display_errors = On
error_reporting = E_ALL & ~E_NOTICE

To no avail. Is there anything else I can do. I'm working locally
doing development, and would like all error messages displayed without
exception.

Thanks for any info,
lurisia


Well for all errors

error_reporting = E_ALL

should be set

error_reporting = E_ALL & ~E_NOTICE

means all errors apart from notices.

~Cameron

Jul 17 '05 #2
Cameron,

Thanks for the info, though that didn't fix it. However, I did figure
out (just by scanning the code) what the error was which is not
getting reported. I left out the opening parentheses of an if
statement. Is it possible that php can't figure out what that error
is and therefore can't report? Seems unlikely, but I'm stumped as to
why that is coming up as an error. Any other ideas?

Thanks again,
Lurisia

On Sun, 01 Feb 2004 19:47:46 +0000, Cameron <fo*@bar.invalid> wrote:

Well for all errors

error_reporting = E_ALL

should be set

error_reporting = E_ALL & ~E_NOTICE

means all errors apart from notices.

~Cameron


Jul 17 '05 #3
On Sun, 01 Feb 2004 18:42:34 GMT, lurisia <he***@hello.com> wrote:
I'm not getting any error messages for my incorrect php code, and it's
making it very difficult to debug. Instead of an error, the page
displays part of the generated html (without the part that should have
been produced by the defective code), but no error.

I have already tried making the following settings in php.ini:

display_errors = On
error_reporting = E_ALL & ~E_NOTICE

To no avail. Is there anything else I can do. I'm working locally
doing development, and would like all error messages displayed without
exception.


Find what PHP thinks error_reporting and display_errors are set to, using
phpinfo(). It may not be reading the php.ini file you modified.

Also set error_reporting to E_ALL during development.

--
Andy Hassall <an**@andyh.co.uk> / Space: disk usage analysis tool
<http://www.andyh.co.uk> / <http://www.andyhsoftware.co.uk/space>
Jul 17 '05 #4
Andy,

That was it. I was changing a backup copy of php.ini rather than the
one in "C:\WINDOWS". Thank you very much.

Lurisia

On Sun, 01 Feb 2004 20:49:45 +0000, Andy Hassall <an**@andyh.co.uk>
wrote:
Find what PHP thinks error_reporting and display_errors are set to, using
phpinfo(). It may not be reading the php.ini file you modified.

Also set error_reporting to E_ALL during development.


Jul 17 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Seagull Manager | last post by:
Running Apache 1.3, PHP 4.3, and WinXP, configured acc. to instructions on apache manual and php manual (as far as I can see), but getting "internal server error" in browser... log says "Premature...
7
by: Martin | last post by:
I am a PHP newbie (just got my "Hello World" page working this morning). I'm doing some R&D work to see if PHP is viable for a situation I have. To accomplish what I want to do, I have to have the...
8
by: Rod | last post by:
I have been working with ASP.NET 1.1 for quite a while now. For some reason, opening some ASP.NET applications we wrote is producing the following error message: "The Web server reported...
0
by: Marc Scheuner | last post by:
Folks, I'd really like to use log4net for our error logging, but I'm having two problems: 1) For certain cases, I'd like to log error and messages to text files. I tried both the regular...
2
by: Marc Scheuner | last post by:
Folks, I'd really like to use log4net for our error logging, but I'm having two problems: 1) For certain cases, I'd like to log error and messages to text files. I tried both the regular...
1
by: sshankar | last post by:
Hi, New to Stored procedure. Basically just installed DB2 v8.1.0.36 Was trying to build a stored procedure.. It is giving following error.. Looks like some error related to configuration...
2
by: sesling | last post by:
Our Database stores event messages in a table called eventnotifications. The table has a message type column. There are two types of messages (alert or info). I have created a form that includes a...
18
by: Lance Wynn | last post by:
One of my server has been compromised from this virus, and I can't seem to block it out! I have shut down the infected server, but I need to figure out how to check for this, and stop it. The...
4
by: imaloner | last post by:
I am posting two threads because I have two different problems, but both have the same background information. Common Background Information: I am trying to rebuild code for a working,...
0
by: veera ravala | last post by:
ServiceNow is a powerful cloud-based platform that offers a wide range of services to help organizations manage their workflows, operations, and IT services more efficiently. At its core, ServiceNow...
0
by: jianzs | last post by:
Introduction Cloud-native applications are conventionally identified as those designed and nurtured on cloud infrastructure. Such applications, rooted in cloud technologies, skillfully benefit from...
0
by: mar23 | last post by:
Here's the situation. I have a form called frmDiceInventory with subform called subfrmDice. The subform's control source is linked to a query called qryDiceInventory. I've been trying to pick up the...
0
by: abbasky | last post by:
### Vandf component communication method one: data sharing ​ Vandf components can achieve data exchange through data sharing, state sharing, events, and other methods. Vandf's data exchange method...
2
by: jimatqsi | last post by:
The boss wants the word "CONFIDENTIAL" overlaying certain reports. He wants it large, slanted across the page, on every page, very light gray, outlined letters, not block letters. I thought Word Art...
0
by: fareedcanada | last post by:
Hello I am trying to split number on their count. suppose i have 121314151617 (12cnt) then number should be split like 12,13,14,15,16,17 and if 11314151617 (11cnt) then should be split like...
0
by: stefan129 | last post by:
Hey forum members, I'm exploring options for SSL certificates for multiple domains. Has anyone had experience with multi-domain SSL certificates? Any recommendations on reliable providers or specific...
1
by: davi5007 | last post by:
Hi, Basically, I am trying to automate a field named TraceabilityNo into a web page from an access form. I've got the serial held in the variable strSearchString. How can I get this into the...
0
by: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.