Uncaught PHP Exception TypeError: "Drupal\simple_interactive_maps\MapBuilder::__construct(): Argument #4 ($eventDispatcher) must be of

Created on 8 September 2025, 24 days ago

After I create a USA map on page /admin/structure/interactive_map/add, then on pages /admin/structure/interactive-map/usa/regions and /admin/structure/interactive-map/usa/regions, they both displayed: The website encountered an unexpected error. Try again later. And in nginx log file, it said as below:

2025/09/08 23:52:48 [error] 2014206#2014206: *6448 FastCGI sent in stderr: "PHP message: Uncaught PHP Exception TypeError: "Drupal\simple_interactive_maps\MapBuilder::__construct(): Argument #4 ($eventDispatcher) must be of type Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher, Symfony\Component\EventDispatcher\EventDispatcher given, called in /var/www/html/drupaltest/web/core/lib/Drupal/Component/DependencyInjection/Container.php on line 259" at /var/www/html/drupaltest/web/modules/contrib/simple_interactive_maps/src/MapBuilder.php line 24" while reading response header from upstream, client: 102.2.8.49, server: drupaltest.shisu.edu.cn, request: "GET /admin/structure/interactive-map/usa/thumbnail HTTP/2.0", upstream: "fastcgi://unix:/var/run/php/php8.3-fpm.sock:"

Drupal: latest 11.x, PHP: 8.3

🐛 Bug report
Status

Active

Version

1.0

Component

Code

Created by

🇨🇳China fishfree

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024