Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
JohnngSong opened this issue Nov 24, 2022 · 1 comment
Open

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

JohnngSong opened this issue Nov 24, 2022 · 1 comment

Comments

@JohnngSong
Copy link

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
Copy link
Contributor

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 .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants