After updating from beta2 to beta3, I received the following error on my /map display:
Undefined variable: bubbletext_field_obj in gmap_plugin_style_gmap->render() (line 251 of /home/institut/public_html/drupal7/sites/all/modules/gmap/gmap_plugin_style_gmap.inc)
Any help to resolve this is appreciated. Thank you.
| Comment | File | Size | Author |
|---|---|---|---|
| #16 | fix_undefined_variable_warning-1912168-16.patch | 816 bytes | m4olivei |
Comments
Comment #1
kurtismccartney commentedConfirmed experiencing the same issue on another upgrade today. Anyone have an issue downgrading or find a quick fix?
Update: Quick fix for reporting ~ comment out line 251 and 260 in the offending file.
Comment #2
tchase commentedComment #3
wayne57 commentedI can confirm I am experiencing the same problem. Has anyone got a solution to this issue? The warning appears on the site to all users and is not just admin pages so is pretty major bug. I think it may be getting an argument from the location module but not sure?
Comment #4
seanmrafferty commentedI commented out lines 251-253. I can't find anywhere else in the code where $bubbletext_field_obj exists. Also, the whole if..elseif statement seems pointless. Both conditions result in the same exact result: $bubbletext = $this->rendered_fields[$row_index][$this->options['bubbletextfield']];
Basically, just comment out the elseif clause.
Comment #5
podaroktag
Comment #6
podarokupdated release info http://drupal.org/node/1910748
Comment #7
johnvbetter title.
Comment #8
johnvThis is not major: you can hide all messages from the user, and only log them in Watchdog.
Comment #9
podarokit`s critical task if it is still actual for latest dev, cause it will broke simpletest (after covering this part of code)
Please, check it against latest dev and tell us status
Comment #10
podarokI`ll appreciate if You upload here Your views export data
Comment #11
anawillem commentedThis isn't my original issue, but in order to move things along, here's a shot at a view throwing this error:
Comment #12
anawillem commentedincidentally, what i also notice is that the 'bubble' text, although it is designated to come only from the 'location' field in the settings configuration, is actually exposing all 'visible' fields in the field list instead... don't know if that will help...
Comment #13
danna.jack commentedhttp://drupalcode.org/project/gmap.git/blob/552e8ae:/gmap_plugin_style_g...
Comment #14
greggmarshallWe are seeing the same issue. A little extra data is we have two fields defined in the view, title and body. If we put the title into the bubble, no errors. If we put the body into the bubble, errors. We rearranged the order of the fields and did a rewrite to include both the title and body in the title field (which we needed anyway) and we can display both without errors.
Comment #15
lunazoid commentedThanks for the tip, greggmarshall! I took a similar route, adding a title field and body field. The title was set to link to the content, and both were excluded from display. I added another title field, and rewrote the output to display the first (excluded) title and the body. Added this to the popup, and I get the results I want without the errors.
Comment #16
m4oliveiHello,
This is still an issue in the latest 7.x-2.9. Attached is a patch against the latest dev version. After briefly reviewing the commit logs, this seems to be a case of some changes that happened at some point where this bit should have been cleaned up but was missed. The patch is very simple, it just remove the offending if clause as suggested in #4.
Thanks,
Matt
Comment #17
m4oliveiUpdating to Needs Review to get eyes on the patch and get it committed. Let me know if anything is needed.
Thanks,
Matt
Comment #18
podarok#16 commited to 7.x-2.x
Thanks!