Happens even if uncheck the "Add an item to the queue" option.
After clicking Apply button I receive error in console and log.
Log:
TypeError: call_user_func_array(): Argument #1 ($callback) must be a valid callback, function "Drupal\vbo_queue\Plugin\Action\VboEnqueue" not found or invalid function name in call_user_func_array() (line 282 of /var/www/site.com/web/core/lib/Drupal/Core/Form/FormValidator.php)
#0 /var/www/site.com/web/core/lib/Drupal/Core/Form/FormValidator.php(282): call_user_func_array()
...
#30 /var/www/site.com/web/index.php(19): Drupal\Core\DrupalKernel->handle()
#31 {main}
I'm surprised, that nobody found this.
web/modules/contrib/vbo_queue/src/Plugin/Action/VboEnqueue.php:148
Before:
'#element_validate' => [static::class, 'validateYamlData'],
Needs to be changed to:
'#element_validate' => [[static::class, 'validateYamlData']],
web/modules/contrib/vbo_queue/src/Plugin/Action/VboEnqueue.php:164
Before:
Yaml::decode($element['value']);
Needs to be changed to:
Yaml::decode($element['#value']);
Comments
Comment #2
bigboy commentedAlright, made a patch.
Comment #3
bigboy commentedComment #4
bigboy commentedComment #5
bigboy commentedComment #6
bigboy commentedFixed paths.