kalevias / MyCollege

CSI 4999 - Senior Capstone Project
1 stars 1 forks source link

Attempting to register a user causes a fatal crash #33

Closed kalevias closed 6 years ago

kalevias commented 6 years ago

When trying to create a new student user via UC1, step 4 causes a fatal crash, resulting in the following error message regardless of form input: Failed to insert user to database 'mycollege' Connect Error: 0 Error Message:

Bug Report

Security related: No Attempted reproductions: 3 (@jnick1) Successful reproductions: 3 Reproducabilty: 100% Steps to reproduce

  1. UC1 Steps 1-4
  2. Observe - fatal crash

Expected results User is notified that an email has been sent to their email address for identity verification so long as no issues arose with incorrect form input.

Actual results Failed to insert user to database 'mycollege' Connect Error: 0 Error Message:

Workaround None

Environment Mozilla Firefox Quantum 57.0.4 (64-bit) Branch: Dev-Account-Management as of 2018/01/23 at 11:50pm

kalevias commented 6 years ago

Found issue was due to missing database information: If no provinces are available in the database (for us to associate a foreign key with), then the user registration will fail with this error. Since this issue is not due to erroneous PHP code, it is being closed.