I have occasionally seen this error on some installations when performing command-line operations like cache-clear
recently. I don’t really see a pattern, unfortunately, and can’t find anything in the Grav repo. It happens both on installations with Login/Admin plugins and without.
Here’s what I see in the logs:
2023-08-01 04:28:40 [CRITICAL] User is not set.
and here is the output to bin/grav cache-clear
:
In AbstractTransportFactory.php line 46:
User is not set.
cache [--invalidate] [--purge] [--all] [--assets-only] [--images-only] [--cache-only] [--tmp-only] [-h|--help] [-q|--quiet] [-v|vv|vvv|--verbose] [-V|--version] [--ansi] [--no-ansi] [-n|--no-interaction] [--env [ENV]] [--lang [LANG]] [--] <command>
AbstractTransportFactory
seems to be a Symfony mailer class but that has so far not helped me track this down. I have recently started using the new mail plugins. That could be a pattern. The mailers work.
The sites serve content just fine.
I’ll appreciate any clues. Please let me know if I can provide any more information.