Warning: Array to string conversion in entity_embed/src/Form/EntityEmbedDialog.php on line 839

Created on 28 May 2024, 10 months ago
Updated 15 July 2024, 9 months ago

Problem/Motivation

Having the following issue when trying to embed a media item:

{
  "message": "
An AJAX HTTP error occurred.
HTTP code: 200
Here are the errors.
Path: /fi/entity-embed/dialog/filtered_html/embed_media?_wrapper_format=drupal_ajax&ajax_form=1
Status text: parsererror
Full text of the reply: Warning: Array to string conversion in /app/drupal/web/modules/contrib/entity_embed/src/Form/EntityEmbedDialog.php on line 839
{
  "command": "editorDialogSave",
  "values": {
    "actions": {
      "back": "Back to",
      "save_modal": "Upload"
    },
    "attributes": {
      "data-caption": "Test123",
      "data-embed-button": "embed_media",
      "data-entity-embed-display": "view_mode:media.body_image",
      "data-entity-embed-display-settings": [],
      "data-entity-type": "media",
      "data-entity-uuid": "d5b4558e-3259-4b92-8864-9e04e3c62812"
    },
    "entity": "",
    "form_build_id": "form-699FKYWj-uBVetNxdcFfKMrJjehAc63KvzDOg-PGAKI",
    "form_token": "2vucL_aw-LJliEujzl2u5zp7hVSYRnN7o",
    "name": "AjaxError"
  }
}

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Closed: duplicate

Version

1.0

Component

Code

Created by

πŸ‡ͺπŸ‡ͺEstonia tormi Tallinn

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024