In a normal content type, when an image is uploaded in image field "Add a new file" is displayed again, the refresh is automatic. This doesn't work in Profile2, you need to clic on the save button then go back to the field in order to add a new image.

CommentFileSizeAuthor
#7 rfay_debugging_drupal.txt798 bytesJerome F

Comments

joachim’s picture

Status: Active » Postponed (maintainer needs more info)

Works for me with the latest Profile2 from git.

Can you try it with that?

Jerome F’s picture

Status: Postponed (maintainer needs more info) » Active

@joachim: Thank you for your answer. Does it ? I tried the last git and the problem remains the same.
Did you try to upload a file?

The add a new file is displayed first, but is not displayed again after the image has been uploaded, if you don't hit save.
(I'm using a vertical tab field group but i tested without a group and it's the same)

joachim’s picture

Here are my steps:

1. Browse for and upload a file
2. After the file has uploaded, I see the thumbnail and an 'Add a new file' button
3. Browse for and upload another file
4. Same again -- now I have two thumbnails and can upload a 3rd file.

At what point do you save the whole profile?

Jerome F’s picture

That's wired, if this doesn't happen to you I guess I have to further investigate why it happens to me. I'm gonna try that on a fresh empty D7 site.

1. Browse for and upload a file
2. After the file has uploaded, I see the thumbnail and
I Don't see an 'Add a new file' button

I have to save the whole profile to actually see it again.

Jerome F’s picture

Status: Active » Postponed (maintainer needs more info)

Oh well, that's going to be fun. I created an empty clean D7 testing site and it works there. So I guess I'll have to go all the way activating modules, themes, etc. untill this problem appears again if I want to know what causes that.

joachim’s picture

I recommend rfay's Copenhagen session on debugging -- one thing he mentioned there was disabling modules by halves until you narrow down the problem.

Jerome F’s picture

Title: image field "Add a new file" doesn't appear when an image is uploaded in Profile2 » image field "Add a new file" doesn't appear when an image is uploaded in Profile2 when field translation module is active
Status: Postponed (maintainer needs more info) » Active
StatusFileSize
new798 bytes

Found it! It's the field translation module: http://drupal.org/node/1130518

@joachim: Thank you very much to answer even on saturday :-) I really appreciate.
I didn't find any web page, blog, pdf nor video with much informations about rfay's Copenhagen session, just the attached document. Having a debugging environment equivalent to your production site is the first thing I did and then I disabled the modules I thought where relevant considering my issue.

I'd like to recommend module filter (http://drupal.org/project/module_filter) wich is so helpfull when you have to manage and disable so many modules!

fago’s picture

Status: Active » Postponed (maintainer needs more info)

Please try to reproduce it with the latest module versions and re-open if still active.