I've been trying my best to fix this issue for the best part of a week now and I just can't seem to do it. Does anybody have any ideas why this is happening.

I have a view that works fine, both in a block or not - here's the export code:

$view = new view();
$view->name = 'user_to_do_list';
$view->description = '';
$view->tag = 'default';
$view->base_table = 'node';
$view->human_name = 'user to do list';
$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['title'] = 'To do lists';
$handler->display->display_options['use_more'] = TRUE;
$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['pager']['type'] = 'mini';
$handler->display->display_options['pager']['options']['items_per_page'] = '10';
$handler->display->display_options['pager']['options']['offset'] = '0';
$handler->display->display_options['pager']['options']['id'] = '0';
$handler->display->display_options['style_plugin'] = 'table';
$handler->display->display_options['style_options']['grouping'] = array(
  0 => array(
    'field' => 'name',
    'rendered' => 1,
    'rendered_strip' => 0,
  ),
);
$handler->display->display_options['style_options']['columns'] = array(
  'name' => 'title_1',
  'title_1' => 'title_1',
  'duedate' => 'duedate',
  'view_node' => 'view_node',
);
$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,
  ),
  'title_1' => array(
    'sortable' => 1,
    'default_sort_order' => 'asc',
    'align' => '',
    'separator' => '',
    'empty_column' => 0,
  ),
  'duedate' => array(
    'sortable' => 1,
    'default_sort_order' => 'asc',
    'align' => '',
    'separator' => '',
    'empty_column' => 1,
  ),
  'view_node' => array(
    'align' => '',
    'separator' => '',
    'empty_column' => 0,
  ),
);
/* No results behavior: Global: Text area */
$handler->display->display_options['empty']['area']['id'] = 'area';
$handler->display->display_options['empty']['area']['table'] = 'views';
$handler->display->display_options['empty']['area']['field'] = 'area';
$handler->display->display_options['empty']['area']['label'] = 'No results';
$handler->display->display_options['empty']['area']['empty'] = TRUE;
$handler->display->display_options['empty']['area']['content'] = 'There aren\'t any tasks in your to do list yet.';
$handler->display->display_options['empty']['area']['format'] = 'filtered_html';
/* Relationship: Content: Author */
$handler->display->display_options['relationships']['uid']['id'] = 'uid';
$handler->display->display_options['relationships']['uid']['table'] = 'node';
$handler->display->display_options['relationships']['uid']['field'] = 'uid';
$handler->display->display_options['relationships']['uid']['required'] = TRUE;
/* Field: ToDo List: Task List */
$handler->display->display_options['fields']['name']['id'] = 'name';
$handler->display->display_options['fields']['name']['table'] = 'mytinytodo_lists';
$handler->display->display_options['fields']['name']['field'] = 'name';
$handler->display->display_options['fields']['name']['label'] = '';
$handler->display->display_options['fields']['name']['exclude'] = TRUE;
$handler->display->display_options['fields']['name']['alter']['make_link'] = TRUE;
$handler->display->display_options['fields']['name']['alter']['absolute'] = TRUE;
$handler->display->display_options['fields']['name']['alter']['replace_spaces'] = TRUE;
$handler->display->display_options['fields']['name']['alter']['path_case'] = 'lower';
$handler->display->display_options['fields']['name']['element_label_colon'] = FALSE;
$handler->display->display_options['fields']['name']['element_default_classes'] = FALSE;
/* Field: ToDo Item: Todo Item */
$handler->display->display_options['fields']['title_1']['id'] = 'title_1';
$handler->display->display_options['fields']['title_1']['table'] = 'mytinytodo_todos';
$handler->display->display_options['fields']['title_1']['field'] = 'title';
$handler->display->display_options['fields']['title_1']['label'] = '';
$handler->display->display_options['fields']['title_1']['alter']['absolute'] = TRUE;
$handler->display->display_options['fields']['title_1']['element_label_colon'] = FALSE;
/* Field: ToDo Item: Due Date */
$handler->display->display_options['fields']['duedate']['id'] = 'duedate';
$handler->display->display_options['fields']['duedate']['table'] = 'mytinytodo_todos';
$handler->display->display_options['fields']['duedate']['field'] = 'duedate';
$handler->display->display_options['fields']['duedate']['label'] = '';
$handler->display->display_options['fields']['duedate']['element_label_colon'] = FALSE;
$handler->display->display_options['fields']['duedate']['date_format'] = 'uc_store';
/* Field: Content: Link */
$handler->display->display_options['fields']['view_node']['id'] = 'view_node';
$handler->display->display_options['fields']['view_node']['table'] = 'views_entity_node';
$handler->display->display_options['fields']['view_node']['field'] = 'view_node';
$handler->display->display_options['fields']['view_node']['label'] = '';
$handler->display->display_options['fields']['view_node']['alter']['alter_text'] = TRUE;
$handler->display->display_options['fields']['view_node']['alter']['text'] = 'edit';
$handler->display->display_options['fields']['view_node']['alter']['make_link'] = TRUE;
$handler->display->display_options['fields']['view_node']['alter']['absolute'] = TRUE;
$handler->display->display_options['fields']['view_node']['element_label_colon'] = FALSE;
/* Sort criterion: ToDo Item: Priority */
$handler->display->display_options['sorts']['prio']['id'] = 'prio';
$handler->display->display_options['sorts']['prio']['table'] = 'mytinytodo_todos';
$handler->display->display_options['sorts']['prio']['field'] = 'prio';
$handler->display->display_options['sorts']['prio']['expose']['label'] = 'Priority';
/* Contextual filter: User: Uid */
$handler->display->display_options['arguments']['uid']['id'] = 'uid';
$handler->display->display_options['arguments']['uid']['table'] = 'users';
$handler->display->display_options['arguments']['uid']['field'] = 'uid';
$handler->display->display_options['arguments']['uid']['relationship'] = 'uid';
$handler->display->display_options['arguments']['uid']['default_action'] = 'default';
$handler->display->display_options['arguments']['uid']['default_argument_type'] = 'user';
$handler->display->display_options['arguments']['uid']['default_argument_options']['user'] = FALSE;
$handler->display->display_options['arguments']['uid']['summary']['number_of_records'] = '0';
$handler->display->display_options['arguments']['uid']['summary']['format'] = 'default_summary';
$handler->display->display_options['arguments']['uid']['summary_options']['items_per_page'] = '25';
/* Filter criterion: Content: Published */
$handler->display->display_options['filters']['status']['id'] = 'status';
$handler->display->display_options['filters']['status']['table'] = 'node';
$handler->display->display_options['filters']['status']['field'] = 'status';
$handler->display->display_options['filters']['status']['value'] = 1;
$handler->display->display_options['filters']['status']['group'] = 1;
$handler->display->display_options['filters']['status']['expose']['operator'] = FALSE;
/* Filter criterion: Content: Type */
$handler->display->display_options['filters']['type']['id'] = 'type';
$handler->display->display_options['filters']['type']['table'] = 'node';
$handler->display->display_options['filters']['type']['field'] = 'type';
$handler->display->display_options['filters']['type']['value'] = array(
  'to_do_list' => 'to_do_list',
);
/* Filter criterion: ToDo Item: Completed */
$handler->display->display_options['filters']['compl']['id'] = 'compl';
$handler->display->display_options['filters']['compl']['table'] = 'mytinytodo_todos';
$handler->display->display_options['filters']['compl']['field'] = 'compl';
$handler->display->display_options['filters']['compl']['value'] = '0';

