Error

PHP Noticeyii\base\ErrorException

Trying to get property of non-object

$_GET = [
    'id' => '6',
];

$_SERVER = [
    'ALLUSERSPROFILE' => 'C:\\ProgramData',
    'APPDATA' => 'C:\\Users\\Administrator\\AppData\\Roaming',
    'CLIENTNAME' => 'jm',
    'CommonProgramFiles' => 'C:\\Program Files (x86)\\Common Files',
    'CommonProgramFiles(x86)' => 'C:\\Program Files (x86)\\Common Files',
    'CommonProgramW6432' => 'C:\\Program Files\\Common Files',
    'COMPUTERNAME' => 'AY1306291804070',
    'ComSpec' => 'C:\\Windows\\system32\\cmd.exe',
    'FP_NO_HOST_CHECK' => 'NO',
    'HOMEDRIVE' => 'C:',
    'HOMEPATH' => '\\Users\\Administrator',
    'JAVA_HOME' => 'C:\\Program Files\\Java\\jdk1.8.0_181',
    'lib' => 'C:\\Program Files\\SQLXML 4.0\\bin\\',
    'LOCALAPPDATA' => 'C:\\Users\\Administrator\\AppData\\Local',
    'LOGONSERVER' => '\\\\AY1306291804070',
    'NUMBER_OF_PROCESSORS' => '4',
    'OS' => 'Windows_NT',
    'Path' => '.;C:\\Program Files\\Java\\jdk1.8.0_181\\bin;C:\\Program Files\\Java\\jdk1.8.0_181\\jre\\bin;C:\\Windows\\system32;C:\\Windows;C:\\Windows\\System32\\Wbem;C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\;C:\\websoft\\mysql\\bin;C:\\Program Files (x86)\\Microsoft SQL Server\\100\\Tools\\Binn\\;C:\\Program Files\\Microsoft SQL Server\\100\\Tools\\Binn\\;C:\\Program Files\\Microsoft SQL Server\\100\\DTS\\Binn\\;C:\\Program Files (x86)\\Microsoft SQL Server\\80\\Tools\\Binn\\;C:\\Program Files (x86)\\Microsoft SQL Server\\90\\Tools\\binn\\;C:\\Program Files (x86)\\Microsoft SQL Server\\90\\DTS\\Binn\\;C:\\Program Files (x86)\\Microsoft SQL Server\\90\\Tools\\Binn\\VSShell\\Common7\\IDE\\;C:\\Program Files (x86)\\Microsoft Visual Studio 8\\Common7\\IDE\\PrivateAssemblies\\;c:\\Program Files (x86)\\Microsoft ASP.NET\\ASP.NET Web Pages\\v1.0\\;C:\\Program Files (x86)\\MySQL\\MySQL Fabric 1.5.4 & MySQL Utilities 1.5.4 1.5\\;C:\\Program Files (x86)\\MySQL\\MySQL Fabric 1.5.4 & MySQL Utilities 1.5.4 1.5\\Doctrine extensions for PHP\\;C:\\php;C:\\Program Files (x86)\\Microsoft SQL Server\\100\\Tools\\Binn\\VSShell\\Common7\\IDE\\;C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\Common7\\IDE\\PrivateAssemblies\\;C:\\Program Files (x86)\\Microsoft SQL Server\\100\\DTS\\Binn\\',
    'PATHEXT' => '.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC;.PY',
    'PROCESSOR_ARCHITECTURE' => 'x86',
    'PROCESSOR_ARCHITEW6432' => 'AMD64',
    'PROCESSOR_IDENTIFIER' => 'Intel64 Family 6 Model 85 Stepping 4, GenuineIntel',
    'PROCESSOR_LEVEL' => '6',
    'PROCESSOR_REVISION' => '5504',
    'ProgramData' => 'C:\\ProgramData',
    'ProgramFiles' => 'C:\\Program Files (x86)',
    'ProgramFiles(x86)' => 'C:\\Program Files (x86)',
    'ProgramW6432' => 'C:\\Program Files',
    'PROMPT' => '$P$G',
    'PSModulePath' => 'C:\\Windows\\system32\\WindowsPowerShell\\v1.0\\Modules\\',
    'PUBLIC' => 'C:\\Users\\Public',
    'SESSIONNAME' => 'RDP-Tcp#0',
    'SystemDrive' => 'C:',
    'SystemRoot' => 'C:\\Windows',
    'TEMP' => 'C:\\Users\\ADMINI~1\\AppData\\Local\\Temp',
    'TMP' => 'C:\\Users\\ADMINI~1\\AppData\\Local\\Temp',
    'USERDOMAIN' => 'AY1306291804070',
    'USERNAME' => 'Administrator',
    'USERPROFILE' => 'C:\\Users\\Administrator',
    'windir' => 'C:\\Windows',
    'windows_tracing_flags' => '3',
    'windows_tracing_logfile' => 'C:\\BVTBin\\Tests\\installpackage\\csilogfile.log',
    'HTTP_ACCEPT_ENCODING' => 'gzip',
    'HTTP_CONNECTION' => 'Keep-Alive',
    'HTTP_HOST' => 'dearisland.com',
    'HTTP_ACCEPT_LANGUAGE' => 'en-US,en;q=0.5',
    'HTTP_ACCEPT' => 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
    'HTTP_USER_AGENT' => 'CCBot/2.0 (https://commoncrawl.org/faq/)',
    'REDIRECT_STATUS' => '200',
    'SERVER_NAME' => 'www.dearisland.com',
    'SERVER_PORT' => '80',
    'SERVER_ADDR' => '172.16.3.97',
    'REMOTE_PORT' => '50318',
    'REMOTE_ADDR' => '35.172.100.232',
    'SERVER_SOFTWARE' => 'nginx/1.12.1',
    'GATEWAY_INTERFACE' => 'CGI/1.1',
    'REQUEST_SCHEME' => 'http',
    'SERVER_PROTOCOL' => 'HTTP/1.1',
    'DOCUMENT_ROOT' => 'D:/wwwroot/htdd',
    'DOCUMENT_URI' => '/index.php',
    'REQUEST_URI' => '/Other/Problem/6.html',
    'SCRIPT_NAME' => '/index.php',
    'CONTENT_LENGTH' => '',
    'CONTENT_TYPE' => '',
    'REQUEST_METHOD' => 'GET',
    'QUERY_STRING' => '',
    'SCRIPT_FILENAME' => 'D:/wwwroot/htdd/index.php',
    'FCGI_ROLE' => 'RESPONDER',
    'PHP_SELF' => '/index.php',
    'REQUEST_TIME_FLOAT' => 1569260866.3953669,
    'REQUEST_TIME' => 1569260866,
];