I have just installed OL 7.x-2.x-dev trying to get rid of the annoying Google Map Data box in the center of my map (it did not go away after installed this dev version).

However, now i am getting these error messages:

Notice: Undefined property: views_plugin_query_default::$fields in views_plugin_query_default->query() (line 1183 of /home3/carolloc/public_html/sites/all/modules/views/plugins/views_plugin_query_default.inc).
Warning: Invalid argument supplied for foreach() in views_plugin_query_default->compile_fields() (line 1101 of /home3/carolloc/public_html/sites/all/modules/views/plugins/views_plugin_query_default.inc).
Notice: Undefined property: views_plugin_query_default::$fields in views_plugin_query_default->query() (line 1183 of /home3/carolloc/public_html/sites/all/modules/views/plugins/views_plugin_query_default.inc).
Warning: Invalid argument supplied for foreach() in views_plugin_query_default->query() (line 1185 of /home3/carolloc/public_html/sites/all/modules/views/plugins/views_plugin_query_default.inc).
Warning: Invalid argument supplied for foreach() in views_plugin_query_default->compile_fields() (line 1101 of /home3/carolloc/public_html/sites/all/modules/views/plugins/views_plugin_query_default.inc).

What has changed in my map data going from 7.x-2.0-beta1 to this 7.x-2.x-dev version?
How can i fix these notices/errors?

Thanks, Jean

Comments

emptyvoid’s picture

I targeted the dev release to make the google box disappear I also manually modified:

openlayers/plugins/layer_types/openlayers_layer_type_google.inc
Online 100:

   return array(
      'openlayers_google_version' => array(
        '#type' => 'select',
        '#title' => t('Google Maps API version'),
        '#description' => t('If you use Google Maps v3, an API key is not necessary.'),
        '#options' => array(
          '2' => t('v2'),
          '3.6' => t('v3.6'),
        ),
        '#default_value' => variable_get('openlayers_google_version', '3.6'),
      ),

And On line 138:

  function render(&$map) {
    static $google_maps_included;

    if (!isset($google_maps_included)) {
      // Include files.
      drupal_add_js(drupal_get_path('module', 'openlayers') .
        '/plugins/layer_types/openlayers_layer_type_google.js');

      $version = variable_get('openlayers_google_version', '3.6');
      if ($version == '2') {

I then saved the settings (and used the dev release for openlayers.js

If you updated views to 7.x-3.x-dev this issue may be what you are seeing.

http://drupal.org/node/1548240

I have both but unfortunately it doesn't fix the error I am having with attached views to a page view.

http://drupal.org/node/1608638

goron’s picture