I have bakery installed on one master site and two sub sites. All things seem to be working fine, except the user picture component. With user picture selected on the bakery config of all sites, a picture uploaded on one site will use a different picture from the same folder on the sub sites. Any thoughts?

Comments

tunic’s picture

Bakery should only allow to change image at master site; slaves sites should show this message: 'You can change the name, mail, and password at the master site' (unless you access user profile with a user with 'administer users' permission).

If you don't see this message something is wrong in your installation. You can check bakery_form_alter function that is in charge of altering user edit forms (and others).

melandren’s picture

Fair enough. I was having a combination of cookie issues and being only logged in with the admin permissions. So I think it's all set up correct now... I get the message 'You can change the name, mail, and password at the master site' for all other users. But userpics are not showing up next to posts and comments nor on the profile page. I've tried this on both the alpha release and the most current dev version.

Everything else is functioning correctly as far as I can tell. Just the userpic component seems to be acting weird.

**UPDATE: ...and yes they're enabled in the theme

coltrane’s picture

Bakery syncs whats stored in the user table for picture, which by default is the file path to the picture, so for user pictures to work across sites you'll need that file to be available from the files directory across servers. Usually that means a network-shared files directory if the sites are on different machines or the same files directory if they're on the same.

coltrane’s picture

Status: Active » Postponed (maintainer needs more info)

Is this still an issue?

solotandem’s picture

First, let me say I have not tested this, but offer this comment from a review of code and database.

Regarding #3, the user table stores the fid of the picture image in the picture column. It is unlikely that a fid will match across sites. So, for the correct picture to display on a slave site, bakery would need to make a request to the master site for the correct URL. Then, the URL must be accessible to the slave as per #3.

ktrev’s picture

Issue summary: View changes

We have the same issue as mentioned.
user picture is uploaded in master site. But it is not visible in the slave site.
How do we make it visible?

fuzzy76’s picture

Title: User Pictures giving me issues. » Document user picture sync
Version: 7.x-2.0-alpha3 » 7.x-2.x-dev
Component: User interface » Documentation
Category: Support request » Task
Status: Postponed (maintainer needs more info) » Active

@ktrev by implementing what's described in comment #3 :) But I just tried searching, and this is not documented anywhere so I would suggest this is a documentation issue.