Error 500 occurred

Enplated MVC Error Debug v1.0

Time: 2024-01-01 13:30:35


Debug info:


Error code:

2

Code Description
1 E_ERROR
2 E_WARNING
4 E_PARSE
8 E_NOTICE
16 E_CORE_ERROR
32 E_CORE_WARNING
64 E_COMPILE_ERROR
128 E_COMPILE_WARNING
256 E_USER_ERROR
512 E_USER_WARNING
1024 E_USER_NOTICE
2048 E_STRICT
4096 E_RECOVERABLE_ERROR
8192 E_DEPRECATED
16384 E_USER_DEPRECATED
30719 E_ALL

Error Message:

Undefined variable $foo

File:

/www/html/app/routes/users.php

Line:

3


Code snippet:


File name: /www/html/app/routes/users.php

1 <?php
2     checkRoute('GET', '/users', function() {     
3         if ($foo == "value") {
4             $foo = "value2";
5         }
6 
7         $template = processTemplate('users', []);
8         finishRender($template);
9     });
10 ?>                                

All Configured Variables:


$_ENV

Array
(
    [APP] => Array
        (
            ... //deleted in this example for security reasons
        )

    [REQUEST] => Array
        (
            [URI] => /users
            [METHOD] => GET
            [FOUND] => 1
        )

    [ERROR] => Array
        (
            [code] => 2
            [msg] => Undefined variable $foo
            [file] => /www/html/app/routes/users.php
            [line] => 3
        )

)

$_SESSION

No _SESSION data

$_GET

Array
(
)

$_POST

Array
(
)

$_COOKIE

Array
(
    ... //deleted in this example for security reasons
)

$_REQUEST

Array
(
)

$_FILES

Array
(
)

$_SERVER

Array
(
    ... //deleted in this example for security reasons
)