Image field appears empty in imported media item

Created on 3 January 2025, 3 months ago

Problem/Motivation

It imports successfully. However, when you want to edit the imported media element( for example you want to crop the image) , you see that the image field is empty on media edit form. However, the imported image is present in the files list, but the image field in the media element is empty.

Another problem is that it causes an error when updating the imported elements. For example, you want to update the body field. It gives an error unless you delete the media element in the previous import process.

Any idea, please? Thanks

The website encountered an unexpected error. Try again later.Error: Call to undefined function Drupal\feeds_tamper_media_url\Plugin\Tamper\last() in Drupal\feeds_tamper_media_url\Plugin\Tamper\CreateMedia->findFile() (line 205 of modules/contrib/feeds_tamper_media_url/src/Plugin/Tamper/CreateMedia.php). Drupal\feeds_tamper_media_url\Plugin\Tamper\CreateMedia->tamper() (Line: 120)
Drupal\feeds_tamper\EventSubscriber\FeedsSubscriber->alterItem() (Line: 78)
Drupal\feeds_tamper\EventSubscriber\FeedsSubscriber->afterParse()
call_user_func() (Line: 111)
Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch() (Line: 41)
Drupal\feeds\FeedsExecutable->dispatchEvent() (Line: 243)
Drupal\feeds\FeedsExecutable->doParse() (Line: 107)
Drupal\feeds\FeedsExecutable->processItem() (Line: 296)
_batch_process() (Line: 138)
_batch_do() (Line: 94)
_batch_page() (Line: 52)
Drupal\system\Controller\BatchController->batchPage()
call_user_func_array() (Line: 123)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 638)
Drupal\Core\Render\Renderer->executeInRenderContext() (Line: 121)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext() (Line: 97)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 181)
Symfony\Component\HttpKernel\HttpKernel->handleRaw() (Line: 76)
Symfony\Component\HttpKernel\HttpKernel->handle() (Line: 53)
Drupal\Core\StackMiddleware\Session->handle() (Line: 48)
Drupal\Core\StackMiddleware\KernelPreHandle->handle() (Line: 28)
Drupal\Core\StackMiddleware\ContentLength->handle() (Line: 32)
Drupal\big_pipe\StackMiddleware\ContentLength->handle() (Line: 116)
Drupal\page_cache\StackMiddleware\PageCache->pass() (Line: 90)
Drupal\page_cache\StackMiddleware\PageCache->handle() (Line: 57)
Drupal\advban\AdvbanMiddleware->handle() (Line: 50)
Drupal\ban\BanMiddleware->handle() (Line: 263)
Drupal\shield\ShieldMiddleware->bypass() (Line: 162)
Drupal\shield\ShieldMiddleware->handle() (Line: 48)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle() (Line: 51)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle() (Line: 36)
Drupal\Core\StackMiddleware\AjaxPageState->handle() (Line: 51)
Drupal\Core\StackMiddleware\StackedHttpKernel->handle() (Line: 741)
Drupal\Core\DrupalKernel->handle() (Line: 19)
🐛 Bug report
Status

Active

Version

1.0

Component

Code

Created by

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

Comments & Activities

Production build 0.71.5 2024