Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hi,
I use geocoder 2.x-dev version (IDK if this module has been update vendor geocoder) and i got this error Drupal\Component\Plugin\Exception\PluginNotFoundException : The "-10" plugin does not exist. dans Drupal\Core\Plugin\DefaultPluginManager->doGetDefinition() (ligne 52 de C:\wamp64\www\drupal-8.2.6\core\lib\Drupal\Component\Plugin\Discovery\DiscoveryTrait.php).
All seems to be ok with my patch, except your filter return all results with no distance selected, if I select 5 km or 10 km filter work as designed.
Comment | File | Size | Author |
---|---|---|---|
#10 | sorted and checked plugins.PNG | 12.66 KB | dbjpanda |
#10 | geocoder plugins.PNG | 11.11 KB | dbjpanda |
#10 | geocode_fixed_2867782-10.patch | 2.32 KB | dbjpanda |
#6 | geocode fixed.PNG | 63.46 KB | dbjpanda |
#6 | geocode_fix_12156965-6.patch | 1.11 KB | dbjpanda |
Comments
Comment #2
Musa.thomasinfo
Comment #3
Musa.thomasComment #4
dbjpanda CreditAttribution: dbjpanda at Google Summer of Code commentedI am getting the same error as well.
Comment #5
dbjpanda CreditAttribution: dbjpanda at Google Summer of Code commented@Emerya.thomas Could you explain me why did you remove below code snippets.
Comment #6
dbjpanda CreditAttribution: dbjpanda at Google Summer of Code commentedSubmitted a patch for the above issue. It solves the error for me. Attached a screenshot as well.
Comment #7
dbjpanda CreditAttribution: dbjpanda at Google Summer of Code commentedKindly review
Comment #8
Nick_vhDoesn't $input['value'] need to be validated?
Any reason why the weight was removed?
Comment #9
borisson_Since we're touching the line where we're getting the geocoder from the container here, should we change this plugin to use proper DI instead? Not sure, that might have to go in a follow-up to this.
Comment #10
dbjpanda CreditAttribution: dbjpanda at Google Summer of Code commentedKindly review the patch. Now geocoding provider plugin according their weight preference is working for me.
Output of the sorted and checked geocode providers plugins i.e $active_plugins array
Comment #11
borisson_Looks good
Comment #13
Nick_vh