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.

CommentFileSizeAuthor
#13 profile.patch933 bytesagentrickard
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

agentrickard’s picture

it probably does. Adv. Profile is not supported if it alters core behavior.

agentrickard’s picture

Title: User Profile requires login » Advanced Profile requires login
general need’s picture

That 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.

agentrickard’s picture

How are you adding the user profile? Using the provided profile handler or a custom Droplet?

general need’s picture

I 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.

Michelle’s picture

I 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

agentrickard’s picture

My 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:

Site members can display their personal information in this space. You will be able to select which elements of your personal profile to display to others.

Then the message is coming from MySite.

Documentation is at http://therickards.com/api/file/plugins/types/profile.inc/MySite

general need’s picture

It 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.

agentrickard’s picture

Right. 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

agentrickard’s picture

Status: Active » Closed (won't fix)
asak’s picture

Sorry 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!

stevemagruder’s picture

I'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.

agentrickard’s picture

Title: Advanced Profile requires login » Profile not shown to owner if page is private.
Version: 5.x-3.2 » 5.x-3.3
Status: Closed (won't fix) » Needs review
FileSize
933 bytes

Try the following patch.

agentrickard’s picture

Status: Needs review » Closed (won't fix)