projectsend icon indicating copy to clipboard operation
projectsend copied to clipboard

No email notification to sysadmin

Open iincitr opened this issue 5 years ago • 16 comments

For a new user want to register to the system there is not any notification email to sysadmin or account that waiting to approve.

This may be added to handle newcomer.

iincitr avatar Dec 28 '20 14:12 iincitr

This actually seems like a bug. I also have this. After self-registration an empty page (only header) is shown. If debug is enabled (define('DEBUG', true); in e.g. app.php) an error is shown:

Fatal error: Uncaught PDOException: SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'requested_by' cannot be null in /var/www/html/includes/Classes/MembersActions.php:326 
Stack trace: 
#0 /var/www/html/includes/Classes/MembersActions.php(326): PDOStatement->execute() 
#1 /var/www/html/includes/Classes/Users.php(500): ProjectSend\Classes\MembersActions->group_request_membership() 
#2 /var/www/html/register.php(51): ProjectSend\Classes\Users->triggerAfterSelfRegister() 
#3 {main} thrown in /var/www/html/includes/Classes/MembersActions.php on line 326

MrApe avatar Feb 19 '21 16:02 MrApe

I also have similar issue: After self-registration an empty page (only header) is shown. When I try to debug (thanks to MrApe), I get the following error: Fatal error: Uncaught Error: Undefined constant "ProjectSend\Classes\CURRENT_USER_LEVEL" in /mysite/includes/Classes/Users.php:842 Stack trace: #0 /mysite/includes/Classes/Users.php(464): ProjectSend\Classes\Users->limitUploadToSave() #1 /mysite/register.php(45): ProjectSend\Classes\Users->create() #2 {main} thrown in /mysite/includes/Classes/Users.php on line 842

serg499 avatar Jan 25 '23 19:01 serg499

Is this similar to my poorly titled #1208?

ehawman avatar Jan 25 '23 20:01 ehawman

Is this similar to my poorly titled #1208?

Not exactly as I don't use Google for the authentication. The issue that I have is for built-in user registration process.

serg499 avatar Jan 25 '23 20:01 serg499

Actually it's a pretty big and important bug. A lot of users can be affected. How can we fix that?

serg499 avatar Feb 01 '23 22:02 serg499

As a temp fix, what happens if you set the option to CC all emails and add your address there?

ignacionelson avatar Feb 01 '23 22:02 ignacionelson

I was meaning: After self-registration an empty page (only header) is shown. Looks like the bug is similar, but I probably should create a separate thread for new registration empty page bug.

serg499 avatar Feb 01 '23 22:02 serg499

@ignacionelson I attempted this. Still unable to generate any emails from registering a new client.

ehawman avatar Feb 02 '23 22:02 ehawman

Is this the only email thats not going out to admins?

ignacionelson avatar Feb 02 '23 22:02 ignacionelson

As far as I'm aware. "New files uploaded by clients" goes out just fine, and once I checked the box to also send to the "from" account, I started seeing "New files uploaded for you" cc's.

ehawman avatar Feb 02 '23 22:02 ehawman

I think the issue is very clear now, sorry I didn't get it before. I'll try to post a fix as soon as it's done

ignacionelson avatar Feb 03 '23 01:02 ignacionelson

@serg499 Your error should be fixed here f2797d4 I'll check the other one

ignacionelson avatar Feb 15 '23 20:02 ignacionelson

@ignacionelson Thank you, Ignacio! Unfortunately, it hasn't fixed this thing. Probably, there's another error that prevents the showing of the last registration step. Chrome console shows error 500 in the register.php. Tomorrow I'll try to debug better to help you to locate the issue. Again, thank you for help!

serg499 avatar Feb 16 '23 02:02 serg499