Hi,

The gmap location view is missing field values after upgrading to latest version of views.

Has anyone experienced the same problem after upgrading views? I have attached a screenshot of the problem.

The values are there when using a different display style - but when using the GMap display style, the values are not showing anymore.

It was working with an older version of views but now, its not anymore.

The following are details of my setup:
GMap 6.x-1.1-rc1
Location 6.x-3.1-rc1
Views 6.x-2.8
Drupal 6.14
Mysql 5
PHP 5
Apache 2

Thanks

CommentFileSizeAuthor
missing_fields.png140.56 KBh3000

Comments

h3000’s picture

this one is an export of the view:

$view = new view;
$view->name = 'szmap';
$view->description = '';
$view->tag = '';
$view->view_php = '';
$view->base_table = 'node';
$view->is_cacheable = FALSE;
$view->api_version = 2;
$view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */
$handler = $view->new_display('default', 'Defaults', 'default');
$handler->override_option('fields', array(
  'created' => array(
    'label' => '',
    'alter' => array(
      'alter_text' => 0,
      'text' => '',
      'make_link' => 0,
      'path' => '',
      'link_class' => '',
      'alt' => '',
      'prefix' => '',
      'suffix' => '',
      'target' => '',
      'help' => '',
      'trim' => 0,
      'max_length' => '',
      'word_boundary' => 1,
      'ellipsis' => 1,
      'strip_tags' => 0,
      'html' => 0,
    ),
    'empty' => '',
    'hide_empty' => 0,
    'empty_zero' => 0,
    'date_format' => 'small',
    'custom_date_format' => '',
    'exclude' => 0,
    'id' => 'created',
    'table' => 'node',
    'field' => 'created',
    'relationship' => 'none',
  ),
  'title' => array(
    'label' => '',
    'alter' => array(
      'alter_text' => 0,
      'text' => '',
      'make_link' => 0,
      'path' => '',
      'link_class' => '',
      'alt' => '',
      'prefix' => '',
      'suffix' => '',
      'target' => '',
      'help' => '',
      'trim' => 0,
      'max_length' => '',
      'word_boundary' => 1,
      'ellipsis' => 1,
      'strip_tags' => 0,
      'html' => 0,
    ),
    'empty' => '',
    'hide_empty' => 0,
    'empty_zero' => 0,
    'link_to_node' => 1,
    'exclude' => 0,
    'id' => 'title',
    'table' => 'node',
    'field' => 'title',
    'relationship' => 'none',
  ),
  'field_venue_address_en_value' => array(
    'id' => 'field_venue_address_en_value',
    'table' => 'node_data_field_venue_address_en',
    'field' => 'field_venue_address_en_value',
  ),
  'field_venue_phone_value' => array(
    'id' => 'field_venue_phone_value',
    'table' => 'node_data_field_venue_phone',
    'field' => 'field_venue_phone_value',
  ),
  'field_venue_preview_image_fid' => array(
    'id' => 'field_venue_preview_image_fid',
    'table' => 'node_data_field_venue_preview_image',
    'field' => 'field_venue_preview_image_fid',
  ),
));
$handler->override_option('filters', array(
  'type' => array(
    'operator' => 'in',
    'value' => array(
      'venuelisting' => 'venuelisting',
    ),
    'group' => '0',
    'exposed' => FALSE,
    'expose' => array(
      'operator' => FALSE,
      'label' => '',
    ),
    'id' => 'type',
    'table' => 'node',
    'field' => 'type',
    'relationship' => 'none',
  ),
));
$handler->override_option('access', array(
  'type' => 'none',
));
$handler->override_option('cache', array(
  'type' => 'none',
));
$handler->override_option('style_plugin', 'gmap');
$handler->override_option('style_options', array(
  'macro' => '[gmap |id=usermap|center=22.531743805897655,114.05550956726074|zoom=11|width=100%|height=500px]',
  'datasource' => 'location',
  'latfield' => '',
  'lonfield' => '',
  'markers' => 'static',
  'markerfield' => '',
  'markertype' => 'drupal',
));
$handler = $view->new_display('page', 'Page', 'page_1');
$handler->override_option('path', 'szmap2');
$handler->override_option('menu', array(
  'type' => 'none',
  'title' => '',
  'description' => '',
  'weight' => 0,
  'name' => 'navigation',
));
$handler->override_option('tab_options', array(
  'type' => 'none',
  'title' => '',
  'description' => '',
  'weight' => 0,
));
$handler = $view->new_display('page', 'Page', 'page_2');
$handler->override_option('fields', array(
  'created' => array(
    'label' => '',
    'alter' => array(
      'alter_text' => 0,
      'text' => '',
      'make_link' => 0,
      'path' => '',
      'link_class' => '',
      'alt' => '',
      'prefix' => '',
      'suffix' => '',
      'target' => '',
      'help' => '',
      'trim' => 0,
      'max_length' => '',
      'word_boundary' => 1,
      'ellipsis' => 1,
      'strip_tags' => 0,
      'html' => 0,
    ),
    'empty' => '',
    'hide_empty' => 0,
    'empty_zero' => 0,
    'date_format' => 'small',
    'custom_date_format' => '',
    'exclude' => 0,
    'id' => 'created',
    'table' => 'node',
    'field' => 'created',
    'relationship' => 'none',
  ),
  'title' => array(
    'label' => '',
    'alter' => array(
      'alter_text' => 0,
      'text' => '',
      'make_link' => 0,
      'path' => '',
      'link_class' => '',
      'alt' => '',
      'prefix' => '',
      'suffix' => '',
      'target' => '',
      'help' => '',
      'trim' => 0,
      'max_length' => '',
      'word_boundary' => 1,
      'ellipsis' => 1,
      'strip_tags' => 0,
      'html' => 0,
    ),
    'empty' => '',
    'hide_empty' => 0,
    'empty_zero' => 0,
    'link_to_node' => 1,
    'exclude' => 0,
    'id' => 'title',
    'table' => 'node',
    'field' => 'title',
    'relationship' => 'none',
  ),
  'field_venue_address_en_value' => array(
    'label' => 'Place Address (English/Pinyin)',
    'alter' => array(
      'alter_text' => 0,
      'text' => '',
      'make_link' => 0,
      'path' => '',
      'link_class' => '',
      'alt' => '',
      'prefix' => '',
      'suffix' => '',
      'target' => '',
      'help' => '',
      'trim' => 0,
      'max_length' => '',
      'word_boundary' => 1,
      'ellipsis' => 1,
      'strip_tags' => 0,
      'html' => 0,
    ),
    'empty' => '',
    'hide_empty' => 0,
    'empty_zero' => 0,
    'link_to_node' => 0,
    'label_type' => 'widget',
    'format' => 'default',
    'multiple' => array(
      'group' => TRUE,
      'multiple_number' => '',
      'multiple_from' => '',
      'multiple_reversed' => FALSE,
    ),
    'exclude' => 0,
    'id' => 'field_venue_address_en_value',
    'table' => 'node_data_field_venue_address_en',
    'field' => 'field_venue_address_en_value',
    'override' => array(
      'button' => 'Use default',
    ),
    'relationship' => 'none',
  ),
  'field_venue_phone_value' => array(
    'id' => 'field_venue_phone_value',
    'table' => 'node_data_field_venue_phone',
    'field' => 'field_venue_phone_value',
  ),
  'field_venue_preview_image_fid' => array(
    'id' => 'field_venue_preview_image_fid',
    'table' => 'node_data_field_venue_preview_image',
    'field' => 'field_venue_preview_image_fid',
  ),
));
$handler->override_option('items_per_page', 12);
$handler->override_option('style_options', array(
  'grouping' => '',
  'macro' => '[gmap ]',
  'datasource' => 'location',
  'latfield' => '',
  'lonfield' => '',
  'markers' => 'taxonomy',
  'markerfield' => '',
  'markertype' => 'drupal',
));
$handler->override_option('path', 'szmap2b');
$handler->override_option('menu', array(
  'type' => 'none',
  'title' => '',
  'description' => '',
  'weight' => 0,
  'name' => 'navigation',
));
$handler->override_option('tab_options', array(
  'type' => 'none',
  'title' => '',
  'description' => '',
  'weight' => 0,
));
kanani’s picture

