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

bigboy created an issue. See original summary.

bigboy’s picture

StatusFileSize
new1.18 KB

Alright, made a patch.

bigboy’s picture

Status: Active » Needs review
bigboy’s picture

Issue summary: View changes
bigboy’s picture

bigboy’s picture

StatusFileSize
new1.06 KB

Fixed paths.

Status: Needs review » Needs work

The last submitted patch, 6: vbo-queue-save-error-3316585.patch, failed testing. View results