in our custom module we are creating base field of key_value_long type. During creation process it's calling `filter_default_formats()` to get default_format value. However under some weird circumstances `\Drupal::currentUser()` returns empty object though `\Drupal::currentUser()->id()` returns correct value (it has separate property for storing id). However when I try to load user account with this id, it goes into endless loop. Have you encountered with something like this? Interesting thing is that we get this error only with vanilla Drupal, on Lightning it’s working correctly. Attached patch solves issue for us for now.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | 2930484-2.patch | 1.35 KB | mirom |
Comments
Comment #2
mirom commentedComment #3
mirom commentedComment #4
rosk0Comment #5
mmcconnell commentedThis patch works for me.
Comment #7
mirom commented