If a user edits there account there is two tabs on the right hand top of the page, accounts and main profile.

When the user clicks on the main profile tab the info on the page still displays the account fields and not the main profile fields.

The account page URL is always http://www.mysite.com/user/1/edit and the main profile URL is always http://www.mysite.com/user/1/edit/main

Even though the URL changes when the main profile tab is clicked on, the fields displayed are for the account page and not the main profile fields.

The problem is present in 7.x-1.3 and 7.x-1.x-dev

Anybody who has an idea what’s up here your assistance would be much appreciated.

Comments

gomez_in_the_south’s picture

Component: User interface » Code
Priority: Critical » Normal

Road Kill provided me with access to a dev site where this problem was appearing.

I noticed that the 'page_callback' field in the menu_router table for /user/%/edit/main was set to 'page_manager_user_edit_page', which comes from Chaos Tools.

He confirmed that CTools was one of the modules that was upgraded when the problem appeared (to 7.x.1-3).

Disabling the CTools handling of the User Edit pages fixed the problem in this case, this was done with:
drush variable-set page_manager_user_edit_disabled TRUE

Has anyone else experienced this issue? If so, is it an incompatibility with CTools, or perhaps a module weighting issue?

dags’s picture

I was experiencing this exact issue after the security update to ctools-7.x-1.3. The fix describe by Gomez_in_the_South above works without any apparent side effects - but I only implemented after thoroughly debugging what was going on in the page_manager_user_edit_page first. It appears that page_manager_user_edit_page just falls back to using 'drupal_get_form' after it doesn't find any modules that want to override it and it doesn't build the right arguments/context to retrieve and return the right form.

I'd say this is a bug in ctools.

Renee S’s picture

Status: Active » Closed (fixed)

Yup, confirmed, had this problem and @dags' solution fixed it for me. Marking as closed, as this isn't an issue with Profile2.