Conflict with layout builder in core

Created on 29 November 2019, about 5 years ago
Updated 1 January 2025, 22 days ago

After clone a content type. Following error occur.

An AJAX HTTP error occurred.
HTTP Result Code: 200
Debugging information follows.
Path: /azalen/batch?id=112&op=do_nojs&op=do
StatusText: OK
ResponseText: Recoverable fatal error: Object of class Drupal\layout_builder\Section could not be converted to string in Drupal\content_type_clone\Helpers\ContentTypeCloneHelper::replaceInArray() (line 38 of C:\xamppnew\htdocs\azalen\modules\contrib\content_type_clone\src\Helpers\ContentTypeCloneHelper.php).

After disable the layout builder in the the manage display, the content type could be cloned.

🐛 Bug report
Status

Needs review

Version

1.0

Component

Code

Created by

🇧🇪Belgium belba

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • Same:
    TypeError: str_replace(): Argument #3 ($subject) must be of type array|string, Drupal\layout_builder\Section given in str_replace() (line 32 of /var/www/html/web/modules/contrib/content_type_clone/src/Helpers/ContentTypeCloneHelper.php).

    There is no patch to review here though.

Production build 0.71.5 2024