Problem

On some production sites, I git this fatal error when rendering previews:

TypeError: call_user_func_array(): Argument #1 ($callback) must be a valid 
callback, no array or string given in call_user_func_array() (Zeile 72 in 
/app/web/core/modules/field_ui/src/Element/FieldUiTable.php)

#0 /app/web/core/modules/field_ui/src/Element/FieldUiTable.php(72): call_user_func_array()
#1 [internal function]: Drupal\field_ui\Element\FieldUiTable::tablePreRender()
#2 /app/web/core/lib/Drupal/Core/Security/DoTrustedCallbackTrait.php(107): call_user_func_array()
#3 /app/web/core/lib/Drupal/Core/Render/Renderer.php(876): 
Drupal\Core\Render\Renderer->doTrustedCallback()
#4 /app/web/core/lib/Drupal/Core/Render/Renderer.php(438): 
Drupal\Core\Render\Renderer->doCallback()
#5 /app/web/core/lib/Drupal/Core/Render/Renderer.php(250): 
Drupal\Core\Render\Renderer->doRender()

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

fago created an issue. See original summary.

fago’s picture

Status: Active » Needs review
fago’s picture

turns out there is more from the field UI js logic left-over that causes this. Seems like that is all not needed in our form, since related to region handling. So getting rid of this, this seems to make it work in this complex case + generally.

  • fago committed 25b15390 on 3.x
    fix: #3561639 Fix fatal error when rendering JSON preview at display...
fago’s picture

Status: Needs review » Fixed

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

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