Experiencing same issue as well.

Module List:

Administration menu            	6.x-1.5          	6.x-1.5         	Up to date      
  Admin Role                     	6.x-1.2          	6.x-1.2         	Up to date      
  Drupal                         	6.14             	6.14            	Up to date      
  Ubercart                       	6.x-2.2          	6.x-2.2         	Up to date      
  Content Construction Kit (CCK) 	6.x-2.6          	6.x-2.6         	Up to date      
  Devel                          	6.x-1.18         	6.x-1.18        	Up to date      
  FCKeditor - WYSIWYG HTML editor	6.x-2.0-rc2      	6.x-2.0-rc2     	Up to date      
  FileField                      	6.x-3.2          	6.x-3.2         	Up to date      
  GMap Module                    	6.x-1.1-rc1      	6.x-1.1-rc1     	Up to date      
  Google Analytics               	6.x-2.2          	6.x-2.2         	Up to date      
  Image                          	6.x-1.0-beta3    	6.x-1.0-beta3   	Up to date      
  ImageAPI                       	6.x-1.6          	6.x-1.6         	Up to date      
  ImageCache                     	6.x-2.0-beta10   	6.x-2.0-beta10  	Up to date      
  ImageField                     	6.x-3.2          	6.x-3.2         	Up to date      
  IMCE                           	6.x-1.3          	6.x-1.3         	Up to date      
  Location                       	6.x-3.1-rc1      	6.x-3.1-rc1     	Up to date      
  Mollom                         	6.x-1.10         	6.x-1.10        	Up to date      
  Nodewords                      	6.x-1.8          	6.x-1.8         	Up to date      
  Pathauto                       	6.x-1.2          	6.x-1.2         	Up to date      
  Rules                          	6.x-1.1          	6.x-1.1         	Up to date      
  Site map                       	6.x-1.2          	6.x-1.2         	Up to date      
  SMTP Authentication Support    	6.x-1.0-beta4    	6.x-1.0-beta4   	Up to date      
  Thickbox                       	6.x-1.5          	6.x-1.5         	Up to date      
  Token                          	6.x-1.12         	6.x-1.12        	Up to date      
  Views                          	6.x-2.8          	6.x-2.8         	Up to date      
  Views Slideshow                	6.x-1.0-beta2    	6.x-1.0-beta2   	Up to date      
  Webform                        	6.x-2.9          	6.x-2.9         	Up to date      

