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

Registration Bug with potential fix #1247

Open
bmartin13 opened this issue Apr 7, 2023 · 1 comment
Open

Registration Bug with potential fix #1247

bmartin13 opened this issue Apr 7, 2023 · 1 comment

Comments

@bmartin13
Copy link

Running r1605 in docker from this docker image:
https://hub.docker.com/r/linuxserver/projectsend

Found a bug when registering with a new user... error thrown:

Fatal error: Uncaught Error: Undefined constant "ProjectSend\Classes\CURRENT_USER_LEVEL" in /app/www/public/includes/Classes/Users.php:842

Stack trace:
#0 /app/www/public/includes/Classes/Users.php(464): ProjectSend\Classes\Users->limitUploadToSave()
#1 /app/www/public/register.php(44): ProjectSend\Classes\Users->create()
#2 {main} thrown in /app/www/public/includes/Classes/Users.php on line 842

PROPOSED FIX on line 842 of /app/www/public/includes/Classes/Users.php

current:
if (CURRENT_USER_LEVEL == 7) {
return;
}
proposed:
if (!defined('CURRENT_USER_LEVEL') or CURRENT_USER_LEVEL == 7) {
return;
}

@serg499
Copy link

serg499 commented May 10, 2023

Thank you! Also have the same bug and @bmartin13 solution seems working. I was finally able to see "Registration successful" instead of a blank screen. Thank you!

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