I get a JavaScript alert on all views when trying to update query settings and override is set. It happens even after clearing the main and views caches.

The alert says:

An AJAX HTTP request terminated abnormally.
Debugging information follows.
Path: http://www.blag.org/admin/structure/views/ajax/display/events/archives_b...
StatusText: error
ResponseText:
ReadyState: 0

I see this in watchdog:

Notice: Array to string conversion in views_plugin_query_default->options_submit() (line 289 of /htdocs/sites/all/modules/views/plugins/views_plugin_query_default.inc).

The error does not happen when updating for all displays.

Comments

apoc1’s picture

Having the exact same problem..

- Eventually, I even have the problem for saving it to all displays

dawehner’s picture

What should i say, I'm not really sure what this code is supposed to do:

  /**
   * Special submit handling.
   */
  function options_submit(&$form, &$form_state) {
    $element = array('#parents' => array('query', 'options', 'query_tags'));
    $value = explode(',', drupal_array_get_nested_value($form_state['values'], $element['#parents']));
    $value = array_filter(array_map('trim', $value));
    form_set_value($element, $value, $form_state);
  }

but especially the $value = explode() one, which gives the error, doesn't seem to be right.

timmetj’s picture

Having this same issue as I mentioned in http://drupal.org/node/1543752
Since the latest update i think getting the ajax alert when pressing enter for the first time in an exposed search filter. Happens in Firefox and Chrome.

dawehner’s picture

dawehner’s picture

Issue summary: View changes

obscure url