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.
I updated Gmap module from 7.x-1.x-dev to 7.x-2.7 and after that when I tried to clear caches I have this error:
Fatal error: [] operator not supported for strings in .../gmap/gmap_markerinfo.inc on line 33
If I use this patch I resolve. What do you think about the patch?
Thanks
Comment | File | Size | Author |
---|---|---|---|
#20 | fatal_error-2110065-20.patch | 522 bytes | Valentine94 |
#17 | fatal_error-2110065-16.patch | 563 bytes | trrroy |
#15 | fatal_error-2110065-15.patch | 1.23 KB | Valentine94 |
#12 | markerdirs_array_2110065_12.patch | 550 bytes | tomb-2 |
#1 | gmap.patch | 1.14 KB | ea2391 |
Comments
Comment #1
ea2391 CreditAttribution: ea2391 commentedThis is the correct patch.
Comment #2
podarokbot
Comment #4
jzavrl CreditAttribution: jzavrl commentedI also get this after i migrated from Drupal 7.22 to Drupal 7.23. Gmap version stayed the same - 7.x-2.7. I also migrated from multisite configuration to single site configuration if it matters.
Comment #5
AnybodyI can confirm the problem which makes the form unusable!
Comment #6
AnybodyFor a quickfix run:
alternatively via drush "vset" command.
Comment #7
podarokright tag
Comment #8
rooby CreditAttribution: rooby commentedThe problem is that there is no update hook to change the variable from a string to an array when upgrading from older versions of gmap, and there is no way to update that variable from the drupal UI so you get stuck.
We just need a hook_update_N() to do that.
Comment #9
tomb-2 CreditAttribution: tomb-2 commentedRan into this issue when upgrading from Drupal 6 to 7 there seems to be no clear upgrade path to change $markerdirs from a string to an array. This patch adds an update that will change the variable from string to an array (if it is not already an array).
To use add the patch and run update.php
Comment #11
podarokYou should create patch against latest 7.x-2.x-dev version
Comment #12
tomb-2 CreditAttribution: tomb-2 commentedRight version, just a bad patch, here is the fixed version.
Comment #13
tomb-2 CreditAttribution: tomb-2 commentedComment #15
Valentine94Re-roll of https://www.drupal.org/node/2110065#comment-7957531
Comment #17
trrroy CreditAttribution: trrroy as a volunteer commentedThis patch seems to work against the current git HEAD.
Comment #18
trrroy CreditAttribution: trrroy as a volunteer commentedComment #20
Valentine94Comment #21
podarok#20 committed