Problem/Motivation

The latest release of clientside_validation is not compatible with D9.3.21, I have not yet tested D9.4.5 with this module.

Get the error:
The website encountered an unexpected error. Please try again later.
Error: Call to undefined method Drupal\Core\Extension\ModuleHandler::invokeAllWith() in clientside_validation_should_validate() (line 70 of modules/contrib/clientside_validation/clientside_validation.module).

clientside_validation_should_validate() (Line: 54)
clientside_validation_add_validation() (Line: 22)

Steps to reproduce

TBD

Proposed resolution

TBD

Remaining tasks

TBD

User interface changes

TBD

API changes

TBD

Data model changes

TBD

Comments

joseph.olstad created an issue. See original summary.

johnpitcairn’s picture

Version: 3.0.0-rc6 » 3.0.x-dev
Priority: Normal » Major

Rats. I'd call that major.

johnpitcairn’s picture

Title: clientside_validation latest release not compatible with D9.3.21 » Use of ModuleHandler::invokeAllWith() breaks D9.3.x

Looks like ModuleHandler::invokeAllWith() was added in Drupal 9.4. We should not be using it and still claiming compatibility as core ^9 || ^10.

Either increase the minimum requirement to 9.4, or revert to the previous implementation in clientside_validation_should_validate() until 9.3.x is unsupported.

Given we are at release candidate status, we should not be introducing compatibility breaks. We should revert. Opinions?

johnpitcairn’s picture

Discussion is happening in #3286539: Automated Drupal 10 compatibility fixes

For now, revert to commit #77ff5d137 which is the last dev release before 3.0.0-rc6 introduced this.

joseph.olstad’s picture

  • nikunjkotecha committed 66d541f on 4.0.x
    Issue #3303088: Use of ModuleHandler::invokeAllWith() breaks D9.3.x
    
nikunjkotecha’s picture

Status: Active » Fixed

https://www.drupal.org/project/clientside_validation/releases/3.0.1 added with the code reverted
https://www.drupal.org/project/clientside_validation/releases/4.0.0 added with the code and also added minimum required version as 9.4

Status: Fixed » Closed (fixed)

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