PHP Error Logs

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

PHP Error Logs

Postby jalim » 26. January 2018 01:07

Hi

I use xampp-win32-5.6.32

I cannot get the php error log file to show all errors.
I want to see PHP Strict Standards, PHP Notices etc...

I have checked all permissions for folder and files they are all ok.
in php.ini file i have.

Code: Select all
error_reporting = E_ALL
display_errors = On
display_startup_errors = On
log_errors = On
log_errors_max_len = 1024
ignore_repeated_errors = Off
ignore_repeated_source = Off
track_errors = On
html_errors = On
error_log="X:\xampp-5-6-32\php\logs\php_error_log"



What else I need to do to show all errors like below ... these errors are logged on a live Linux server.
In my windows 10 desktop I don't get any PHP notices or PHP Strict Standards errors whilst using the exact same scripts.



Code: Select all
[20-Jan-2018 14:10:08 UTC] PHP Notice:  Use of undefined constant SAPI_NAME - assumed 'SAPI_NAME' in /home/aaaaaaa/public_html/zzzzz.com/vb382/includes/class_core.php on line 963

[20-Jan-2018 14:10:08 UTC] PHP Notice:  Use of undefined constant SAPI_NAME - assumed 'SAPI_NAME' in /home/aaaaaaa/public_html/zzzzz.com/vb382/includes/class_core.php on line 963

[20-Jan-2018 14:10:08 UTC] PHP Notice:  Undefined variable: errfile in /home/aaaaaaa/public_html/zzzzz.com/vb382/includes/functions_log_error.php on line 244

[20-Jan-2018 14:13:02 UTC] PHP Strict Standards:  Declaration of vB_Group_Collection_Discussion::collection_sql() should be compatible with vB_Group_Collection_Message::collection_sql($force_refresh = false) in /home/aaaaaaa/public_html/zzzzz.com/vb382/includes/class_groupmessage.php on line 1779

[20-Jan-2018 14:13:02 UTC] PHP Strict Standards:  Declaration of vB_Group_Bit_Factory::create() should be compatible with & vB_Bit_Factory::create($item) in /home/aaaaaaa/public_html/zzzzz.com/vb382/includes/class_groupmessage.php on line 2798

[20-Jan-2018 14:17:24 UTC] PHP Strict Standards:  Declaration of vB_Group_Collection_Discussion::collection_sql() should be compatible with vB_Group_Collection_Message::collection_sql($force_refresh = false) in /home/aaaaaaa/public_html/zzzzz.com/vb382/includes/class_groupmessage.php on line 1779

[20-Jan-2018 14:17:24 UTC] PHP Strict Standards:  Declaration of vB_Group_Bit_Factory::create() should be compatible with & vB_Bit_Factory::create($item) in /home/aaaaaaa/public_html/zzzzz.com/vb382/includes/class_groupmessage.php on line 2798

[20-Jan-2018 14:21:59 UTC] PHP Fatal error:  require_once(): Failed opening required '/home/aaaaaaa/public_html/zzzzz.com/vb382/includes/class_groupmessage.php' (include_path='.:/opt/alt/php55/usr/share/pear:/opt/alt/php55/usr/share/php') in /home/aaaaaaa/public_html/zzzzz.com/vb382/usercp.php on line 793
jalim
 
Posts: 1
Joined: 26. January 2018 00:47
XAMPP version: 5.6.32
Operating System: Win 10 Pro

Re: PHP Error Logs

Postby Nobbie » 26. January 2018 10:54

The drive letter X: may be unknown to PHP? If you are running Apache (which runs PHP in the same scope) as service, network drive letters are unknown, as these are known only to the logged in User (but Windows Services are executed by System user). Put the error log onto C: drive (and to a folder with sufficient rights due to Windows UAC).

Or: you are using different PHP releases?! Maybe these warnings/notices dont exist in Windows version?
Nobbie
 
Posts: 13165
Joined: 09. March 2008 13:04


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 160 guests