- Issue created by @jnycz
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 /app/web/modules/contrib/feeds_tamper_media_url/src/Plugin/Tamper/CreateMedia.php).
Backtrace
#0 /app/web/modules/contrib/feeds_tamper_media_url/src/Plugin/Tamper/CreateMedia.php(109): Drupal\feeds_tamper_media_url\Plugin\Tamper\CreateMedia->findFile('67350fa324db1cc...')
#1 /app/web/modules/contrib/feeds_tamper/src/EventSubscriber/FeedsSubscriber.php(120): Drupal\feeds_tamper_media_url\Plugin\Tamper\CreateMedia->tamper('https://cdn.pro...', Object(Drupal\feeds_tamper\Adapter\TamperableFeedItemAdapter))
#2 /app/web/modules/contrib/feeds_tamper/src/EventSubscriber/FeedsSubscriber.php(78): Drupal\feeds_tamper\EventSubscriber\FeedsSubscriber->alterItem(Object(Drupal\feeds\Feeds\Item\DynamicItem), Object(Drupal\feeds\Event\ParseEvent), Array)
#3 [internal function]: Drupal\feeds_tamper\EventSubscriber\FeedsSubscriber->afterParse(Object(Drupal\feeds\Event\ParseEvent), 'feeds.parse', Object(Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher))
#4 /app/web/core/lib/Drupal/Component/EventDispatcher/ContainerAwareEventDispatcher.php(111): call_user_func(Array, Object(Drupal\feeds\Event\ParseEvent), 'feeds.parse', Object(Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher))
#5 /app/web/modules/contrib/feeds/src/Event/EventDispatcherTrait.php(41): Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch(Object(Drupal\feeds\Event\ParseEvent), 'feeds.parse')
#6 /app/web/modules/contrib/feeds/src/FeedsExecutable.php(243): Drupal\feeds\FeedsExecutable->dispatchEvent('feeds.parse', Object(Drupal\feeds\Event\ParseEvent))
#7 /app/web/modules/contrib/feeds/src/FeedsExecutable.php(107): Drupal\feeds\FeedsExecutable->doParse(Object(Drupal\feeds\Entity\Feed), Object(Drupal\feeds\Result\FetcherResult))
#8 /app/web/core/includes/batch.inc(297): Drupal\feeds\FeedsExecutable->processItem(Object(Drupal\feeds\Entity\Feed), 'parse', Array, Array)
#9 /app/web/core/includes/batch.inc(139): _batch_process()
#10 /app/web/core/includes/batch.inc(95): _batch_do()
#11 /app/web/core/modules/system/src/Controller/BatchController.php(52): _batch_page(Object(Symfony\Component\HttpFoundation\Request))
#12 [internal function]: Drupal\system\Controller\BatchController->batchPage(Object(Symfony\Component\HttpFoundation\Request))
#13 /app/web/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(123): call_user_func_array(Array, Array)
#14 /app/web/core/lib/Drupal/Core/Render/Renderer.php(638): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}()
#15 /app/web/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(121): Drupal\Core\Render\Renderer->executeInRenderContext(Object(Drupal\Core\Render\RenderContext), Object(Closure))
#16 /app/web/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(97): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext(Array, Array)
#17 /app/vendor/symfony/http-kernel/HttpKernel.php(181): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}()
#18 /app/vendor/symfony/http-kernel/HttpKernel.php(76): Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object(Symfony\Component\HttpFoundation\Request), 1)
#19 /app/web/core/lib/Drupal/Core/StackMiddleware/Session.php(53): Symfony\Component\HttpKernel\HttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#20 /app/web/core/lib/Drupal/Core/StackMiddleware/KernelPreHandle.php(48): Drupal\Core\StackMiddleware\Session->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#21 /app/web/core/lib/Drupal/Core/StackMiddleware/ContentLength.php(28): Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#22 /app/web/core/lib/Drupal/Core/StackMiddleware/ReverseProxyMiddleware.php(48): Drupal\Core\StackMiddleware\ContentLength->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#23 /app/web/core/lib/Drupal/Core/StackMiddleware/NegotiationMiddleware.php(51): Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#24 /app/web/core/lib/Drupal/Core/StackMiddleware/AjaxPageState.php(36): Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#25 /app/web/core/lib/Drupal/Core/StackMiddleware/StackedHttpKernel.php(51): Drupal\Core\StackMiddleware\AjaxPageState->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#26 /app/web/core/lib/Drupal/Core/DrupalKernel.php(741): Drupal\Core\StackMiddleware\StackedHttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#27 /app/web/index.php(19): Drupal\Core\DrupalKernel->handle(Object(Symfony\Component\HttpFoundation\Request))
#28 {main}
Use end() instead
Active
1.0
Code