To start off, I'm fairly new to Drupal, but this has got me scratching my head.

Under admin/user/profile I've made several categories (Personal Information, etc) and custom profile fields within them.
However, when I go to a User profile and go to the Edit Account tab, there's no place to add content to these fields anywhere. The categories aren't even listed.

The weird thing is, this used to work. The Categories used to show up in tabs next to "Account Information" with the fields in them. The only thing I've done recently that could have caused this I suppose would be Changing my custom theme to another theme and changing it back, and I installed a Drupal security update.

If anyone has a suggestion as to how to fix this, I'd be happy to hear it.

Comments

vm’s picture

first thing to do is to test it on a fresh install of a test site. to ensure it's not just something wonky with the set up this can be seen on.

ntsalter’s picture

I just installed a test site and created a new profile field. It shows up normally in the Edit tab for my account.

vm’s picture

which would make me install each module in use on the production site one at a time to see if there is some module interference and narrow down where the problem may be.

ntsalter’s picture

I think it must be something to do with my Custom theme. After I installed the theme on the test account, I can't see it again. If I change back to Garland, I can.

I don't have a custom user-profile page, do you have any idea what could cause this?

vm’s picture

is the theme not printing the $tabs variable? or is it being altered in template.php or something?

ntsalter’s picture

It should be.
I have
if ($tabs): print '<div id="tabs-wrapper" class="clear-block"><ul class="tabs primary">'. $tabs .'</ul>'; endif;
if ($tabs2): print '<ul class="tabs secondary">'. $tabs2 .'</ul>'; endif;
if ($tabs): print '<span class="clear"></span></div>'; endif;
in the Main div in the page template file. And I haven't altered anything to do with $tabs in the template.php file.

Edit:
In looking at the HTML output, it looks like the Secondary tabs aren't being printed in the custom theme.

vm’s picture

without understanding which theme is being used as a base theme and what alterations have been made, I'm out of ideas.

truyenle’s picture

My case is $tabs, I remove the $tabs preprocess function under template.php. So I just add it again then it work.

function phptemplate_preprocess_page(&$vars) {
$vars['tabs2'] = menu_secondary_local_tasks();

// Hook into color.module
if (module_exists('color')) {
_color_page_alter($vars);
}
}

Thank a lot.

Truyen

ntsalter’s picture

I replaced

function phptemplate_menu_local_tasks() {
  return menu_primary_local_tasks();
}
function phptemplate_menu_local_tasks() {
  if ($primary = menu_primary_local_tasks()) {
    $output .= '<ul class="tabs primary clear-block">'. $primary .'</ul>';
  }
  if ($secondary = menu_secondary_local_tasks()) {
    $output .= '<ul class="tabs secondary">'. $secondary .'</ul>';
  }
  return $output;
}

in template.php and it seems to have solved the problem. Weird stuff.

ljrweb’s picture

Was that phptemplate function in your custom theme's template.php file or did you add it?

I added that function to mine cause it wasnt in there...

also-- did you replace phptemplate with your theme name??

ie: function {theme_name}_menu_local_tasks ??

thanks