Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.

How was an empty handle in qa_users possible?

+2 votes
131 views
asked Jan 31, 2016 in Q2A Core by q2apro
Found in my error log:

Undefined offset: 4148 qa-include/pages/users.php on line 68

Then checked the user with userid 4148:

handle is "" // empty!

How is that possible? Shouldn't that be caught on the registration level? I disabled the name change of users, so it must be registration level.
Q2A version: 1.7.1

1 Answer

0 votes
answered Feb 3, 2016 by Scott

This could happen if they use emoji characters. They are not "empty" in PHP, but then MySQL discards them. See this question.

This is fixed in 1.7.3 which has just been released!

commented Feb 10, 2016 by q2apro
Very interesting, how could you find out about this?!
commented Feb 10, 2016 by Scott
A lot of googling and testing!
...