Can , the Php errors, be connect to switch off the pc ?
Posted by: giovannino (151.95.77.---)
Date: January 01, 2020 05:13PM

Hi all,

I got some logs errors and I'm not able to understand what happens on stand alone PC with Wamp and PHP application running all day long 7 x 7.
Unfortunately I'm not a technician and it's hard to me understand what the issue is.
For me php errors are connected to anomalous switch off from users. Maybe data time it's very close to that event.
Can you please have a look to logs and tell me if the error is on application or due to anomalous switch off ?
Many thanks

[01-Jan-2020 12:29:00 UTC] PHP Notice: Undefined variable: _SERVER in C:\wamp64\www\Eos_Tat_Meter\checkRecordsGreen\trigger_check_timestamp_tubes_green.php on line 19

[01-Jan-2020 12:29:00 UTC] PHP Stack trace:

[01-Jan-2020 12:29:00 UTC] PHP 1. {main}() C:\wamp64\www\Eos_Tat_Meter\checkRecordsGreen\trigger_check_timestamp_tubes_green.php:0

[01-Jan-2020 12:29:00 UTC] PHP Notice: Undefined variable: _SERVER in C:\wamp64\www\Eos_Tat_Meter\checkRecordsGreen\trigger_check_timestamp_tubes_green.php on line 22

[01-Jan-2020 12:29:00 UTC] PHP Stack trace:

[01-Jan-2020 12:29:00 UTC] PHP 1. {main}() C:\wamp64\www\Eos_Tat_Meter\checkRecordsGreen\trigger_check_timestamp_tubes_green.php:0

[01-Jan-2020 12:29:00 UTC] PHP Notice: Undefined variable: _SERVER in C:\wamp64\www\Eos_Tat_Meter\_lib\lib\php\nm_ctrl_app_name.php on line 13

[01-Jan-2020 12:29:00 UTC] PHP Stack trace:

[01-Jan-2020 12:29:00 UTC] PHP 1. {main}() C:\wamp64\www\Eos_Tat_Meter\checkRecordsGreen\trigger_check_timestamp_tubes_green.php:0

[01-Jan-2020 12:29:00 UTC] PHP 2. SC_dir_app_ini() C:\wamp64\www\Eos_Tat_Meter\checkRecordsGreen\trigger_check_timestamp_tubes_green.php:1861

[01-Jan-2020 12:29:00 UTC] PHP Notice: Undefined variable: _SERVER in C:\wamp64\www\Eos_Tat_Meter\checkRecordsGreen\trigger_check_timestamp_tubes_green.php on line 1930

[01-Jan-2020 12:29:00 UTC] PHP Stack trace:

[01-Jan-2020 12:29:00 UTC] PHP 1. {main}() C:\wamp64\www\Eos_Tat_Meter\checkRecordsGreen\trigger_check_timestamp_tubes_green.php:0

[01-Jan-2020 12:29:00 UTC] PHP Notice: Undefined variable: _SERVER in C:\wamp64\www\Eos_Tat_Meter\checkRecordsGreen\trigger_check_timestamp_tubes_green.php on line 1933

[01-Jan-2020 12:29:00 UTC] PHP Stack trace:

[01-Jan-2020 12:29:00 UTC] PHP 1. {main}() C:\wamp64\www\Eos_Tat_Meter\checkRecordsGreen\trigger_check_timestamp_tubes_green.php:0

[01-Jan-2020 12:29:01 UTC] PHP Notice: Undefined variable: _SERVER in C:\wamp64\www\Eos_Tat_Meter\checkRecordsGreen\trigger_check_timestamp_tubes_green.php on line 19

[01-Jan-2020 12:29:01 UTC] PHP Stack trace:

[01-Jan-2020 12:29:01 UTC] PHP 1. {main}() C:\wamp64\www\Eos_Tat_Meter\checkRecordsGreen\trigger_check_timestamp_tubes_green.php:0

[01-Jan-2020 12:29:01 UTC] PHP Notice: Undefined variable: _SERVER in C:\wamp64\www\Eos_Tat_Meter\checkRecordsGreen\trigger_check_timestamp_tubes_green.php on line 22

