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.

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.

------------------------------------------------------------------------------------------------------------
Wampserver 3.2.9 32 bit - Apache 2.4.53 - PHP 8.1.5…5.6.40 - MySQL 5.7.38 - MariaDB 10.5.13/10.6.5
Wampserver 3.2.9 64 bit - Apache 2.4.53 - PHP 8.1.5…5.6.40 - MySQL 5.7.38/8.0.29 - MariaDB 10.5.15/10.7.3
PhPMyadmin 5.1.3 - MysqlDumper 1.24.5
on W10 and W7 Pro 64 bit
Documentation Apache - Documentation PHP - Documentation MySQL - Wampserver install files & addons
« Ce n'est pas parce qu'ils sont nombreux à avoir tort, qu'ils ont forcément raison. Coluche »
« It's not because they are many to be wrong, they are necessarily right. Coluche »

Sorry, only registered users may post in this forum.