I have created a views page to use instead of profile page. I simply added User Profile fields for "First name" and "Last name" but what is displaying to me is the First name and Last name of the User 1/Admin.
I tried to log on with other users to see the page but the information was still the same.
I did not set any filtering or argument for this page.

Is this a bug or Views Module could not access users data per users?
Any idea appreciated?

Comments

merlinofchaos’s picture

Status: Active » Fixed

You didn't provide a view export, so it's difficult to be sure.

However, the vast majority of the time people file this bug, it's because they have a 'node' view, not a 'user' view, and it's pulling up a listing of nodes. Therefore, it is returning profile data from the node author.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

holydrupal’s picture

Status: Closed (fixed) » Active

Sorry for my absent, a lot happened during two last weeks.
Here is the export:

$view = new view;
$view->name = 'profile';
$view->description = 'profile';
$view->tag = '';
$view->view_php = '';
$view->base_table = 'node';
$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', 'پیشفرض ها', 'default');
$handler->override_option('fields', array(
  'value' => array(
    'label' => 'Name',
    'alter' => array(
      'alter_text' => 0,
      'text' => '',
      'make_link' => 0,
      'path' => '',
      'link_class' => '',
      'alt' => '',
      'prefix' => '',
      'suffix' => '',
      'target' => '',
      'help' => '',
      'trim' => 0,
      'max_length' => '',
      'word_boundary' => 1,
      'ellipsis' => 1,
      'html' => 0,
      'strip_tags' => 0,
    ),
    'empty' => '',
    'hide_empty' => 0,
    'empty_zero' => 0,
    'link_to_user' => 0,
    'exclude' => 0,
    'id' => 'value',
    'table' => 'profile_values_profile_name',
    'field' => 'value',
    'relationship' => 'none',
    'override' => array(
      'button' => 'سراسر',
    ),
  ),
));
$handler->override_option('access', array(
  'type' => 'none',
));
$handler->override_option('cache', array(
  'type' => 'none',
));
$handler->override_option('items_per_page', 2);
$handler->override_option('style_plugin', 'list');
$handler->override_option('style_options', array(
  'grouping' => '',
  'type' => 'ul',
));
$handler = $view->new_display('page', 'صفحه', 'page_1');
$handler->override_option('path', 'investors/profit');
$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,
  'name' => 'navigation',
));
$handler = $view->new_display('block', 'بلوک', 'block_1');
$handler->override_option('block_description', '');
$handler->override_option('block_caching', -1);

You mean it is impossible with Views module to display Users profile information?

merlinofchaos’s picture

As I said in #1:

However, the vast majority of the time people file this bug, it's because they have a 'node' view, not a 'user' view, and it's pulling up a listing of nodes. Therefore, it is returning profile data from the node author.

Your export confirms that this is, in fact, a 'node' view.
$view->base_table = 'node';

You need to create a new view, this time selecting 'user' on the first screen.

dawehner’s picture

Status: Active » Fixed

So this issue is fixed.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.