Problem/Motivation

Error To Save:

Warning: call_user_func_array() expects parameter 1 to be a valid callback, function 'contactinfo_validate_email' not found or invalid function name in Drupal\Core\Form\FormValidator->doValidateForm() (line 282 of core/lib/Drupal/Core/Form/FormValidator.php).
Drupal\Core\Form\FormValidator->doValidateForm(Array, Object) (Line: 238)
Drupal\Core\Form\FormValidator->doValidateForm(Array, Object) (Line: 238)
Drupal\Core\Form\FormValidator->doValidateForm(Array, Object, 'microformats_admin_settings') (Line: 118)
Drupal\Core\Form\FormValidator->validateForm('microformats_admin_settings', Array, Object) (Line: 588)
Drupal\Core\Form\FormBuilder->processForm('microformats_admin_settings', Array, Object) (Line: 320)
Drupal\Core\Form\FormBuilder->buildForm(Object, Object) (Line: 73)
Drupal\Core\Controller\FormController->getContentResult(Object, Object)
call_user_func_array(Array, Array) (Line: 123)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 564)
Drupal\Core\Render\Renderer->executeInRenderContext(Object, Object) (Line: 124)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext(Array, Array) (Line: 97)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 159)
Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object, 1) (Line: 81)
Symfony\Component\HttpKernel\HttpKernel->handle(Object, 1, 1) (Line: 58)
Drupal\Core\StackMiddleware\Session->handle(Object, 1, 1) (Line: 48)
Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object, 1, 1) (Line: 144)
Drupal\lite_speed_cache\StackMiddleware\LiteSpeedCache->pass(Object, 1, 1) (Line: 120)
Drupal\lite_speed_cache\StackMiddleware\LiteSpeedCache->handle(Object, 1, 1) (Line: 106)
Drupal\page_cache\StackMiddleware\PageCache->pass(Object, 1, 1) (Line: 85)
Drupal\page_cache\StackMiddleware\PageCache->handle(Object, 1, 1) (Line: 48)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object, 1, 1) (Line: 51)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object, 1, 1) (Line: 23)
Stack\StackedHttpKernel->handle(Object, 1, 1) (Line: 709)
Drupal\Core\DrupalKernel->handle(Object) (Line: 19)

CommentFileSizeAuthor
#2 contactinfo.patch925 bytesmarelpup

Comments

Nelo_Drup created an issue. See original summary.

marelpup’s picture

StatusFileSize
new925 bytes

Ran into the same problem :

The email fields uses a function from the contactinfo module which is not used anymore
i added a line to check if the fucntion is available , else we do nothing. ideally we would use a render array with input type email

mlncn’s picture

Version: 2.0.0-beta2 » 2.0.x-dev
Status: Active » Needs review

Thanks, still looks like the best fix for the moment.

  • mlncn committed 988fdc61 on 2.0.x
    [#3319749] feat: Error on save
    
    if no contactinfo function for...
lalop’s picture

This patch seems to be present on 2.0.X