Error 'too few arguments' in LeafletService

Created on 26 January 2023, almost 2 years ago
Updated 3 February 2023, almost 2 years ago

Update from 10.0.6 to 10.0.7 causes 'unexpected error'

Error logs show on home and map pages, rest of site works OK

See attached file for full text from log. Error log extract:
Too few arguments to function Drupal\leaflet\LeafletService::__construct(), 6 passed in /[webroot]/core/lib/Drupal/Component/DependencyInjection/Container.php on line 259 and exactly 7 expected in Drupal\leaflet\LeafletService->__construct() (line 189 of /[webroot]/modules/contrib/leaflet/src/LeafletService.php)

Reverting to 10.0.6 removes the error.

Site is running Drupal core 9.5.2 with Geofield 1.52, Geofield Map 3.06 and Leaflet-More_Maps.

🐛 Bug report
Status

Closed: cannot reproduce

Version

10.0

Component

Code

Created by

🇨🇦Canada poker.ca

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

Comments & Activities

  • Issue created by @poker.ca
  • Status changed to Closed: cannot reproduce almost 2 years ago
  • 🇮🇹Italy itamair

    Hi @poker.ca ... what you say simply cannot be true, as the only commit between 10.6 and 10.7 is the following one:

    https://git.drupalcode.org/project/leaflet/-/commit/9c3a490293661a1072ae...

    that really didn't altered the LeafletService.php in any way.

    I guessed you moved/upgraded to 10.7 from an earlier release of the module (may be 2.x branch?).

    If 10.6 is indeed working fine for you, then move forward into 10.7 confidently and just clear the drupal cache (drush cc) and everything should be still good ...

  • 🇨🇦Canada poker.ca

    Updating directly from 10.0.6 to 10.0.8 causes no issues so I'm happy this is resolved, whatever the reason. Thanks!

Production build 0.71.5 2024