There is this very abnormal behaviour that me module displays, when I activate this module, My Friends block created by using the Friendlist module, starts displaying the image of the same members a number of times, say I have four friends, I see the user image of these four friends, but when I activate the me module, I see the same four images repeted a number of times, so now the block insted of just showing 4 user images, I see 8 or 12 images.

How can I solve this issue?

Thanks..

Comments

cdale’s picture

Thanks for the report. I won't get time to look at this properly until tomorrow however.

cdale’s picture

I've had a look at this, but I haven't been able to create what you say is happening. Perhaps some more information on how you got setup might be useful.

I'd also be curious to know if you select the "Redirect to UID" option in me's settings, if this fixes this issue for you also.

manoz_79’s picture

StatusFileSize
new92.58 KB
new8.58 KB
new17.77 KB

Hi,

I have attached 3 images, which displays the My friends block

1. When 'Me' module is switched on

manoz_79’s picture

I just figured out the problem, If i have listed 10 images to be shown using 'Views', and I only have 4 friends, the block gets populated with the images of the of the 4 friends, and the other 6 are replicated, so it shows 10 friends images, even though I have only 4 friends.

Hope this helps.

cdale’s picture

Could you export the view that makes that list for me and paste it here inside tags? it would be really useful to help me track this down.

manoz_79’s picture

Please find below the view, hope this helps.

$view = new view;
$view->name = 'friendlist_public_twoway';
$view->description = 'TWOWAY: List an \'x\' amount of connections in a block that links to a page.';
$view->tag = 'friendlist';
$view->view_php = '';
$view->base_table = 'friendlist_relations';
$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('relationships', array(
  'requestee_id' => array(
    'label' => 'Requestee',
    'required' => 0,
    'id' => 'requestee_id',
    'table' => 'friendlist_relations',
    'field' => 'requestee_id',
    'relationship' => 'none',
  ),
  'requester_id' => array(
    'label' => 'Requester',
    'required' => 0,
    'id' => 'requester_id',
    'table' => 'friendlist_relations',
    'field' => 'requester_id',
    'relationship' => 'none',
  ),
));
$handler->override_option('fields', array(
  'picture' => array(
    'label' => '',
    'exclude' => 0,
    'id' => 'picture',
    'table' => 'users',
    'field' => 'picture',
    'relationship' => 'requester_id',
    'override' => array(
      'button' => 'Override',
    ),
  ),
));
$handler->override_option('arguments', array(
  'uid' => array(
    'default_action' => 'default',
    'style_plugin' => 'default_summary',
    'style_options' => array(),
    'wildcard' => 'all',
    'wildcard_substitution' => 'All',
    'title' => '',
    'default_argument_type' => 'user',
    'default_argument' => '',
    'validate_type' => 'none',
    'validate_fail' => 'not found',
    'break_phrase' => 0,
    'not' => 0,
    'id' => 'uid',
    'table' => 'users',
    'field' => 'uid',
    'override' => array(
      'button' => 'Override',
    ),
    'relationship' => 'requestee_id',
    'default_options_div_prefix' => '',
    'default_argument_user' => 0,
    'default_argument_fixed' => '',
    'default_argument_php' => '',
    'validate_argument_node_type' => array(
      'page' => 0,
      'story' => 0,
    ),
    'validate_argument_node_access' => 0,
    'validate_argument_nid_type' => 'nid',
    'validate_argument_php' => '',
  ),
));
$handler->override_option('filters', array(
  'status' => array(
    'operator' => 'in',
    'value' => array(
      'TW_BOTH' => 'TW_BOTH',
    ),
    'group' => '0',
    'exposed' => FALSE,
    'expose' => array(
      'operator' => FALSE,
      'label' => '',
    ),
    'id' => 'status',
    'table' => 'friendlist_statuses',
    'field' => 'status',
    'override' => array(
      'button' => 'Override',
    ),
    'relationship' => 'none',
  ),
));
$handler->override_option('access', array(
  'type' => 'none',
));
$handler->override_option('title', 'Connections');
$handler->override_option('empty', 'No available connections.');
$handler->override_option('empty_format', '1');
$handler->override_option('use_more', 1);
$handler->override_option('style_options', array(
  'grouping' => '',
));
$handler->override_option('row_options', array(
  'inline' => array(),
  'separator' => '<span style="position:relative;top:1px;left:1px;">',
));
$handler = $view->new_display('block', 'Connections block', 'block_1');
$handler->override_option('title', 'Latest connections');
$handler->override_option('style_plugin', 'grid');
$handler->override_option('style_options', array(
  'grouping' => '',
  'columns' => '3',
  'alignment' => 'horizontal',
));
$handler->override_option('row_options', array(
  'inline' => array(
    'picture' => 'picture',
  ),
  'separator' => '<div style="position:relative;top:1px;left:1px;">',
));
$handler->override_option('block_description', 'Latest friends');
$handler->override_option('block_caching', -1);
$handler = $view->new_display('page', 'Connections page', 'page_1');
$handler->override_option('title', 'All current connections');
$handler->override_option('items_per_page', 50);
$handler->override_option('use_pager', '1');
$handler->override_option('path', 'connections/%/connected');
$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,
));

cdale’s picture

Hmm.. Having had a look at that, I'm wondering if this issue is related to #405866: Views argument User:ID and me aliases. Can you confirm if the problem is resolved if you use the latest 6.x-2.x-dev snapshot?

cdale’s picture

I am unable to replicate this. Can you perhaps post the query that a views live preview gives out?

manoz_79’s picture

Yes I have downloaded and configured the latest 6.x-2.x-dev snapshot, but now the block in whole has dissapeared from the page.... Don't know how to go about setting it right....

cdale’s picture

Have you still got the "Redirect to UID" Option selected? This will be needed as the friendlist module uses arg(1) to get the uid, but by default, this will be 'me', which will be incorrect as far as friendlist is concerned. I don't know of a way around this at the moment.

cdale’s picture

Category: bug » support
Status: Active » Closed (fixed)

Haven't heard back on this one so I'm closing it. If the problem still exists please reopen.