Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I added User Profile data to a the Default Content settings. The item appears on the MySite, however users are required to login via the element on MySite even though they are already logged in. When attempting to do so they get an access denied error.
ps - I am using Advanced Profile, if that matters.
Comment | File | Size | Author |
---|---|---|---|
#13 | profile.patch | 933 bytes | agentrickard |
Comments
Comment #1
agentrickardit probably does. Adv. Profile is not supported if it alters core behavior.
Comment #2
agentrickardComment #3
general need CreditAttribution: general need commentedThat is a shame. Mysite is and excellent module and so to is Advanced Profile. I'd like to use them together (which I can, except for adding User Profile info to Mysite pages.
Comment #4
agentrickardHow are you adding the user profile? Using the provided profile handler or a custom Droplet?
Comment #5
general need CreditAttribution: general need commentedI am using the provided profile handler.
As an aside, I have not tried a Droplet yet for 'in house' items as users dont know to look in 'add droplet' for anything but 3rd party widgets, so I try to avoid making Droplets that use data from my website.
Comment #6
MichelleI just stumbled across this in the global tracker. Advprofile doesn't have anything to do with logging in... I don't really understand what the issue is here. I have MySite installed on socnet and it seems to work fine, though I haven't had time to do much with it.
Michelle
Comment #7
agentrickardMy guess is that users may not have the permission to view the profile element.
This does not happen with default profile module. See http://therickards.com/mysite/agentrickard for instance.
What login prompt do you get? A screenshot or URL would help.
If the message says:
Then the message is coming from MySite.
Documentation is at http://therickards.com/api/file/plugins/types/profile.inc/MySite
Comment #8
general need CreditAttribution: general need commentedIt says what you quoted. When I try to login I get an access denied error. From memory of a different issue last year on another site without MySite, this is typical if I try to login when in fact I am already logged in. The fact that I am already logged in doesn't seem to made available to Mysite when it loads the uprofile element?
Unfortunately the ode documentation was of limited use to my inexperienced eyes.
All roles are enabled to view profiles.
ps - I should add that it says as you quoted, but it also displays my avatar and offers a link to sign-in and a link to register on the site.
Comment #9
agentrickardRight. Which means that you are getting http://therickards.com/api/function/theme_mysite_type_profile_anonymous/... as the return function.
As I read the code that leads to that being sent, this would only happen if your MySite page is set to 'private' instead of 'public' under the personal settings.
See http://therickards.com/api/function/mysite_type_profile_data/MySite
Comment #10
agentrickardComment #11
asak CreditAttribution: asak commentedSorry to reopen this issue (so i won't) - but it seems logical to me that users should be able to view the profile, even (and especially) when MySite is set to 'private' mode.
Can this be fixed by some quick patch? ;)
Thanks!
Comment #12
stevemagruder CreditAttribution: stevemagruder commentedI'm seeing this exact same issue, but with the standard built-in profile.
It seems to me that if I'm logged in and I'm looking at my own mysite pages, that even if it's set to private, I shouldn't have to login a second time to see my own profile.
Comment #13
agentrickardTry the following patch.
Comment #14
agentrickard