Trying to reach profile of unactivated user result in Uncaught TypeError


(Dan Eriksson) #1

Today we opened up our forums registration and the first users went smoothly. The latest one though seems to be having some problem, I as admin can’t reach their profile page. This is the error report in the error log:

Uncaught TypeError: Cannot read property 'name' of undefined
Url: http://forum.motgift.nu/assets/vendor-a4e58a3dd3ab25267b90b50682c71166.js
Line: 13
Column: 69
Window Location: http://forum.motgift.nu/users/johanna

We have all the latest updates installed.

Update 11:13:

Yet another member registered and the same problem there (but not with the 5 users that registered before Johanna above). Same error on the same line:

Uncaught TypeError: Cannot read property 'name' of undefined
Url: http://forum.motgift.nu/assets/vendor-a4e58a3dd3ab25267b90b50682c71166.js
Line: 13
Column: 69
Window Location: http://forum.motgift.nu/users/mikael

Update 11:19

We have closed the public registration while waiting for a solution to this problem.


(Dan Eriksson) #2

Now the first user profile affected (“Johanna”) is reachable, but not the second one (“Mikael”). We have not changed anything. Is there any logic to this?

We’ve opened up for registrations again to see if the problem still exists with new users.

Update 12:48

New user has the same problems. When trying to go through the admin panel and impersonating him I just get logged out.


(Dan Eriksson) #3

SOLVED

This error occurs when the user has not confirmed their account via the e-mail. Maybe this should be made more clear on the “new”-tab of the admin panel?


(Jeff Atwood) #4

Possibly, we could indicate unvalidated accounts via a grey unclickable username and email:

Still, you should not be getting JS errors on visiting these unvalidated profiles, though. @neil can you check?


User's Name not displayed on profile?
(Neil Lalonde) #5

I made some changes to handle this today. The user list looks like this for users who haven’t activated their accounts:

On the user page, the username and email will show in grey to be consistent, and the buttons that don’t work yet will not appear (Show Public Profile, Impersonate, Logout).


(Jeff Atwood) #6