Error after click Add Store Locator /store_locator/add
does not work with filefield_paths

Error: Call to undefined method Drupal\Core\Field\BaseFieldDefinition::getThirdPartySettings() in filefield_paths_field_widget_form_alter() (line 209 of /DRUPALFOLDER/modules/filefield_paths/filefield_paths.module) #0 /DRUPALFOLDER/core/lib/Drupal/Core/Extension/ModuleHandler.php(539): filefield_paths_field_widget_form_alter(Array, Object(Drupal\Core\Form\FormState), Array) #1 /DRUPALFOLDER/core/lib/Drupal/Core/Field/WidgetBase.php(355): Drupal\Core\Extension\ModuleHandler->alter('field_widget_fo...', Array, Object(Drupal\Core\Form\FormState), Array) #2 /DRUPALFOLDER/core/modules/file/src/Plugin/Field/FieldWidget/FileWidget.php(162): Drupal\Core\Field\WidgetBase->formSingleElement(Object(Drupal\file\Plugin\Field\FieldType\FileFieldItemList), 0, Array, Array, Object(Drupal\Core\Form\FormState)) #3 /DRUPALFOLDER/core/modules/image/src/Plugin/Field/FieldWidget/ImageWidget.php(116): Drupal\file\Plugin\Field\FieldWidget\FileWidget->formMultipleElements(Object(Drupal\file\Plugin\Field\FieldType\FileFieldItemList), Array, Object(Drupal\Core\Form\FormState)) #4 /DRUPALFOLDER/core/lib/Drupal/Core/Field/WidgetBase.php(113): Drupal\image\Plugin\Field\FieldWidget\ImageWidget->formMultipleElements(Object(Drupal\file\Plugin\Field\FieldType\FileFieldItemList), Array, Object(Drupal\Core\Form\FormState)) #5 /DRUPALFOLDER/core/lib/Drupal/Core/Entity/Entity/EntityFormDisplay.php(178): Drupal\Core\Field\WidgetBase->form(Object(Drupal\file\Plugin\Field\FieldType\FileFieldItemList), Array, Object(Drupal\Core\Form\FormState)) #6 /DRUPALFOLDER/core/lib/Drupal/Core/Entity/ContentEntityForm.php(125): Drupal\Core\Entity\Entity\EntityFormDisplay->buildForm(Object(Drupal\store_locator\Entity\StoreLocator), Array, Object(Drupal\Core\Form\FormState)) #7 /DRUPALFOLDER/core/lib/Drupal/Core/Entity/EntityForm.php(144): Drupal\Core\Entity\ContentEntityForm->form(Array, Object(Drupal\Core\Form\FormState)) #8 /DRUPALFOLDER/modules/gmap_store_locator/src/Form/StoreLocatorForm.php(74): Drupal\Core\Entity\EntityForm->buildForm(Array, Object(Drupal\Core\Form\FormState)) #9 [internal function]: Drupal\store_locator\Form\StoreLocatorForm->buildForm(Array, Object(Drupal\Core\Form\FormState)) #10 /DRUPALFOLDER/core/lib/Drupal/Core/Form/FormBuilder.php(520): call_user_func_array(Array, Array) #11 /DRUPALFOLDER/core/lib/Drupal/Core/Form/FormBuilder.php(277): Drupal\Core\Form\FormBuilder->retrieveForm('store_locator_a...', Object(Drupal\Core\Form\FormState)) #12 /DRUPALFOLDER/core/lib/Drupal/Core/Controller/FormController.php(91): Drupal\Core\Form\FormBuilder->buildForm(Object(Drupal\store_locator\Form\StoreLocatorForm), Object(Drupal\Core\Form\FormState)) #13 [internal function]: Drupal\Core\Controller\FormController->getContentResult(Object(Symfony\Component\HttpFoundation\Request), Object(Drupal\Core\Routing\RouteMatch)) #14 /DRUPALFOLDER/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(123): call_user_func_array(Array, Array) #15 /DRUPALFOLDER/core/lib/Drupal/Core/Render/Renderer.php(573): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() #16 /DRUPALFOLDER/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(124): Drupal\Core\Render\Renderer->executeInRenderContext(Object(Drupal\Core\Render\RenderContext), Object(Closure)) #17 /DRUPALFOLDER/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(97): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext(Array, Array) #18 /DRUPALFOLDER/vendor/symfony/http-kernel/HttpKernel.php(151): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() #19 /DRUPALFOLDER/vendor/symfony/http-kernel/HttpKernel.php(68): Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object(Symfony\Component\HttpFoundation\Request), 1) #20 /DRUPALFOLDER/core/lib/Drupal/Core/StackMiddleware/Session.php(57): Symfony\Component\HttpKernel\HttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #21 /DRUPALFOLDER/core/lib/Drupal/Core/StackMiddleware/KernelPreHandle.php(47): Drupal\Core\StackMiddleware\Session->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #22 /DRUPALFOLDER/core/modules/page_cache/src/StackMiddleware/PageCache.php(106): Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #23 /DRUPALFOLDER/core/modules/page_cache/src/StackMiddleware/PageCache.php(85): Drupal\page_cache\StackMiddleware\PageCache->pass(Object(Symfony\Component\HttpFoundation\Request), 1, true) #24 /DRUPALFOLDER/core/lib/Drupal/Core/StackMiddleware/ReverseProxyMiddleware.php(47): Drupal\page_cache\StackMiddleware\PageCache->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #25 /DRUPALFOLDER/core/lib/Drupal/Core/StackMiddleware/NegotiationMiddleware.php(52): Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #26 /DRUPALFOLDER/vendor/stack/builder/src/Stack/StackedHttpKernel.php(23): Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #27 /DRUPALFOLDER/core/lib/Drupal/Core/DrupalKernel.php(694): Stack\StackedHttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #28 /DRUPALFOLDER/index.php(19): Drupal\Core\DrupalKernel->handle(Object(Symfony\Component\HttpFoundation\Request)) #29 {main}.

Comments

martinpetracek.com created an issue. See original summary.

mandus.cz’s picture

Status: Active » Closed (works as designed)