For what it's worth I've never heard of this. Did the anonymous user only get removed once? Were you deleting some other users around that time?

Of course, 4.6 has had no official support since 5.0 was released, so your odds of getting any core developer to look into this are basically nil :(

--mvc

In one case, I was removing a lot of old spam users on the system. Lots of user activity editing activity which is most likely when the anonymous user went AWOL (although too much activity for me to be able to pinpoint exactly what I did that triggered it to happen). In the second case - the site admin may have been doing work, but I'm not sure.

I'm not even sure how I would report this as a bug report even if 4.6 was still supported. I know reports like: "X suddenly disappeared" are hard to fix! I'm posting it here in the hopes that someone might say: something similar happened to me and here are the things in common that might help us identify a cause/effect type relationship.

Thanks for the post.

--jamie

To fix the problem you'll want to execute the following two SQL statements:

INSERT INTO users SET uid = 0, name = 'anonymous'; INSERT INTO users_roles VALUES(0,1); DELETE FROM cache;

--jamie

This happened in my forum, and your code allowed me to fix it. This would have taken me about a century to find on my own. Thank you!

The mystery is, why did the 'anonymous' account disappear? I saw another message from someone saying he'd been doing a lot of user editing just before it happened. So was I. It must be related to that.

--pro

Had the same trouble. This fixed it. Many thanks for posting.

--cls