Hey,

I have a clean install of drupal v 7.2 and the latest ctools version (beta-1). When I try to add and configure a relationship using the ui, I get a page of ajax (?) code as shown below:

[{"command":"settings","settings":{"basePath":"\/TeamWeb\/","pathPrefix":"","ajaxPageState":{"theme":"seven","theme_token":"kou3A-T_42qMYmfumcd1ulNJiUeTAzqXVoDeOn5anEs","css":[]}},"merge":true},{"command":"viewsSetForm","output":"\u003cdiv class=\"views-messages\"\u003e\u003cdiv class=\"messages error\"\u003e\n\u003ch2 class=\"element-invisible\"\u003eError message\u003c\/h2\u003e\n \u003cul\u003e\n \u003cli\u003eThere is a security update available for your version of Drupal. To ensure the security of your server, you should update immediately! See the \u003ca href=\"\/TeamWeb\/admin\/reports\/updates\/update\"\u003eavailable updates\u003c\/a\u003e page for more information and to install your missing updates.\u003c\/li\u003e\n \u003cli\u003eChanges cannot be made to a locked view.\u003c\/li\u003e\n \u003cli\u003eThere is a security update available for your version of Drupal. To ensure the security of your server, you should update immediately! See the \u003ca href=\"\/TeamWeb\/admin\/reports\/updates\/update\"\u003eavailable updates\u003c\/a\u003e page for more information and to install your missing updates.\u003c\/li\u003e\n \u003c\/ul\u003e\n\u003c\/div\u003e\n\u003c\/div\u003e\u003cform action=\"\/TeamWeb\/admin\/structure\/views\/ajax\/add-item\/recent_ladder_activity\/default\/relationship\" method=\"post\" id=\"views-ui-add-item-form\" accept-charset=\"UTF-8\"\u003e\u003cdiv\u003e\u003cdiv class=\"scroll form-wrapper\" id=\"edit-options\"\u003e\u003cdiv class=\"form-item\"\u003eThere are no relationships available to add.\u003c\/div\u003e\u003c\/div\u003e\u003cdiv class=\"container-inline views-add-form-selected\"\u003e\u003cdiv id=\"edit-selected\" class=\"form-item form-type-item\"\u003e\n \u003clabel for=\"edit-selected\"\u003eSelected: \u003c\/label\u003e\n \u003cdiv class=\"views-selected-options\"\u003e\u003c\/div\u003e\n\u003c\/div\u003e\n\u003c\/div\u003e\u003cdiv class=\"clearfix\"\u003e\u003cdiv class=\"form-buttons\"\u003e\u003cinput type=\"submit\" id=\"edit-submit\" name=\"op\" value=\"Add and configure relationships\" class=\"form-submit\" \/\u003e\u003cinput type=\"submit\" id=\"edit-cancel\" name=\"op\" value=\"Cancel\" class=\"form-submit\" \/\u003e\u003c\/div\u003e\u003c\/div\u003e\u003cinput type=\"hidden\" name=\"form_build_id\" value=\"form-ozctF92ur13Q8w9X6H9wjozctn4H89lqTlOxMt85DiE\" \/\u003e\n\u003cinput type=\"hidden\" name=\"form_token\" value=\"yIyHonktPGgFgTzuTloBy-sSyq2Or0CQY8-iG6R7NdQ\" \/\u003e\n\u003cinput type=\"hidden\" name=\"form_id\" value=\"views_ui_add_item_form\" \/\u003e\n\u003c\/div\u003e\u003c\/form\u003e","title":"Add relationships","url":"http:\/\/localhost:8888\/TeamWeb\/admin\/structure\/views\/ajax\/add-item\/recent_ladder_activity\/default\/relationship"},{"command":"viewsHilite","selector":".defaultadd-item"}]

I am happy to provide any other information as needed.

Best wishes,

Peter

Comments

ph352’s picture

Assigned: ph352 » Unassigned
jdleonard’s picture

