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.

CommentFileSizeAuthor
#2 2930484-2.patch1.35 KBmirom

Comments

mirom created an issue. See original summary.

mirom’s picture

StatusFileSize
new1.35 KB
mirom’s picture

rosk0’s picture

Status: Active » Needs review
mmcconnell’s picture

This patch works for me.

  • mirom authored 38e8fed on 8.x-1.x
    Issue #2930484 by mirom: Key_value_long type base field creation fails
    
mirom’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.