w2wiki icon indicating copy to clipboard operation
w2wiki copied to clipboard

Warning spam

Open za3k opened this issue 3 years ago • 2 comments

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 avatar Apr 21 '22 17:04 za3k

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

za3k avatar Apr 21 '22 18:04 za3k

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

panicsteve avatar Apr 22 '22 18:04 panicsteve