I am using VBO and VBE 8.x-2.6 and they worked perrfectly until I updated VBO to 4.1.5. Now when I open a view page where VBO and VBE are used, I'm getting error 500 and the following message in the error log:

Declaration of Drupal\\views_bulk_edit\\Plugin\\Action\\ModifyEntityValues::buildPreConfigurationForm(array $form, array $values, Drupal\\Core\\Form\\FormStateInterface $form_state) must be compatible with Drupal\\views_bulk_operations\\Action\\ViewsBulkOperationsPreconfigurationInterface::buildPreConfigurationForm(array $element, array $values, Drupal\\Core\\Form\\FormStateInterface $form_state): array in ***/public_html/web/modules/contrib/views_bulk_edit/src/Plugin/Action/ModifyEntityValues.php on line 140

Comments

marassa created an issue. See original summary.

marassa’s picture

PS Drupal core 9.4.5. Rollback to VBO 4.1.4 solved the problem but obviously something is wrong with 4.1.5.

rajab natshah’s picture

Facing the same issue with the ( Content, People, Media ) admin pages
Having the issue in all custom or changed views of content admin pages

The fix MR in the following issue is working
#3311552: Match method declarations with interface

rajab natshah’s picture

Issue tags: +PHP 8.0, +PHP 8.1
paintingguy’s picture

same for me. Had to revert back to 4.1.4

marassa’s picture

Thank you Rajab, the VBE patch worked perfectly. I thought I did a thorough search for the error, apparently not thorough enough...
Did not dive deep enough into the code to understand what exactly happened, but I guess this issue can be closed now.
Not sure it's connected to the PHP version as I am on 7.4 and still had the problem.

rajab natshah’s picture

Status: Active » Closed (duplicate)
Issue tags: -PHP 8.0, -PHP 8.1

Grate Andrei, If you allow me to close this issue as a duplicate and link to #3311552: Match method declarations with interface
Removing the PHP version from issue tags too.

marassa’s picture

Not to reopen this issue, just in case someone stumbles upon this page in search of a solution, the issue is resolved in Views Bulk Edit release 2.7.