/* Display: To do lists */
$handler = $view->new_display('block', 'To do lists', 'block_1');
$handler->display->display_options['display_description'] = 'To do lists';
$handler->display->display_options['block_caching'] = '-1';

The problem is that I just can't get it to work in Homebox. I have been playing with the settings for a long time now and can't get the view to display in Homebox either by inserting the block from the view or creating my own block and using the Insert View module to inject the view.

Block caching in the Homebox settings are set to 'Don't use', and I have been changing the AJAX settings and block cache settings in every combination but get the same effect.

Basically I can add the block to the Homebox page through the 'Layout' settings, but it doesn't show up on the Homebox page. When you click 'Add Block' the view is there, but it's ghosted out as if the permissions are not set correctly. I have been through those many times too and found nothing to stop the views from showing up.

Finally I even tried the Homebox Views module (https://drupal.org/node/1599402/git-instructions/7.x-1.x), this didn't seem to work either. I'm guessing it's something to do with my settings somewhere, but I'm unable to find which settings are doing this.

Does anybody have any suggestions?

Any help you can give with this would be really appreciated because I seem to be losing the battle on this one.

Thanks, Mark

Comments

zeezhao’s picture

I also have this problem in 6.x-3.x-dev version too. View works fine in a page or block, but once in homebox does not display anything.

edit:
Figured it out. It does not work if the view has an exposed filter. So need to make filters hidden.

cockers’s picture

Thanks for the heads up Zeezhao. I just checked my view and none of my filters are exposed, so I doubt that we have the same problem.

Could you tell me how you have setup the block cache settings in Homebox with the Ajax and cache settings in Views... maybe I've mis-configured them?

Thanks, Mark

zeezhao’s picture

I am not using any cache in views or homebox.

Created a view. Then added a block to the view as an additional display so that it has both page and block as displays. This means block is now available under normal blocks admin.

Then went to homebox layout and added block there.

All D6 though as using for an old site.

cockers’s picture

Thanks zeezhao, I've just double checked and I have exactly the same settings as you, but it doesn't work for me. Could this be a bug? Any ideas how I can deal with this?

rcodina’s picture

I think the problem is due to your contextual filter "User: Uid". Try to delete it.

Anybody’s picture

Status: Active » Closed (cannot reproduce)

Please create a new Drupal 8+ (3.0.x) issue, referencing this one, if this is still relevant for Drupal 8+ (3.0.x).

As this issue was created for Drupal 7 which is close to EOL and won't receive any new features here anymore (unless someone implements them or sponsors development) I'm closing this issue for cleanup now.

If anyone works on this or has a solution, feel free to reopen! :)
Thank you.