Missing entries in php error log

Problems with the Windows version of XAMPP, questions, comments, and anything related.

Missing entries in php error log

Postby DurkO » 11. June 2009 21:10

In 'xampp/apache/bin/php.ini' I have error_reporting = E_ALL | E_STRICT

When I make a mistake e.g. forgetting the 'ticks' round a constant in an array, I should get a notice in my errorlog like: [Tue Jun 10 21:51:22 2009] [error] PHP Notice: Use of undefined constant SERVER_NAME - assumed 'SERVER_NAME' in /var/www/websites/www.domain.tld/subdirectory/filenaam.php on line 30, but such notices are missing in the logs on my local machine who runs XAMPP. The only way to see them is on the logs of my production site which is not XAMPP and that is too late in my view.

Anybody knows what is going wrong?
DurkO
 
Posts: 5
Joined: 31. January 2009 21:23

Re: Missing entries in php error log

Postby Wiedmann » 11. June 2009 21:16

Anybody knows what is going wrong?

Logging to a file is not enabled (as default) in XAMPP.
Wiedmann
AF Moderator
 
Posts: 17106
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany

Re: Missing entries in php error log

Postby DurkO » 11. June 2009 22:00

I am not sure if I understand that correctly, but I have enabled all logging and I receive errors in my logs (when I make them), only I do not receive those "mild" notify's like I showed before
DurkO
 
Posts: 5
Joined: 31. January 2009 21:23

Re: Missing entries in php error log

Postby Wiedmann » 11. June 2009 22:06

I have enabled all logging

How?
Wiedmann
AF Moderator
 
Posts: 17106
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany

Re: Missing entries in php error log

Postby DurkO » 12. June 2009 11:45

Just set log_errors = On in php.ini and for the apache logs do the same in httpd.config.

My problem is solved by editing the php.ini in xampp/php also. This is odd because in the past I always had to do the file in xampp/apache/bin and none of my friends has to do this.
DurkO
 
Posts: 5
Joined: 31. January 2009 21:23


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 26 guests