- Issue created by @SocialNicheGuru
- πΊπΈUnited States SocialNicheGuru
Updated class names to match module name
- πΊπΈUnited States SocialNicheGuru
Once this patch is applied, other errors show up in the module.
ArgumentCountError: Too few arguments to function Drupal\Component\Plugin\Attribute\Plugin::__construct(), 0 passed in drupal-10.4.x/html/modules/contrib/geolocation/modules/geolocation_search_api/src/Plugin/views/argument/SearchApiLocationRadius.php on line 14 and at least 1 expected in Drupal\Component\Plugin\Attribute\Plugin->__construct() (line 25 of drupal-10.4.x/html/core/lib/Drupal/Component/Plugin/Attribute/Plugin.php
- First commit to issue fork.
- @christianadamski opened merge request.
- π©πͺGermany christianadamski Berlin, Germany
I used this issue to fix a lot of PHP issues, which is fine.
But the issue you point out is a bit weirder. The files in questions are just copies of https://www.drupal.org/project/search_api_location β
I think they should simply be deleted and instead that module required? Can you test that?
- First commit to issue fork.
- @hmdnawaz opened merge request.
- π΅π°Pakistan hmdnawaz
We have both search_api_location and geolocation modules installed.
The submodule
geolocation_search_api
ofgeolocation
have views plugins that uses the same namespaces assearch_api_location_views.
Therefore, in Drupal 11.2, we get the error on drush deploy, we get this error
Fatal error: Cannot declare class Drupal\search_api_location_views\Plugin\views\argument\SearchApiLocationPoint, because the name is already in use in /va r/ www/web/modules/contrib/geolocation/modules/geolocation_search_api/src/Plugin/views/argument/SearchApiLocationPoint.php on line 16
I have created a new MR, because I'm not sure if this belongs to MR # 110 or not. Please let me know if it should be in that MR.
- Status changed to Needs review
23 days ago 11:56am 1 August 2025 - @christianadamski opened merge request.
-
christianadamski β
committed 14a1e73b on 4.x
Resolve #3527788 "...
-
christianadamski β
committed 14a1e73b on 4.x
- π©πͺGermany christianadamski Berlin, Germany
Removed the conflicting files and added a dependency on search_api_location instead.
Automatically closed - issue fixed for 2 weeks with no activity.