When enabling RealName module, the /users/%user page breaks and presents the Fatal error:

Fatal error: Cannot use object of type stdClass as array in .../includes/theme.inc on line 963

963 of includes.inc is

if (isset($variables['#theme']) || isset($variables['#theme_wrappers'])) {
    $element = $variables;
    $variables = array();
    if (isset($info['variables'])) {
      foreach (array_keys($info['variables']) as $name) {
        if (isset($element["#$name"])) {
          $variables[$name] = $element["#$name"];
        }
      }
    }
    else {
      $variables[$info['render element']] = $element;
    }
  }

how do i fix my user profiles?

Comments

dave reid’s picture

Status: Active » Postponed (maintainer needs more info)

What theme are you using? Can you reproduce this with a fresh install of core + Real name only?

dave reid’s picture

Status: Postponed (maintainer needs more info) » Closed (cannot reproduce)
Rosamunda’s picture

Version: 7.x-1.0-rc2 » 7.x-1.1
Status: Closed (cannot reproduce) » Active

I´ve reopened this because I have the same issue, but in line 1054 (But I´ve checked and it´s the same line).
I can add 2 things:
- It only affects the profile page (Node pages that refers to the username look fine).
- If I change the theme the problem remains.

hass’s picture

Issue summary: View changes
Status: Active » Closed (cannot reproduce)

Try to add a dump function in core line 1054 or before and debug.