PHP error log : is it due to a shut down ??
Posted by: giovannino (---.v4.ngi.it)
Date: December 17, 2019 09:45AM

Hi all,
I got this php error log on a wamp installed on a stand alone PC . My solution runs under WWW/ directory
What I need to understand is if the errors listed could be due to a brutal switch off of pc during the running of application. I'm not a tech guy so please use simple terms... ;-)



[08-Nov-2019 15:15:59 UTC] PHP Notice:  Undefined variable: _SERVER in C:\wamp64\www\Eos_Tat_Meter\_lib\lib\php\nm_ctrl_app_name.php on line 13

[08-Nov-2019 15:15:59 UTC] PHP Stack trace:

[08-Nov-2019 15:15:59 UTC] PHP   1. {main}() C:\wamp64\www\Eos_Tat_Meter\grid_tubes_labo_bin\grid_tubes_labo_bin.php:0

[08-Nov-2019 15:15:59 UTC] PHP   2. SC_dir_app_ini() C:\wamp64\www\Eos_Tat_Meter\grid_tubes_labo_bin\grid_tubes_labo_bin.php:4769



Edited 1 time(s). Last edit at 12/17/2019 10:06AM by RiggsFolly.

Options: ReplyQuote
Re: PHP error log : is it due to a shut down ??
Posted by: Otomatic (Moderator)
Date: December 17, 2019 10:03AM

Bonjour,

There is no need to put fifty lines of errors when the first is more than enough.
In addition, this forum is not intended to debug PHP scripts or SQL queries from Wampserver users.

An error, whatever it is, can be read and understood without the need for further explanation.
[08-Nov-2019 15:15:59 UTC] PHP Notice: Undefined variable: _SERVER in C:\wamp64\www\Eos_Tat_Meter\_lib\lib\php\nm_ctrl_app_name.php on line 13

The variable name _SERVER used in line 13 of the "nm_ctrl_app_name.php" script has not been defined before its use.

If there is a typing error or a paired file, it should be $_SERVER['index']
See : https://www.php.net/manual/en/reserved.variables.server.php

On this subject which does not concern the functioning of Wampserver, my help will stop here.

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

Options: ReplyQuote


Sorry, only registered users may post in this forum.