server-status-project / server-status

Simple, modern looking server status page with administration and some nice features, that can run even on shared webhosting
https://demo.status.sajdl.com/
Apache License 2.0
394 stars 87 forks source link

PHP message: PHP Notice: Undefined variable: strSubsMenu #166

Open JohnngSong opened 1 year ago

JohnngSong commented 1 year ago

2022/11/24 17:04:04 [error] 1115#1115: 283 FastCGI sent in stderr: "PHP message: PHP Warning: date(): It is not safe to rely on the system's timezone settings. You are required to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /www/pp/server-status/template.php on line 207" while reading upstream, client: 130.162.146.22, server: rdkrdl.online, request: "GET /?lang=zh_CN HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "rdkrdl.online:1414", referrer: "http://rdkrdl.online:1414/" 2022/11/24 17:04:06 [error] 1115#1115: 283 FastCGI sent in stderr: "PHP message: PHP Parse error: syntax error, unexpected ')', expecting :: (T_PAAMAYIM_NEKUDOTAYIM) in /www/pp/server-status/admin/index.php on line 42" while reading response header from upstream, client: 130.162.146.22, server: rdkrdl.online, request: "GET /admin/ HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "rdkrdl.online:1414", referrer: "http://rdkrdl.online:1414/?lang=zh_CN" 2022/11/24 17:04:08 [error] 1115#1115: 283 FastCGI sent in stderr: "PHP message: PHP Notice: Undefined variable: strSubsMenu in /www/pp/server-status/template.php on line 52 PHP message: PHP Notice: Use of undefined constant admin - assumed 'admin' in /www/pp/server-status/template.php on line 59" while reading response header from upstream, client: 130.162.146.22, server: rdkrdl.online, request: "GET /?lang=zh_CN HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "rdkrdl.online:1414", referrer: "http://rdkrdl.online:1414/" 2022/11/24 17:04:08 [error] 1115#1115: 283 FastCGI sent in stderr: "PHP message: PHP Warning: date(): It is not safe to rely on the system's timezone settings. You are required to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /www/pp/server-status/template.php on line 207" while reading upstream, client: 130.162.146.22, server: rdkrdl.online, request: "GET /?lang=zh_CN HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "rdkrdl.online:1414", referrer: "http://rdkrdl.online:1414/"

kim3-sudo commented 1 year ago

This issue was fixed with the PHP 5.5 update. You're probably running PHP v.5.4 or earlier. (Find out by using php -v.) There's a constant defined earlier in the script that cannot be used with the empty() language construct. See merge #169 .