I'm always getting this error after saving a node :

Warning: call_user_func_array() expects parameter 1 to be a valid callback, function 'entityreference_dragdrop_element_validate' not found or invalid function name in Drupal\Core\Form\FormValidator->doValidateForm() (Zeile 277 in /www/htdocs/XXXXXXX/XXXXXXXX/core/lib/Drupal/Core/Form/FormValidator.php).

CommentFileSizeAuthor
#4 php_error_warning-2781381-4.patch1.17 KBznak

Comments

Micha1111 created an issue. See original summary.

almunnings’s picture

I just made a custom module that does the following in a .module file.

function entityreference_dragdrop_element_validate($element, &$form_state)
{
    // Whatever
}

The problem is the function entityreference_dragdrop_element_validate referenced in the form api #element_validate does not exist. (EntityReferenceDragDropWidget.php)

znak’s picture

Assigned: Unassigned » znak
znak’s picture

Assigned: znak » Unassigned
Status: Active » Needs review
StatusFileSize
new1.17 KB

This documentation have example for $element['#element_validate']
In this patch I use this information. Please, check up.

sergei_brill’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

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