Strict warning: call_user_func_array() expects parameter 1 to be a valid callback, non-static method Drupal\geocoder_autocomplete\Plugin\Field\FieldWidget\GeocoderAutocomplete::validateFormElement() should not be called statically in Drupal\Core\Form\FormValidator->doValidateForm() (line 277 of /Users/carlosmirandalevy/Sites/devdesktop/drupal8/core/lib/Drupal/Core/Form/FormValidator.php) #0 /Users/carlosmirandalevy/Sites/devdesktop/drupal8/core/includes/bootstrap.inc(548): _drupal_error_handler_real(2048, 'call_user_func_...', '/Users/carlosmi...', 277, Array) #1 [internal function]: _drupal_error_handler(2048, 'call_user_func_...', '/Users/carlosmi...', 277, Array) #2 /Users/carlosmirandalevy/Sites/devdesktop/drupal8/core/lib/Drupal/Core/Form/FormValidator.php(277): call_user_func_array(Array, Array) #3 /Users/carlosmirandalevy/Sites/devdesktop/drupal8/core/lib/Drupal/Core/Form/FormValidator.php(235): Drupal\Core\Form\FormValidator->doValidateForm(Array, Object(Drupal\Core\Form\FormState)) #4 /Users/carlosmirandalevy/Sites/devdesktop/drupal8/core/lib/Drupal/Core/Form/FormValidator.php(235): Drupal\Core\Form\FormValidator->doValidateForm(Array, Object(Drupal\Core\Form\FormState)) #5 /Users/carlosmirandalevy/Sites/devdesktop/drupal8/core/lib/Drupal/Core/Form/FormValidator.php(235): Drupal\Core\Form\FormValidator->doValidateForm(Array, Object(Drupal\Core\Form\FormState)) #6 /Users/carlosmirandalevy/Sites/devdesktop/drupal8/core/lib/Drupal/Core/Form/FormValidator.php(235): Drupal\Core\Form\FormValidator->doValidateForm(Array, Object(Drupal\Core\Form\FormState)) #7 /Users/carlosmirandalevy/Sites/devdesktop/drupal8/core/lib/Drupal/Core/Form/FormValidator.php(119): Drupal\Core\Form\FormValidator->doValidateForm(Array, Object(Drupal\Core\Form\FormState), 'node_page_edit_...') #8 /Users/carlosmirandalevy/Sites/devdesktop/drupal8/core/lib/Drupal/Core/Form/FormBuilder.php(571): Drupal\Core\Form\FormValidator->validateForm('node_page_edit_...', Array, Object(Drupal\Core\Form\FormState)) #9 /Users/carlosmirandalevy/Sites/devdesktop/drupal8/core/lib/Drupal/Core/Form/FormBuilder.php(314): Drupal\Core\Form\FormBuilder->processForm('node_page_edit_...', Array, Object(Drupal\Core\Form\FormState)) #10 /Users/carlosmirandalevy/Sites/devdesktop/drupal8/core/lib/Drupal/Core/Controller/FormController.php(74): Drupal\Core\Form\FormBuilder->buildForm(Object(Drupal\node\NodeForm), Object(Drupal\Core\Form\FormState)) #11 [internal function]: Drupal\Core\Controller\FormController->getContentResult(Object(Symfony\Component\HttpFoundation\Request), Object(Drupal\Core\Routing\RouteMatch)) #12 /Users/carlosmirandalevy/Sites/devdesktop/drupal8/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(123): call_user_func_array(Array, Array) #13 /Users/carlosmirandalevy/Sites/devdesktop/drupal8/core/lib/Drupal/Core/Render/Renderer.php(574): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() #14 /Users/carlosmirandalevy/Sites/devdesktop/drupal8/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(124): Drupal\Core\Render\Renderer->executeInRenderContext(Object(Drupal\Core\Render\RenderContext), Object(Closure)) #15 /Users/carlosmirandalevy/Sites/devdesktop/drupal8/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(97): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext(Array, Array) #16 [internal function]: Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() #17 /Users/carlosmirandalevy/Sites/devdesktop/drupal8/vendor/symfony/http-kernel/HttpKernel.php(144): call_user_func_array(Object(Closure), Array) #18 /Users/carlosmirandalevy/Sites/devdesktop/drupal8/vendor/symfony/http-kernel/HttpKernel.php(64): Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object(Symfony\Component\HttpFoundation\Request), 1) #19 /Users/carlosmirandalevy/Sites/devdesktop/drupal8/core/lib/Drupal/Core/StackMiddleware/Session.php(57): Symfony\Component\HttpKernel\HttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #20 /Users/carlosmirandalevy/Sites/devdesktop/drupal8/core/lib/Drupal/Core/StackMiddleware/KernelPreHandle.php(47): Drupal\Core\StackMiddleware\Session->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #21 /Users/carlosmirandalevy/Sites/devdesktop/drupal8/core/modules/page_cache/src/StackMiddleware/PageCache.php(99): Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #22 /Users/carlosmirandalevy/Sites/devdesktop/drupal8/core/modules/page_cache/src/StackMiddleware/PageCache.php(78): Drupal\page_cache\StackMiddleware\PageCache->pass(Object(Symfony\Component\HttpFoundation\Request), 1, true) #23 /Users/carlosmirandalevy/Sites/devdesktop/drupal8/core/lib/Drupal/Core/StackMiddleware/ReverseProxyMiddleware.php(47): Drupal\page_cache\StackMiddleware\PageCache->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #24 /Users/carlosmirandalevy/Sites/devdesktop/drupal8/core/lib/Drupal/Core/StackMiddleware/NegotiationMiddleware.php(50): Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #25 /Users/carlosmirandalevy/Sites/devdesktop/drupal8/vendor/stack/builder/src/Stack/StackedHttpKernel.php(23): Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #26 /Users/carlosmirandalevy/Sites/devdesktop/drupal8/core/lib/Drupal/Core/DrupalKernel.php(652): Stack\StackedHttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #27 /Users/carlosmirandalevy/Sites/devdesktop/drupal8/index.php(19): Drupal\Core\DrupalKernel->handle(Object(Symfony\Component\HttpFoundation\Request)) #28 {main}.

Comments

Carlos Miranda Levy created an issue. See original summary.

Carlos Miranda Levy’s picture

Problem exists also on dev version.

smfmoreno’s picture

Hello Carlos,
do you find the solution for this issue?
Regards,
Sandra

sanduhrs’s picture

Title: Error registered on dblog when saving node (call_user_func_array() expects parameter 1 to be a valid callback, non-static method) » call_user_func_array() expects parameter 1 to be a valid callback

Having a look at this.

  • sanduhrs committed 575eef5 on 8.x-1.x
    Issue #2833066: call_user_func_array() expects parameter 1 to be a valid...
sanduhrs’s picture

Version: 8.x-1.0-alpha1 » 8.x-1.x-dev
Status: Active » Fixed

Should be fixed in latest dev-release.
Thanks for reporting!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.