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

Fix error in user management web UI #689

Merged
merged 1 commit into from
Sep 4, 2024

Conversation

andrey-utkin
Copy link
Contributor

What happens: submit a form for creation of a new user, get a blank page.

Seen on Debian 12.
Apparently older versions of PHP were forgiving in this case.

 ==> /var/log/nginx/bluecherry-error.log <==
 2024/08/31 23:01:42 [error] 380#380: *2 FastCGI sent in stderr: "PHP message: PHP Fatal error:  Uncaught Error: Non-static method user::checkUserData() cannot be called statically in /usr/share/bluecherry/www/lib/lib.php:459
 Stack trace:
 #0 /usr/share/bluecherry/www/ajax/update.php(54): user::update()
 #1 /usr/share/bluecherry/www/ajax/update.php(30): update->newUser()
 #2 /usr/share/bluecherry/www/lib/Controller.php(124): update->postData()
 #3 /usr/share/bluecherry/www/lib/Route.php(75): Controller->start()
 #4 /usr/share/bluecherry/www/index.php(16): Route->start()
 #5 {main}
   thrown in /usr/share/bluecherry/www/lib/lib.php on line 459" while reading response header from upstream, client: 192.168.86.104, server: , request: "POST /ajax/update.php HTTP/1.1", upstream: "fastcgi://unix:/etc/alternatives/php-fpm.sock:", host: "192.168.86.136:7001", referrer: "https://192.168.86.136:7001/users?id=new"

 ==> /var/log/nginx/bluecherry-access.log <==
 192.168.86.104 - - [31/Aug/2024:23:01:42 +0000] "POST /ajax/update.php HTTP/1.1" 500 5 "https://192.168.86.136:7001/users?id=new" "Mozilla/5.0 (X11; Linux x86_64; rv:129.0) Gecko/20100101 Firefox/129.0"

What happens: submit a form for creation of a new user, get a blank
page.

Seen on Debian 12.
Apparently older versions of PHP were forgiving in this case.

 ==> /var/log/nginx/bluecherry-error.log <==
 2024/08/31 23:01:42 [error] 380#380: *2 FastCGI sent in stderr: "PHP message: PHP Fatal error:  Uncaught Error: Non-static method user::checkUserData() cannot be called statically in /usr/share/bluecherry/www/lib/lib.php:459
 Stack trace:
 #0 /usr/share/bluecherry/www/ajax/update.php(54): user::update()
 bluecherrydvr#1 /usr/share/bluecherry/www/ajax/update.php(30): update->newUser()
 bluecherrydvr#2 /usr/share/bluecherry/www/lib/Controller.php(124): update->postData()
 bluecherrydvr#3 /usr/share/bluecherry/www/lib/Route.php(75): Controller->start()
 bluecherrydvr#4 /usr/share/bluecherry/www/index.php(16): Route->start()
 bluecherrydvr#5 {main}
   thrown in /usr/share/bluecherry/www/lib/lib.php on line 459" while reading response header from upstream, client: 192.168.86.104, server: , request: "POST /ajax/update.php HTTP/1.1", upstream: "fastcgi://unix:/etc/alternatives/php-fpm.sock:", host: "192.168.86.136:7001", referrer: "https://192.168.86.136:7001/users?id=new"

 ==> /var/log/nginx/bluecherry-access.log <==
 192.168.86.104 - - [31/Aug/2024:23:01:42 +0000] "POST /ajax/update.php HTTP/1.1" 500 5 "https://192.168.86.136:7001/users?id=new" "Mozilla/5.0 (X11; Linux x86_64; rv:129.0) Gecko/20100101 Firefox/129.0"
@andrey-utkin andrey-utkin mentioned this pull request Sep 4, 2024
@curtishall curtishall merged commit 4ec4e8a into bluecherrydvr:master Sep 4, 2024
1 of 2 checks passed
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 this pull request may close these issues.

2 participants