[01-Jan-2020 12:29:01 UTC] PHP Stack trace:

[01-Jan-2020 12:29:01 UTC] PHP 1. {main}() C:\wamp64\www\Eos_Tat_Meter\checkRecordsGreen\trigger_check_timestamp_tubes_green.php:0

[01-Jan-2020 12:29:01 UTC] PHP Notice: Undefined variable: _SERVER in C:\wamp64\www\Eos_Tat_Meter\_lib\lib\php\nm_ctrl_app_name.php on line 13

[01-Jan-2020 12:29:01 UTC] PHP Stack trace:

[01-Jan-2020 12:29:01 UTC] PHP 1. {main}() C:\wamp64\www\Eos_Tat_Meter\checkRecordsGreen\trigger_check_timestamp_tubes_green.php:0

[01-Jan-2020 12:29:01 UTC] PHP 2. SC_dir_app_ini() C:\wamp64\www\Eos_Tat_Meter\checkRecordsGreen\trigger_check_timestamp_tubes_green.php:1861

[01-Jan-2020 12:29:01 UTC] PHP Notice: Undefined variable: _SERVER in C:\wamp64\www\Eos_Tat_Meter\checkRecordsGreen\trigger_check_timestamp_tubes_green.php on line 1930

[01-Jan-2020 12:29:01 UTC] PHP Stack trace:

[01-Jan-2020 12:29:01 UTC] PHP 1. {main}() C:\wamp64\www\Eos_Tat_Meter\checkRecordsGreen\trigger_check_timestamp_tubes_green.php:0

[01-Jan-2020 12:29:01 UTC] PHP Notice: Undefined variable: _SERVER in C:\wamp64\www\Eos_Tat_Meter\checkRecordsGreen\trigger_check_timestamp_tubes_green.php on line 1933

[01-Jan-2020 12:29:01 UTC] PHP Stack trace:

[01-Jan-2020 12:29:01 UTC] PHP 1. {main}() C:\wamp64\www\Eos_Tat_Meter\checkRecordsGreen\trigger_check_timestamp_tubes_green.php:0

[01-Jan-2020 12:29:01 UTC] PHP Notice: Undefined variable: _SERVER in C:\wamp64\www\Eos_Tat_Meter\checkRecords\trigger_check_timestamp_tubes.php on line 19

[01-Jan-2020 12:29:01 UTC] PHP Stack trace:

[01-Jan-2020 12:29:01 UTC] PHP 1. {main}() C:\wamp64\www\Eos_Tat_Meter\checkRecords\trigger_check_timestamp_tubes.php:0

[01-Jan-2020 12:29:01 UTC] PHP Notice: Undefined variable: _SERVER in C:\wamp64\www\Eos_Tat_Meter\checkRecords\trigger_check_timestamp_tubes.php on line 22

[01-Jan-2020 12:29:01 UTC] PHP Stack trace:

[01-Jan-2020 12:29:01 UTC] PHP 1. {main}() C:\wamp64\www\Eos_Tat_Meter\checkRecords\trigger_check_timestamp_tubes.php:0

[01-Jan-2020 12:29:01 UTC] PHP Notice: Undefined variable: _SERVER in C:\wamp64\www\Eos_Tat_Meter\_lib\lib\php\nm_ctrl_app_name.php on line 13

[01-Jan-2020 12:29:01 UTC] PHP Stack trace:

[01-Jan-2020 12:29:01 UTC] PHP 1. {main}() C:\wamp64\www\Eos_Tat_Meter\checkRecords\trigger_check_timestamp_tubes.php:0

[01-Jan-2020 12:29:01 UTC] PHP 2. SC_dir_app_ini() C:\wamp64\www\Eos_Tat_Meter\checkRecords\trigger_check_timestamp_tubes.php:1893

[01-Jan-2020 12:29:01 UTC] PHP Notice: Undefined variable: _SERVER in C:\wamp64\www\Eos_Tat_Meter\checkRecords\trigger_check_timestamp_tubes.php on line 1962

[01-Jan-2020 12:29:01 UTC] PHP Stack trace:

[01-Jan-2020 12:29:01 UTC] PHP 1. {main}() C:\wamp64\www\Eos_Tat_Meter\checkRecords\trigger_check_timestamp_tubes.php:0

