0

Fatal error: Call to a member function getId() on null in ~/system/ee/legacy/libraries/Session.php on line 398

The $member object (re: $member = ee('Model')->get('Member', $member_id)->first();) is null.

What's going on?

1

I just ran into this same issue and after a good few hours of debugging, I found the issue was because the member didn't have an entry in the exp_member_data table.

Just add a new row to the exp_member_data table with the member_id you're logging in with (search the exp_members table to find the correct member_id if need be) and you should be all set.

You don't need to enter any other information in the row to resolve the issue.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.