Closed (fixed)
Project:
Profile 2
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
15 Apr 2013 at 11:56 UTC
Updated:
27 Jun 2013 at 06:41 UTC
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
Comment #1
gomez_in_the_south commentedRoad 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 TRUEHas anyone else experienced this issue? If so, is it an incompatibility with CTools, or perhaps a module weighting issue?
Comment #2
dags commentedI 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.
Comment #3
Renee S commentedYup, confirmed, had this problem and @dags' solution fixed it for me. Marking as closed, as this isn't an issue with Profile2.