Going to the user profile page triggers the following error:

  • Notice: Undefined index: elements in aurora_preprocess_user_profile_category() (line 246 of /path/to/sites/all/themes/contrib/aurora/template.php).
  • Notice: Undefined index: elements in aurora_preprocess_user_profile_category() (line 247 of /path/to/sites/all/themes/contrib/aurora/template.php).
  • Notice: Trying to get property of non-object in aurora_preprocess_user_profile_category() (line 251 of /path/to/sites/all/themes/contrib/aurora/template.php).
  • Notice: Trying to get property of non-object in aurora_preprocess_user_profile_category() (line 252 of /path/to/sites/all/themes/contrib/aurora/template.php).

There does not appear to be an 'elements' index in the $vars array. There is an 'element' index, but it does not appear to contain either '#view_mode', or '#account'.

Comments

4aficiona2’s picture

Happens too with my setup but I run the 7.x-3.4 version of aurora

iamcarrico’s picture

Status: Active » Fixed

I seem to have added that code to the wrong preprocess function. I pushed a fix in the latest dev branch.

  • Commit a4f53bb on 7.x-3.x by iamcarrico:
    #2289967: Fix bug with putting preprocess in the wrong function
    

Status: Fixed » Closed (fixed)

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

mausolos’s picture

Version: 7.x-3.x-dev » 7.x-3.4
Status: Closed (fixed) » Needs review

This issue still exists in 3.4, which appears to be dated a week or two after this fix was committed to dev. Did this just not make it to 3.4 from dev? If it's still in dev, can we get an eta on next release with this fix in it?

Much appreciated!
Charles

Fidelix’s picture

Status: Needs review » Closed (fixed)

Just tested it again with the latest dev version and the commit is there, and the problem is fixed.