Closed (fixed)
Project:
Geofield
Version:
7.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
13 Dec 2021 at 19:27 UTC
Updated:
27 May 2023 at 11:59 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
andregp commentedI'll work on a patch
Comment #3
andregp commentedIt's a simple manner of placing the optional parameter at the end of the function parameters to follow Drupal coding standards. Ths issue is also on the dev branch.
Comment #4
andregp commentedComment #5
frank.schram commentedPatch #4 solves the error. Thank you!
Comment #6
Matheus Macario commentedChanging the issue status, once the patch #4 already solves the error.
Comment #7
Matheus Macario commentedComment #8
alina.basarabeanu commentedPatch #4 works on Drupal core 7.91, PHP 8.0.21 and Geofield 7.x-2.4 version
Is there any chance to get merged into dev or a new stable release for Drupal 7?
Comment #9
ronino commented#4 works for me, thanks!
Comment #10
poker10 commentedPatch #4 is an API change. I do not think this is the best solution. I think that changing this:
to this:
could be a more safer way to do. And also if we check the
openlayers_map_load()function, where the$map_nameparameter is passed, it already defaults to empty string, so it seems good to me. See: https://git.drupalcode.org/project/openlayers/-/blob/7.x-2.x/openlayers.module#L827Comment #11
mrinalini9 commentedUpdated patch #4 by addressing #10, please review it.
Thanks!
Comment #12
roberttabigue commentedHi,
The Geofield works for me when enabled without applying the patch against the Drupal core version of 9.5.6 and PHP 8.0.
See the attached screenshots for reference.
Comment #14
poker10 commentedThanks everyone, committed!
@roberttabigue - this issue is for 7.x-2.x version of the module (e.g. Drupal 7, not Drupal 9/10). It does not seems to affect 8.x-1.x branch.