- Issue created by @fishfree
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
Active
1.0
Code