Typo in Importer.php causes PHP notice

Created on 22 November 2019, almost 5 years ago
Updated 29 November 2023, 12 months ago

Notice: Undefined variable: field in Drupal\feeds_para_mapper\Importer->checkValuesChanges() (line 727 of /var/www/html/web/modules/contrib/feeds_para_mapper/src/Importer.php) #0 /var/www/html/web/core/includes/bootstrap.inc(587): _drupal_error_handler_real(8, 'Undefined varia...', '/var/www/html/w...', 727, Array) #1 /var/www/html/web/modules/contrib/feeds_para_mapper/src/Importer.php(727): _drupal_error_handler(8, 'Undefined varia...', '/var/www/html/w...', 727, Array) #2 /var/www/html/web/modules/contrib/feeds_para_mapper/src/Importer.php(423): Drupal\feeds_para_mapper\Importer->checkValuesChanges(Array, Array) #3 /var/www/html/web/modules/contrib/feeds_para_mapper/src/Importer.php(221): Drupal\feeds_para_mapper\Importer->appendParagraphs(Array, Array) #4 /var/www/html/web/modules/contrib/feeds_para_mapper/src/Importer.php(101): Drupal\feeds_para_mapper\Importer->initHostParagraphs() #5 /var/www/html/web/modules/contrib/feeds_para_mapper/src/Feeds/Target/WrapperTarget.php(138): Drupal\feeds_para_mapper\Importer->import(Object(Drupal\feeds\Entity\FeedType), Object(Drupal\feeds\Entity\Feed), Object(Drupal\ap_job\Entity\Job), Object(Drupal\field\Entity\FieldConfig), Array, Array, Object(Drupal\feeds\Feeds\Target\Number)) #6 /var/www/html/web/modules/contrib/feeds/src/Feeds/Processor/EntityProcessorBase.php(828): Drupal\feeds_para_mapper\Feeds\Target\WrapperTarget->setTarget(Object(Drupal\feeds\Entity\Feed), Object(Drupal\ap_job\Entity\Job), 'product_field_p...', Array) #7 /var/www/html/web/modules/contrib/feeds/src/Feeds/Processor/EntityProcessorBase.php(150): Drupal\feeds\Feeds\Processor\EntityProcessorBase->map(Object(Drupal\feeds\Entity\Feed), Object(Drupal\ap_job\Entity\Job), Object(Drupal\feeds\Feeds\Item\DynamicItem)) #8 /var/www/html/web/modules/contrib/feeds/src/EventSubscriber/LazySubscriber.php(109): Drupal\feeds\Feeds\Processor\EntityProcessorBase->process(Object(Drupal\feeds\Entity\Feed), Object(Drupal\feeds\Feeds\Item\DynamicItem), Object(Drupal\feeds\State)) #9 [internal function]: Drupal\feeds\EventSubscriber\LazySubscriber->Drupal\feeds\EventSubscriber\{closure}(Object(Drupal\feeds\Event\ProcessEvent), 'feeds.process', Object(Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher)) #10 /var/www/html/web/core/lib/Drupal/Component/EventDispatcher/ContainerAwareEventDispatcher.php(111): call_user_func(Object(Closure), Object(Drupal\feeds\Event\ProcessEvent), 'feeds.process', Object(Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher)) #11 /var/www/html/web/modules/contrib/feeds/src/Event/EventDispatcherTrait.php(38): Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch('feeds.process', Object(Drupal\feeds\Event\ProcessEvent)) #12 /var/www/html/web/modules/contrib/feeds/src/FeedImportHandler.php(398): Drupal\feeds\FeedHandlerBase->dispatchEvent('feeds.process', Object(Drupal\feeds\Event\ProcessEvent)) #13 /var/www/html/web/modules/contrib/feeds/src/FeedImportHandler.php(201): Drupal\feeds\FeedImportHandler->doProcess(Object(Drupal\feeds\Entity\Feed), Object(Drupal\feeds\Feeds\Item\DynamicItem)) #14 /var/www/html/web/core/includes/batch.inc(295): Drupal\feeds\FeedImportHandler->batchProcess(Object(Drupal\feeds\Entity\Feed), Object(Drupal\feeds\Feeds\Item\DynamicItem), Array) #15 /var/www/html/web/core/includes/batch.inc(137): _batch_process() #16 /var/www/html/web/core/includes/batch.inc(93): _batch_do() #17 /var/www/html/web/core/modules/system/src/Controller/BatchController.php(55): _batch_page(Object(Symfony\Component\HttpFoundation\Request)) #18 [internal function]: Drupal\system\Controller\BatchController->batchPage(Object(Symfony\Component\HttpFoundation\Request)) #19 /var/www/html/web/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(123): call_user_func_array(Array, Array) #20 /var/www/html/web/core/lib/Drupal/Core/Render/Renderer.php(582): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() #21 /var/www/html/web/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(124): Drupal\Core\Render\Renderer->executeInRenderContext(Object(Drupal\Core\Render\RenderContext), Object(Closure)) #22 /var/www/html/web/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(97): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext(Array, Array) #23 /var/www/html/vendor/symfony/http-kernel/HttpKernel.php(151): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() #24 /var/www/html/vendor/symfony/http-kernel/HttpKernel.php(68): Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object(Symfony\Component\HttpFoundation\Request), 1) #25 /var/www/html/web/core/lib/Drupal/Core/StackMiddleware/Session.php(57): Symfony\Component\HttpKernel\HttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #26 /var/www/html/web/core/lib/Drupal/Core/StackMiddleware/KernelPreHandle.php(47): Drupal\Core\StackMiddleware\Session->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #27 /var/www/html/web/core/modules/page_cache/src/StackMiddleware/PageCache.php(106): Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #28 /var/www/html/web/core/modules/page_cache/src/StackMiddleware/PageCache.php(85): Drupal\page_cache\StackMiddleware\PageCache->pass(Object(Symfony\Component\HttpFoundation\Request), 1, true) #29 /var/www/html/web/core/lib/Drupal/Core/StackMiddleware/ReverseProxyMiddleware.php(47): Drupal\page_cache\StackMiddleware\PageCache->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #30 /var/www/html/web/core/lib/Drupal/Core/StackMiddleware/NegotiationMiddleware.php(52): Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #31 /var/www/html/vendor/stack/builder/src/Stack/StackedHttpKernel.php(23): Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #32 /var/www/html/web/core/lib/Drupal/Core/DrupalKernel.php(693): Stack\StackedHttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #33 /var/www/html/web/index.php(19): Drupal\Core\DrupalKernel->handle(Object(Symfony\Component\HttpFoundation\Request)) #34 {main}.

๐Ÿ› Bug report
Status

Needs review

Version

1.0

Component

Code

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.

Production build 0.71.5 2024