[01-Jan-2020 12:29:01 UTC] PHP Notice: Undefined variable: _SERVER in C:\wamp64\www\Eos_Tat_Meter\checkRecords\trigger_check_timestamp_tubes.php on line 1965

[01-Jan-2020 12:29:01 UTC] PHP Stack trace:

[01-Jan-2020 12:29:01 UTC] PHP 1. {main}() C:\wamp64\www\Eos_Tat_Meter\checkRecords\trigger_check_timestamp_tubes.php:0


APACHE LOG ERROR

[Tue Dec 31 13:35:21.214559 2019] [mpm_winnt:notice] [pid 2528:tid 260] AH00422: Parent: Received shutdown signal -- Shutting down the server.
[Tue Dec 31 13:35:23.242598 2019] [mpm_winnt:notice] [pid 3484:tid 312] AH00364: Child: All worker threads have exited.
[Tue Dec 31 13:35:23.289399 2019] [mpm_winnt:notice] [pid 2528:tid 260] AH00430: Parent: Child process 3484 exited successfully.
[Tue Dec 31 13:35:24.287818 2019] [mpm_winnt:notice] [pid 3800:tid 396] AH00455: Apache/2.4.33 (Win64) PHP/7.0.29 configured -- resuming normal operations
[Tue Dec 31 13:35:24.287818 2019] [mpm_winnt:notice] [pid 3800:tid 396] AH00456: Apache Lounge VC15 Server built: Mar 18 2018 12:58:47
[Tue Dec 31 13:35:24.287818 2019] [core:notice] [pid 3800:tid 396] AH00094: Command line: 'c:\\wamp64\\bin\\apache\\apache2.4.33\\bin\\httpd.exe -d C:/wamp64/bin/apache/apache2.4.33'
[Tue Dec 31 13:35:24.287818 2019] [mpm_winnt:notice] [pid 3800:tid 396] AH00418: Parent: Created child process 6040
[Tue Dec 31 13:35:24.584223 2019] [mpm_winnt:notice] [pid 6040:tid 312] AH00354: Child: Starting 64 worker threads.

[Wed Jan 01 13:29:38.022070 2020] [mpm_winnt:notice] [pid 3800:tid 396] AH00428: Parent: child process 6040 exited with status 255 -- Restarting.
[Wed Jan 01 13:29:40.705339 2020] [mpm_winnt:notice] [pid 3800:tid 396] AH00455: Apache/2.4.33 (Win64) PHP/7.0.29 configured -- resuming normal operations
[Wed Jan 01 13:29:40.705339 2020] [mpm_winnt:notice] [pid 3800:tid 396] AH00456: Apache Lounge VC15 Server built: Mar 18 2018 12:58:47
[Wed Jan 01 13:29:40.705339 2020] [core:notice] [pid 3800:tid 396] AH00094: Command line: 'c:\\wamp64\\bin\\apache\\apache2.4.33\\bin\\httpd.exe -d C:/wamp64/bin/apache/apache2.4.33'
[Wed Jan 01 13:29:40.720939 2020] [mpm_winnt:notice] [pid 3800:tid 396] AH00418: Parent: Created child process 5028
[Wed Jan 01 13:29:41.547761 2020] [mpm_winnt:notice] [pid 5028:tid 316] AH00354: Child: Starting 64 worker threads.


ACCESS LOG APACHE

