PHP Notice: Undefined variable: _SERVER - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5) +--- Forum: General Help (https://forum.codeigniter.com/forumdisplay.php?fid=24) +--- Thread: PHP Notice: Undefined variable: _SERVER (/showthread.php?tid=72940) |
PHP Notice: Undefined variable: _SERVER - makif - 03-04-2019 i was using nginx server and i changed to apache 2.4. iam using ci 3.1.8 version php version is 7.1.18 i guess server connection lost but why i have no idea why [Mon Mar 04 13:13:04.598041 2019] [php7:notice] [pid 4992:tid 1108] [client 51.11.0.4:56252] PHP Notice: Undefined variable: _SERVER in C:\\Interface\\html\\application\\config\\config.php on line 28, referer: http://51.11.0.21/ PHP Code: Line 27- $root=(isset($_SERVER['HTTPS']) ? "https://" : "http://").$_SERVER['HTTP_HOST']; RE: PHP Notice: Undefined variable: _SERVER - php_rocs - 03-04-2019 @makif, Check your PHP.ini. Also, how did you install/configure Apache? FYI: CI v3.1.10 is current version. RE: PHP Notice: Undefined variable: _SERVER - makif - 03-04-2019 (03-04-2019, 08:25 AM)php_rocs Wrote: @makif, i got once this error and i read some documents , for examle some author's auto_globals_jit set off but i am not sure it will fix it, because i should be sure and i just wanna write here if anyone has this issue. yeap i know ci 3.1.10 but i was using 3.1.9 and it had session issue then i change 3.1.8 and it's running well actually for apache, i install as exe to another service |