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

Warning spam #18

Open
za3k opened this issue Apr 21, 2022 · 2 comments · May be fixed by #20
Open

Warning spam #18

za3k opened this issue Apr 21, 2022 · 2 comments · May be fixed by #20

Comments

@za3k
Copy link
Contributor

za3k commented Apr 21, 2022

I get warnings printed to my nginx error log on every page load. The page loads fine, it's just nice to remove this to make logs more readable.

2022/04/21 13:56:37 [error] 15114#15114: *324651 FastCGI sent in stderr: "PHP message: PHP Notice:  Undefined variable: text in /var/www/lexicon1/index.php on line 490" while reading response header from upstream, client: ::ffff:174.101.140.242, server: lexicon.za3k.com, request: "GET /index.php/LexiconOne HTTP/1.1", upstream: "fastcgi://unix:/var/run/php/php7.3-fpm.sock:", host: "lexicon.za3k.com"
@za3k
Copy link
Contributor Author

za3k commented Apr 21, 2022

Actually, this is only when a page was missing -- the PATH_INFO bug was just masking what was happening

@panicsteve
Copy link
Owner

$text = ""; somewhere near the very beginning of the script should fix this.

za3k added a commit to za3k/w2wiki that referenced this issue May 8, 2022
@za3k za3k linked a pull request May 8, 2022 that will close this issue
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

Successfully merging a pull request may close this issue.

2 participants