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
Comment #2
marassa commentedPS Drupal core 9.4.5. Rollback to VBO 4.1.4 solved the problem but obviously something is wrong with 4.1.5.
Comment #3
rajab natshahFacing 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
Comment #4
rajab natshahComment #5
paintingguy commentedsame for me. Had to revert back to 4.1.4
Comment #6
marassa commentedThank 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.
Comment #7
rajab natshahGrate 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.
Comment #8
marassa commentedNot 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.