and View Export:


$view = new view;
$view->name = 'location_table';
$view->description = 'Node location table.';
$view->tag = '';
$view->view_php = '';
$view->base_table = 'node';
$view->is_cacheable = FALSE;
$view->api_version = 2;
$view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */
$handler = $view->new_display('default', 'Defaults', 'default');
$handler->override_option('fields', array(
  'title' => array(
    'label' => '',
    'alter' => array(
      'alter_text' => 0,
      'text' => '',
      'make_link' => 0,
      'path' => '',
      'link_class' => '',
      'alt' => '',
      'prefix' => '',
      'suffix' => '',
      'help' => '',
      'trim' => 0,
      'max_length' => '',
      'word_boundary' => 1,
      'ellipsis' => 1,
      'strip_tags' => 0,
      'html' => 0,
    ),
    'link_to_node' => 1,
    'exclude' => 0,
    'id' => 'title',
    'table' => 'node',
    'field' => 'title',
    'override' => array(
      'button' => 'Override',
    ),
    'relationship' => 'none',
  ),
  'street' => array(
    'label' => 'Street',
    'style' => 'both',
    'exclude' => 0,
    'id' => 'street',
    'table' => 'location',
    'field' => 'street',
    'override' => array(
      'button' => 'Override',
    ),
    'relationship' => 'none',
  ),
  'city' => array(
    'label' => 'City',
    'exclude' => 0,
    'id' => 'city',
    'table' => 'location',
    'field' => 'city',
    'override' => array(
      'button' => 'Override',
    ),
    'relationship' => 'none',
  ),
  'province' => array(
    'label' => 'Province',
    'style' => 'name',
    'exclude' => 0,
    'id' => 'province',
    'table' => 'location',
    'field' => 'province',
    'relationship' => 'none',
  ),
  'postal_code' => array(
    'label' => 'Postal Code',
    'exclude' => 0,
    'id' => 'postal_code',
    'table' => 'location',
    'field' => 'postal_code',
    'override' => array(
      'button' => 'Override',
    ),
    'relationship' => 'none',
  ),
  'country' => array(
    'label' => 'Country',
    'style' => 'name',
    'exclude' => 0,
    'id' => 'country',
    'table' => 'location',
    'field' => 'country',
    'relationship' => 'none',
  ),
  'field_store_location_phonenumber_value' => array(
    'label' => 'Phone Number',
    'alter' => array(
      'alter_text' => 0,
      'text' => '',
      'make_link' => 0,
      'path' => '',
      'link_class' => '',
      'alt' => '',
      'prefix' => '',
      'suffix' => '',
      'help' => '',
      'trim' => 0,
      'max_length' => '',
      'word_boundary' => 1,
      'ellipsis' => 1,
      'strip_tags' => 0,
      'html' => 0,
    ),
    'link_to_node' => 0,
    'label_type' => 'widget',
    'format' => 'default',
    'multiple' => array(
      'group' => TRUE,
      'multiple_number' => '',
      'multiple_from' => '',
      'multiple_reversed' => FALSE,
    ),
    'exclude' => 0,
    'id' => 'field_store_location_phonenumber_value',
    'table' => 'node_data_field_store_location_phonenumber',
    'field' => 'field_store_location_phonenumber_value',
    'override' => array(
      'button' => 'Override',
    ),
    'relationship' => 'none',
  ),
));
$handler->override_option('filters', array(
  'status_extra' => array(
    'operator' => '=',
    'value' => '',
    'group' => '0',
    'exposed' => FALSE,
    'expose' => array(
      'operator' => FALSE,
      'label' => '',
    ),
    'id' => 'status_extra',
    'table' => 'node',
    'field' => 'status_extra',
    'override' => array(
      'button' => 'Override',
    ),
    'relationship' => 'none',
  ),
  'lid' => array(
    'operator' => 'not empty',
    'value' => array(
      'value' => '',
      'min' => '',
      'max' => '',
    ),
    'group' => '0',
    'exposed' => FALSE,
    'expose' => array(
      'operator' => FALSE,
      'label' => '',
    ),
    'id' => 'lid',
    'table' => 'location',
    'field' => 'lid',
    'relationship' => 'none',
  ),
  'type' => array(
    'id' => 'type',
    'table' => 'node',
    'field' => 'type',
  ),
));
$handler->override_option('access', array(
  'type' => 'none',
));
$handler->override_option('cache', array(
  'type' => 'none',
));
$handler->override_option('title', 'Reigning Cats & Dogs Locations');
$handler->override_option('style_plugin', 'table');
$handler->override_option('style_options', array(
  'grouping' => '',
  'override' => 1,
  'sticky' => 0,
  'order' => 'asc',
  'columns' => array(
    'title' => 'title',
    'street' => 'street',
    'city' => 'city',
    'province' => 'province',
    'postal_code' => 'postal_code',
    'country' => 'country',
  ),
  'info' => array(
    'title' => array(
      'sortable' => 1,
      'separator' => '',
    ),
    'street' => array(
      'sortable' => 1,
      'separator' => '',
    ),
    'city' => array(
      'sortable' => 1,
      'separator' => '',
    ),
    'province' => array(
      'sortable' => 1,
      'separator' => '',
    ),
    'postal_code' => array(
      'sortable' => 1,
      'separator' => '',
    ),
    'country' => array(
      'sortable' => 1,
      'separator' => '',
    ),
  ),
  'default' => '-1',
));
$handler = $view->new_display('page', 'Locations Map', 'page_2');
$handler->override_option('filters', array(
  'status_extra' => array(
    'operator' => '=',
    'value' => '',
    'group' => '0',
    'exposed' => FALSE,
    'expose' => array(
      'operator' => FALSE,
      'label' => '',
    ),
    'id' => 'status_extra',
    'table' => 'node',
    'field' => 'status_extra',
    'override' => array(
      'button' => 'Override',
    ),
    'relationship' => 'none',
  ),
  'type' => array(
    'operator' => 'in',
    'value' => array(
      'store_location' => 'store_location',
    ),
    'group' => '0',
    'exposed' => FALSE,
    'expose' => array(
      'operator' => FALSE,
      'label' => '',
    ),
    'id' => 'type',
    'table' => 'node',
    'field' => 'type',
    'override' => array(
      'button' => 'Use default',
    ),
    'relationship' => 'none',
  ),
));
$handler->override_option('header_format', '3');
$handler->override_option('header_empty', 1);
$handler->override_option('style_plugin', 'gmap');
$handler->override_option('style_options', array(
  'grouping' => '',
  'macro' => '[gmap ]',
  'datasource' => 'location',
  'latfield' => '',
  'lonfield' => '',
  'markers' => 'static',
  'markerfield' => '',
  'markertype' => 'drupal',
));
$handler->override_option('row_options', array(
  'inline' => array(),
  'separator' => '',
));
$handler->override_option('path', 'locations');
$handler->override_option('menu', array(
  'type' => 'normal',
  'title' => 'Locations',
  'description' => '',
  'weight' => '5',
  'name' => 'primary-links',
));
$handler->override_option('tab_options', array(
  'type' => 'none',
  'title' => '',
  'description' => '',
  'weight' => 0,
));
$handler = $view->new_display('block', 'Block', 'block_1');
$handler->override_option('fields', array(
  'title' => array(
    'label' => '',
    'alter' => array(
      'alter_text' => 0,
      'text' => '',
      'make_link' => 0,
      'path' => '',
      'link_class' => '',
      'alt' => '',
      'prefix' => '',
      'suffix' => '',
      'help' => '',
      'trim' => 0,
      'max_length' => '',
      'word_boundary' => 1,
      'ellipsis' => 1,
      'strip_tags' => 0,
      'html' => 0,
    ),
    'link_to_node' => 1,
    'exclude' => 0,
    'id' => 'title',
    'table' => 'node',
    'field' => 'title',
    'override' => array(
      'button' => 'Override',
    ),
    'relationship' => 'none',
  ),
  'street' => array(
    'label' => 'Street',
    'style' => 'both',
    'exclude' => 0,
    'id' => 'street',
    'table' => 'location',
    'field' => 'street',
    'override' => array(
      'button' => 'Override',
    ),
    'relationship' => 'none',
  ),
  'city' => array(
    'label' => 'City',
    'exclude' => 0,
    'id' => 'city',
    'table' => 'location',
    'field' => 'city',
    'override' => array(
      'button' => 'Override',
    ),
    'relationship' => 'none',
  ),
  'province' => array(
    'label' => 'Province',
    'style' => 'name',
    'exclude' => 0,
    'id' => 'province',
    'table' => 'location',
    'field' => 'province',
    'relationship' => 'none',
  ),
  'field_store_location_phonenumber_value' => array(
    'label' => 'Phone Number',
    'alter' => array(
      'alter_text' => 0,
      'text' => '',
      'make_link' => 0,
      'path' => '',
      'link_class' => '',
      'alt' => '',
      'prefix' => '',
      'suffix' => '',
      'help' => '',
      'trim' => 0,
      'max_length' => '',
      'word_boundary' => 1,
      'ellipsis' => 1,
      'strip_tags' => 0,
      'html' => 0,
    ),
    'link_to_node' => 0,
    'label_type' => 'widget',
    'format' => 'default',
    'multiple' => array(
      'group' => TRUE,
      'multiple_number' => '',
      'multiple_from' => '',
      'multiple_reversed' => FALSE,
    ),
    'exclude' => 0,
    'id' => 'field_store_location_phonenumber_value',
    'table' => 'node_data_field_store_location_phonenumber',
    'field' => 'field_store_location_phonenumber_value',
    'override' => array(
      'button' => 'Override',
    ),
    'relationship' => 'none',
  ),
));
$handler->override_option('block_description', '');
$handler->override_option('block_caching', -1);
kanani’s picture

this issue is fixed in Dec 09 Dev snapshot gmap-6.x-1.x-dev

h3000’s picture

Status: Active » Fixed

Hi kanani,

ok - confirmed fixed with dev version of gmap - thanks!

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

valokettu’s picture

Version: 6.x-1.1-rc1 » 6.x-1.x-dev
Status: Closed (fixed) » Active

I had this problem first and then it fixed mostly when I replaced that r1-version with this dev. But there's still one field not giving any value: node type. Also if I put node type as filter, the map doesn't show. When I put filter as exposed, it only showed map when "Any" was checked.

ari-meetai’s picture

Same here. Downloading -dev.

rooby’s picture

Status: Active » Closed (duplicate)

This is a duplicate of #623234: Views 2.7 - breaks field output - GMap marker info window (bubble) doesn't display fields correctly

It is fixed in the dev version

@valokettu
If you are having a different problem please open a different issue.