473,405 Members | 2,338 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,405 software developers and data experts.

PHP does not report errors!

I have no idea how this happened, but PHP (5.1.2) on my dev server
stopped telling me about errors. There's nothing in the server log
either.
I redownloaded PHP and used php.ini-recommended (only setting
display_errors = On). After restarting, it still returned blank pages
rather than error messages.
So I deleted php.ini and restarted the server, and suddenly error
reporting came alive!

Where have I buggered up?

Mar 9 '06 #1
5 3172
th**********@gmail.com wrote:
I have no idea how this happened, but PHP (5.1.2) on my dev server
stopped telling me about errors. There's nothing in the server log
either.
I redownloaded PHP and used php.ini-recommended (only setting
display_errors = On). After restarting, it still returned blank pages
rather than error messages.
So I deleted php.ini and restarted the server, and suddenly error
reporting came alive!

Where have I buggered up?

Odd -- the exact same thing happened to me on 5.1.1 today. When did it
start for you? I smell a conspiracy! :p

I guess I'll just delete it rather than fixing my .ini file.

--
Carl Vondrick
www.carlsoft.net
usenet [at] carlsoft [dot] net
Mar 10 '06 #2
Just a guess but, you may have more than one copy of php.ini. If you
have one in WinNT for example, and one in your php folder, the one in
WinNT gets used IIRC. But in any case, a change to the PATH search
order could have switched them. When you delete one of them, PHP is
forced to use the other. Did you install any new software that might
have changed or reset the PATH?

Mar 10 '06 #3
This must've started a few days ago, as I haven't seen any error
messages in a good while. What did you do?

Deleting the file is no solution though. I need the extensions, and who
knows what the default values are..

Mar 10 '06 #4
Already checked. There is no other php.ini on the drive, not in the
Windows dir or any of the system dirs. I even did a search on php.ini,
but all it found was php.ini-dist and php.ini-recommended.
The path variable remains unchanged - it still points to the PHP dir.
And it obviously works too, put a php.ini in the PHP dir, and it'll
read it alright.

As I wrote in my original post, even if I take the original file -
php.ini-recommended - rename it php.ini, turn on display_errors and
restart the server, it still won't honour my humble request.

Mar 10 '06 #5
th**********@gmail.com wrote:
This must've started a few days ago, as I haven't seen any error
messages in a good while. What did you do?

Deleting the file is no solution though. I need the extensions, and who
knows what the default values are..

Hmm.. I simply did this:

# mv php.ini php.ini~
-- restart server --
# mv php.ini~ php.ini
-- restart version --

And it worked! Odd.

--
Carl Vondrick
www.carlsoft.net
usenet [at] carlsoft [dot] net
Mar 10 '06 #6

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

Similar topics

2
by: steve | last post by:
Hi, I have researched but have not found a good solution to this problem. I am importing large amounts of data (over 50 Meg) into a new mysql db that I set up. I use >mysql dbname <...
8
by: stemo76 | last post by:
I have created a report with subform/subreports. I can see all the data on the screen but when I try to print it to a printer or adobe distiller I get 'The Microsoft Jet Database engine could not...
10
by: bright116 | last post by:
It's strange! I wrote such fragment: char messageBody = ""; printf("message body: %s\n", messageBody); strcat(messageBody, "Signal= "); printf("message body: %s\n", messageBody);...
2
by: Stephen Miller | last post by:
Can the CustomValidator be used to simply report unexpected errors, without requiring Client/Server validation? To explain, say you had a simple text box and button that did a Full-text Search of a...
2
by: TD | last post by:
I've read several posts here that say global variables are reset whenever an unhandled error occurs. I want to use a custom form property instead of a global variable to store a boolean value. My...
3
by: jasocke2 | last post by:
What I have, I think is quite a simple question, I have looked around for quite a while but can't seem to find the solution. What I have is a database with 1 table, the fields that I am...
4
by: Phil Stanton | last post by:
I am opening a report (in Preview) from a menu system I use the following code if there is no data in a report Private Sub Report_NoData(Cancel As Integer) MsgBox "There are no errors in...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.