projectsend icon indicating copy to clipboard operation
projectsend copied to clipboard

Registration Bug with potential fix

Open bmartin13 opened this issue 2 years ago • 4 comments

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; }

bmartin13 avatar Apr 07 '23 19:04 bmartin13

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!

serg499 avatar May 10 '23 17:05 serg499