We just decided. Apparently, user 0 was absent, someone deleted it, or some module did it. Having inserted it into the database, we again received our messages.
This is what you need to do:
INSERT INTO `users` (`uid`, `name`, `pass`, `mail`, `mode`, `sort`, `threshold`, `theme`, `signature`, `signature_format`, `created`, `access`, `login`, `status`, `timezone`, `language`, `picture`, `init`, `data`) VALUES (0, '', '', '', 0, 0, 0, '', '', 0, 0, 0, 0, 0, NULL, '', '', '', NULL);
And after that set uid to 0, because uid is an auto increment !!
I donβt know yet how this error is with drupal_set_message.