Come together with the global Drupal community in Rotterdam, 28 Sept – 1 Oct 2026. Sessions, contribution, connection, and Early Bird savings until 8 June.
Dunno about you guys, but i found that this behavior is exhibited when content type "profile" => "Profile edit Tab" has "None" or "Show a tab at the user's page" selected. Got around it by selecting "Show a secondary tab below the user's edit tab".
Hope this help~
Marked as duplicate: #818026: Warning & access denied on edit page!
Do you get as well 'warning: Missing argument 2 for user_category_load()' in the same time when there is Permission Denied?
PS. Make sure that you have existing profile via Content Profile module, which is:
at least one of the content type should have option 'Use this content type as a content profile for users' enabled.
Thank you for effort and the patch.
Unfortunately this patch could conflict with 'me' module.
So relying on arg(1) is not always a good idea.
See: #929344: Integration with 'me' module
Look something similar to:
$uid = arg(1);
if (module_exists('me') && arg(1) == 'me') {
global $user;
$uid = $user->uid;
}
Can anyone confirm #8?
I have two types of profiles (according to the user´s role), but this module merges the two profiles and the edit tab, all in one.
Even with the patch...
Rosamuda, it appears you may have a different issue best suited for a different/new thread. I can confirm that #2 is correct regarding the content profile tab setting.
Thanks for your reply :)
I´ve tried #2 and it works. But when you have two profile types (each for a different user role), it merges both of them in one profile to everybody (without any regard to the role).
The problem is here (I think): admin/settings/account_profile
There you have this:
Main Profile:
[X] Profile Type A (radio checkbox, I can´t choose the two)
[ ] Profile Type B
Choose the main profile which should contain user fields.
[X] Redirect on User Edit page
[ ] Disable the normal User Edit tab
If you uncheck "Disable the normal User Edit tab" it won´t do anything, the problem remains when you have more than one profile type.
If I check "[ ] Profile Type A" That profile will be ok: The user will be able to access his profile with the password fields.
BUT the user of "[ ] Profile Type B" won´t.
So I think that the problem is there: You should be able to choose both checkboxes (now are radio checkboxes).
Maybe a workaround: when you have more than one profile:
-- You set "Show a secondary tab below the user's edit tab" as the available option at the content profile page (/admin/content/node-type/profile/profile)
-- In this module´s settings (/admin/settings/account_profile) you set:
Main Profile:
[X] Profile Type A
[ ] Profile Type B
Choose the main profile which should contain user fields.
[ ] Redirect on User Edit page
[ ] Disable the normal User Edit tab
You just have to disable those two options. It´s a nasty workaround, because it just gives the user the access to the account in the normal way in one case, and it works as intended in the other case (the one that´s checked).
At least it won´t give you an error when you try to click the user´s edit page...
Comments
Comment #1
jonathanhuot commented+1 it's very annoying.. :(
Comment #2
lagon commentedDunno about you guys, but i found that this behavior is exhibited when content type "profile" => "Profile edit Tab" has "None" or "Show a tab at the user's page" selected. Got around it by selecting "Show a secondary tab below the user's edit tab".
Hope this help~
Comment #3
kenorb commentedComment #4
drupalworlds commentedHi,
I just removed(disabled) this account profile module, then I can edit the profile again.
This module may have some bug ...
regards
Comment #5
kenorb commentedMarked as duplicate: #818026: Warning & access denied on edit page!
Do you get as well 'warning: Missing argument 2 for user_category_load()' in the same time when there is Permission Denied?
Comment #6
drupalworlds commentedAfter deleting the module, there was no warning message at all.
Comment #7
kenorb commentedPS. Make sure that you have existing profile via Content Profile module, which is:
at least one of the content type should have option 'Use this content type as a content profile for users' enabled.
Comment #8
piotr.loposzko commentedWhen I set "profile" => "Profile edit Tab" to 'Show a tab at the user's page' I had the same error.
Here is a patch(for account_profile.module):
Comment #9
kenorb commentedComment #10
kenorb commentedThank you for effort and the patch.
Unfortunately this patch could conflict with 'me' module.
So relying on arg(1) is not always a good idea.
See: #929344: Integration with 'me' module
Look something similar to:
Comment #11
Rosamunda commentedCan anyone confirm #8?
I have two types of profiles (according to the user´s role), but this module merges the two profiles and the edit tab, all in one.
Even with the patch...
Comment #12
vishun commentedRosamuda, it appears you may have a different issue best suited for a different/new thread. I can confirm that #2 is correct regarding the content profile tab setting.
Comment #13
Rosamunda commentedThanks for your reply :)
I´ve tried #2 and it works. But when you have two profile types (each for a different user role), it merges both of them in one profile to everybody (without any regard to the role).
Comment #14
Rosamunda commentedThe problem is here (I think): admin/settings/account_profile
There you have this:
Main Profile:
[X] Profile Type A (radio checkbox, I can´t choose the two)
[ ] Profile Type B
Choose the main profile which should contain user fields.
[X] Redirect on User Edit page
[ ] Disable the normal User Edit tab
If you uncheck "Disable the normal User Edit tab" it won´t do anything, the problem remains when you have more than one profile type.
If I check "[ ] Profile Type A" That profile will be ok: The user will be able to access his profile with the password fields.
BUT the user of "[ ] Profile Type B" won´t.
So I think that the problem is there: You should be able to choose both checkboxes (now are radio checkboxes).
Comment #15
Rosamunda commentedIn account_profile.admin.inc you have this:
Sadly, you just can´t replace
'#type' => 'radios'to'#type' => 'checkboxes', because that way, none of the profiles will show the password field.Comment #16
Rosamunda commentedMaybe a workaround: when you have more than one profile:
-- You set "Show a secondary tab below the user's edit tab" as the available option at the content profile page (/admin/content/node-type/profile/profile)
-- In this module´s settings (/admin/settings/account_profile) you set:
Main Profile:
[X] Profile Type A
[ ] Profile Type B
Choose the main profile which should contain user fields.
[ ] Redirect on User Edit page
[ ] Disable the normal User Edit tab
You just have to disable those two options. It´s a nasty workaround, because it just gives the user the access to the account in the normal way in one case, and it works as intended in the other case (the one that´s checked).
At least it won´t give you an error when you try to click the user´s edit page...
Comment #17
kenorb commentedClosing as per Drupal 6 end-of-life.