PHP Fatal Error | undefined method Drupal\Core\Extension\ModuleHandler::getImplementations()

Created on 16 December 2022, about 2 years ago
Updated 7 February 2023, about 2 years ago

Problem/Motivation

Getting following error

Error: Call to undefined method Drupal\Core\Extension\ModuleHandler::getImplementations() in Drupal\rate\RateWidgetForm->form() (line 109 of /app/modules/contrib/rate/src/RateWidgetForm.php).

Drupal Version: 10.0.x
Rate Module version: 3.0.x
PHP: 8.1

Steps to reproduce

  • Install Drupal 10 site.
  • install Rate module with composer require 'drupal/rate:^3.0' command.
  • Go to /admin/structure/rate_widgets
  • Click Add rate widget button.

Proposed resolution

Need to use ModuleHandlerInterface::invokeAllWith()

Change Record Link

🐛 Bug report
Status

RTBC

Version

3.0

Component

Code

Created by

🇮🇳India samit.310@gmail.com

Live updates comments and jobs are added and updated live.

Missing content requested by

🇦🇺Australia dpi
about 1 year ago
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024