I'm also seeing this. Even when there are no relationships available, upon clicking "cancel", I see this.

jdleonard’s picture

Version: 7.x-3.0-rc1 » 7.x-3.x-dev
dawehner’s picture

Status: Active » Postponed (maintainer needs more info)

Is it still an issue?

if yes, do you use devel module and have enabled backtrace for error handling?
If no, http://drupal.org/node/571990 might give you some examples how to fix it.

jdleonard’s picture

Status: Postponed (maintainer needs more info) » Closed (cannot reproduce)

Yeah, I think this was devel module and backtrace for error handling, thanks.

ICameToPlay’s picture

dawehner, I don't understand what your link http://drupal.org/node/571990 has to do with the thread topic Add and configure relationship or with your comment of enabled backtrace.

TheoRichel’s picture

Having the same issue on Views 7.x-3.8. Do not use the devel module. The View is so far very simple with only one Field. I put the exportcode below.

$view = new view();
$view->name = 'namen_van_kamers';
$view->description = '';
$view->tag = 'default';
$view->base_table = 'rooms_units';
$view->human_name = 'Namen van kamers';
$view->core = 7;
$view->api_version = '3.0';
$view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */

/* Display: Master */
$handler = $view->new_display('default', 'Master', 'default');
$handler->display->display_options['use_more_always'] = FALSE;
$handler->display->display_options['access']['type'] = 'none';
$handler->display->display_options['cache']['type'] = 'none';
$handler->display->display_options['query']['type'] = 'views_query';
$handler->display->display_options['exposed_form']['type'] = 'basic';
$handler->display->display_options['exposed_form']['options']['reset_button_label'] = 'Opnieuw instellen';
$handler->display->display_options['pager']['type'] = 'full';
$handler->display->display_options['pager']['options']['items_per_page'] = '10';
$handler->display->display_options['pager']['options']['tags']['first'] = '« eerste';
$handler->display->display_options['pager']['options']['tags']['previous'] = '‹ vorige';
$handler->display->display_options['pager']['options']['tags']['next'] = 'volgende ›';
$handler->display->display_options['pager']['options']['tags']['last'] = 'laatste »';
$handler->display->display_options['style_plugin'] = 'table';
$handler->display->display_options['style_options']['columns'] = array(
  'name' => 'name',
);
$handler->display->display_options['style_options']['default'] = '-1';
$handler->display->display_options['style_options']['info'] = array(
  'name' => array(
    'sortable' => 0,
    'default_sort_order' => 'asc',
    'align' => '',
    'separator' => '',
    'empty_column' => 0,
  ),
);
/* Veld: Bookable Units: Name */
$handler->display->display_options['fields']['name']['id'] = 'name';
$handler->display->display_options['fields']['name']['table'] = 'rooms_units';
$handler->display->display_options['fields']['name']['field'] = 'name';
$handler->display->display_options['fields']['name']['label'] = 'Naam';

/* Display: Page */
$handler = $view->new_display('page', 'Page', 'page');
$handler->display->display_options['defaults']['relationships'] = FALSE;
$handler->display->display_options['path'] = 'namenkamers';
$translatables['namen_van_kamers'] = array(
  t('Master'),
  t('more'),
  t('Apply'),
  t('Opnieuw instellen'),
  t('Sort by'),
  t('Asc'),
  t('Desc'),
  t('Items per page'),
  t('- All -'),
  t('Offset'),
  t('« eerste'),
  t('‹ vorige'),
  t('volgende ›'),
  t('laatste »'),
  t('Naam'),
  t('Page'),
);
TheoRichel’s picture

Status: Closed (cannot reproduce) » Active

Maybe you can reproduce it with the code I supplied.
Thanks

Theo Richel

dawehner’s picture

Status: Active » Patch (to be ported)

It is always either devel themer, jquery UI or maybe some php/js error. Please have a look whether you can see one.

DamienMcKenna’s picture

Status: Patch (to be ported) » Closed (works as designed)

Seems like a problem from another module.. from six years ago.