[Tue Dec 31 13:35:21.214559 2019] [mpm_winnt:notice] [pid 2528:tid 260] AH00422: Parent: Received shutdown signal -- Shutting down the server.
[Tue Dec 31 13:35:23.242598 2019] [mpm_winnt:notice] [pid 3484:tid 312] AH00364: Child: All worker threads have exited.
[Tue Dec 31 13:35:23.289399 2019] [mpm_winnt:notice] [pid 2528:tid 260] AH00430: Parent: Child process 3484 exited successfully.
[Tue Dec 31 13:35:24.287818 2019] [mpm_winnt:notice] [pid 3800:tid 396] AH00455: Apache/2.4.33 (Win64) PHP/7.0.29 configured -- resuming normal operations
[Tue Dec 31 13:35:24.287818 2019] [mpm_winnt:notice] [pid 3800:tid 396] AH00456: Apache Lounge VC15 Server built: Mar 18 2018 12:58:47
[Tue Dec 31 13:35:24.287818 2019] [core:notice] [pid 3800:tid 396] AH00094: Command line: 'c:\\wamp64\\bin\\apache\\apache2.4.33\\bin\\httpd.exe -d C:/wamp64/bin/apache/apache2.4.33'
[Tue Dec 31 13:35:24.287818 2019] [mpm_winnt:notice] [pid 3800:tid 396] AH00418: Parent: Created child process 6040
[Tue Dec 31 13:35:24.584223 2019] [mpm_winnt:notice] [pid 6040:tid 312] AH00354: Child: Starting 64 worker threads.

[Wed Jan 01 13:29:38.022070 2020] [mpm_winnt:notice] [pid 3800:tid 396] AH00428: Parent: child process 6040 exited with status 255 -- Restarting.
[Wed Jan 01 13:29:40.705339 2020] [mpm_winnt:notice] [pid 3800:tid 396] AH00455: Apache/2.4.33 (Win64) PHP/7.0.29 configured -- resuming normal operations
[Wed Jan 01 13:29:40.705339 2020] [mpm_winnt:notice] [pid 3800:tid 396] AH00456: Apache Lounge VC15 Server built: Mar 18 2018 12:58:47
[Wed Jan 01 13:29:40.705339 2020] [core:notice] [pid 3800:tid 396] AH00094: Command line: 'c:\\wamp64\\bin\\apache\\apache2.4.33\\bin\\httpd.exe -d C:/wamp64/bin/apache/apache2.4.33'
[Wed Jan 01 13:29:40.720939 2020] [mpm_winnt:notice] [pid 3800:tid 396] AH00418: Parent: Created child process 5028
[Wed Jan 01 13:29:41.547761 2020] [mpm_winnt:notice] [pid 5028:tid 316] AH00354: Child: Starting 64 worker threads.

Re: Can , the Php errors, be connect to switch off the pc ?
Posted by: RiggsFolly (Moderator)
Date: January 01, 2020 05:17PM

Hi,

These are all PHP coding errors and nothing to do with WAMPServer

---------------------------------------------------------------------------------------------
(Windows 10 Pro 64bit) (Wampserver 3.3.4 64bit) Aestan Tray Menu 3.2.5.4
<Apache versions MULTIPE> <PHP versions MULTIPLE> <MySQL Versions MULTIPLE>
<MariaDB versions MULTIPLE> <phpMyAdmin versions MULTIPLE> <MySQL Workbench 8.0.23>

Read The Manuals Apache -- MySQL -- PHP -- phpMyAdmin
Get your Apache/MySQL/mariaDB/PHP ADDONs here from the WAMPServer alternate Repo
-X-X-X- Backup your databases regularly Here is How dont regret it later! Yes even when developing -X-X-X-

Re: Can , the Php errors, be connect to switch off the pc ?
Posted by: giovannino (151.95.72.---)
Date: January 02, 2020 05:38PM

OK , but my question was ... Can these errors be generated by a switch off of computer ?

Re: Can , the Php errors, be connect to switch off the pc ?
Posted by: Otomatic (Moderator)
Date: January 02, 2020 06:40PM

Hi,

Is the error "Undefined variable: _SERVER" due to an untimely shutdown of the PC, I don't know, but I would say that I would be surprised.

The array $_SERVER['key'] is a predefined variable that is relevant to the server and the system environment, the entries being created by the server itself at each server startup. See : [www.php.net]

The only Apache stop not done correctly is this one:
[Wed Jan 01 13:29:38.022070 2020] [mpm_winnt:notice] [pid 3800:tid 396] AH00428: Parent: child process 6040 exited with status 255 -- Restarting.

What can possibly happen during a power outage is that files in caches and pending SQL writes are not written when they are written during a "normal" shutdown. Therefore, it is possible that a php file may be "spoiled".

---------------------------------------------------------------
Documentation Apache - Documentation PHP - Documentation MySQL - Wampserver install files & addons

Sorry, only registered users may post in this forum.