Receiving error "SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'Email' cannot be null"

Hi,

https://www.youtube.com/watch?v=1NLr9eHowaI section is at 19.51

I am trying to follow the above webinar but I seemed to have hit a snag when adding in the security login step which is meant to automatically log the user in and redirect them to index.php.

While the new record is added to my database I receive the below error message. I am not sure how the email can be null as it’s added it to the database so it must not have been null, I am really confused.

SQLSTATE[23000]: Integrity constraint violation: 1048 Column ‘Email’ cannot be null

If I disable the “security login” step the the new user account is created and the record added to the database and the page redirects to index.php as expected, it’s just they are not autologged in. So it does seem to be something to do with the “security login” step but the fields names all match to the database so I am not sure what is wrong.

Has anyone had this sort of error before that could assist as it’s driving me mad! :smiley:

Thanks

Community Page
Last updated: