Adding a 'Paragraphs' field to a Feed's mapping throws error

Created on 20 October 2020, about 4 years ago
Updated 20 August 2024, 4 months ago

Problem/Motivation

I'm importing content via Feeds, and have hit an issue when mapping Paragraph fields that prevents importing content.

I'm unsure if this is related to Paragraphs or Feeds.

The error

Notice: Array to string conversion in Drupal\paragraphs\Feeds\Target\Paragraphs->getSummary() (line 118 of modules/contrib/paragraphs/src/Feeds/Target/Paragraphs.php).

Drupal\paragraphs\Feeds\Target\Paragraphs->getSummary() (Line: 389)
Drupal\feeds\Form\MappingForm->buildSummary(Object) (Line: 309)
Drupal\feeds\Form\MappingForm->buildRow(Array, Object, Array, 13) (Line: 128)
Drupal\feeds\Form\MappingForm->buildForm(Array, Object, Object)
call_user_func_array(Array, Array) (Line: 532)
Drupal\Core\Form\FormBuilder->retrieveForm('feeds_mapping_form', Object) (Line: 278)
Drupal\Core\Form\FormBuilder->buildForm(Object, Object) (Line: 91)
Drupal\Core\Controller\FormController->getContentResult(Object, Object)
call_user_func_array(Array, Array) (Line: 123)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 573)
Drupal\Core\Render\Renderer->executeInRenderContext(Object, Object) (Line: 124)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext(Array, Array) (Line: 97)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 151)
Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object, 1) (Line: 68)
Symfony\Component\HttpKernel\HttpKernel->handle(Object, 1, 1) (Line: 57)
Drupal\Core\StackMiddleware\Session->handle(Object, 1, 1) (Line: 47)
Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object, 1, 1) (Line: 106)
Drupal\page_cache\StackMiddleware\PageCache->pass(Object, 1, 1) (Line: 85)
Drupal\page_cache\StackMiddleware\PageCache->handle(Object, 1, 1) (Line: 47)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object, 1, 1) (Line: 52)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object, 1, 1) (Line: 23)
Stack\StackedHttpKernel->handle(Object, 1, 1) (Line: 708)
Drupal\Core\DrupalKernel->handle(Object) (Line: 19)

Google had no answers for me on this. I can create new content using this Content Type and the paragraph fields without issue.

Steps to reproduce

1. With Feeds and Paragraphs installed, create a new Content Type
2. Create a new Paragraphs type with at least one field
3. Add a new field to the Content Type that references the new paragraph type
3. Create a new Feed type that maps to the new Content Type
4. Under Mapping, select the paragraph field as your target, and set the desired Paragraph under 'paragraph type'
5. Click 'Save'

🐛 Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

🇦🇺Australia timfletcher

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

Merge Requests

Comments & Activities

Not all content is available!

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

Production build 0.71.5 2024