-
-
Notifications
You must be signed in to change notification settings - Fork 34
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
[Bug] Various PHP warnings in the web server log #433
Comments
I wish you a happy new year. Have you set a language in the settings and checked whether the warning disappears? |
I wish you and yours a happy healthy and prosperous 2025. By my knowledge i have not set a language anywhere. I would not even have a cue where to do that either. |
https://github.com/leiweibau/Pi.Alert/blob/main/docs/guide/001.md First Screenshot (GUI-Tab -> General on the settings page) https://github.com/leiweibau/Pi.Alert/blob/main/docs/guide/002.md presented a little more clearly |
on the settings page i see the language selection. i select english us there. after i press apply, it does not show the selection u i made. i tried a few times... and the log keeps telling me the same, but because of the selection i got other messages there. even i never selected any other language then english us, it seems to show also de , es ,fr and it.
|
I'll take a look at that. Since these are “warnings” and I can at least understand them, I can tell you that nothing looks “broken” here. |
ok see what you can do and / or find the culprit. take your time since all is working. space enough to grow log files for a while. thanks in advance |
Is there an existing issue for this?
Current Behavior
Not sure if this is the right place to report this so if its wrong, i am sorry.
i am running the last pialert update. irts running on a pi5 together with Pi-hole phole is updated to the last version, PHP ver 8.2.26
I was looking in my pihole lighttpd/error-pihole.log for issues im having wiht pihole itself and i see my whole log is clogged with this message
mod_fastcgi.c.449) FastCGI-stderr:PHP Warning: Undefined variable $pia_lang_selected in /pialert/front/php/server/language_switch.php on line 5
its generated about 10 times a second sometimes it has 10 seconds between but i had 20 archived error logs full with this message, I know its not a fatal error but i know its not right,
I looked in that file, and this is what it says on line 5
if (strlen($pia_lang_selected) == 0) {$pia_lang_selected = 'en_us';}
since im a noob i have no clue whats wrong there. so maybe you can take a look and fix this endless loop of creating logfiles ?
Regards
Mike
Environment
OS: Debian Linux 12 Bookwurm - Kernel Linux 6.6.67-v8-16k+ arm64 Hardware Pi5 with 8 gb
Anything else?
2024-12-29 00:00:51: (mod_fastcgi.c.449) FastCGI-stderr:PHP Warning: Undefined variable $pia_lang_selected in /root/pialert/front/php/server/language_switch.php on line 5 2024-12-29 00:00:51: (mod_fastcgi.c.449) FastCGI-stderr:PHP Warning: Undefined variable $pia_lang_selected in /root/pialert/front/php/server/language_switch.php on line 5 2024-12-29 00:01:07: (mod_fastcgi.c.449) FastCGI-stderr:PHP Warning: Undefined variable $pia_lang_selected in /root/pialert/front/php/server/language_switch.php on line 5 2024-12-29 00:01:07: (mod_fastcgi.c.449) FastCGI-stderr:PHP Warning: Undefined variable $pia_lang_selected in /root/pialert/front/php/server/language_switch.php on line 5 2024-12-29 00:01:07: (mod_fastcgi.c.449) FastCGI-stderr:PHP Warning: Undefined variable $pia_lang_selected in /root/pialert/front/php/server/language_switch.php on line 5 2024-12-29 00:01:07: (mod_fastcgi.c.449) FastCGI-stderr:PHP Warning: Undefined variable $pia_lang_selected in /root/pialert/front/php/server/language_switch.php on line 5 2024-12-29 00:01:22: (mod_fastcgi.c.449) FastCGI-stderr:PHP Warning: Undefined variable $pia_lang_selected in /root/pialert/front/php/server/language_switch.php on line 5 2024-12-29 00:01:22: (mod_fastcgi.c.449) FastCGI-stderr:PHP Warning: Undefined variable $pia_lang_selected in /root/pialert/front/php/server/language_switch.php on line 5 2024-12-29 00:01:22: (mod_fastcgi.c.449) FastCGI-stderr:PHP Warning: Undefined variable $pia_lang_selected in /root/pialert/front/php/server/language_switch.php on line 5 2024-12-29 00:01:22: (mod_fastcgi.c.449) FastCGI-stderr:PHP Warning: Undefined variable $pia_lang_selected in /root/pialert/front/php/server/language_switch.php on line 5 2024-12-29 00:01:37: (mod_fastcgi.c.449) FastCGI-stderr:PHP Warning: Undefined variable $pia_lang_selected in /root/pialert/front/php/server/language_switch.php on line 5 2024-12-29 00:01:37: (mod_fastcgi.c.449) FastCGI-stderr:PHP Warning: Undefined variable $pia_lang_selected in /root/pialert/front/php/server/language_switch.php on line 5 2024-12-29 00:01:37: (mod_fastcgi.c.449) FastCGI-stderr:PHP Warning: Undefined variable $pia_lang_selected in /root/pialert/front/php/server/language_switch.php on line 5 2024-12-29 00:01:37: (mod_fastcgi.c.449) FastCGI-stderr:PHP Warning: Undefined variable $pia_lang_selected in /root/pialert/front/php/server/language_switch.php on line 5 2024-12-29 00:01:52: (mod_fastcgi.c.449) FastCGI-stderr:PHP Warning: Undefined variable $pia_lang_selected in /root/pialert/front/php/server/language_switch.php on line 5
The text was updated successfully, but these errors were encountered: