Hi. I'm running the CCK 5.x-1.5, CCK image 5.x-1.x-dev with Node Family 5.x-1.1, Node Profile 5.x-1.x-dev, Usernode 5.x-1.1 and Pageroute 5.x-1.0 on drupal 5.1. I have successfully created node profile based profile and a View for it.

However, I am having one problem. I created a CCK image field for my nodeprofile content type so that users can upload their picture or avatar. When I create/edit a node profile I can navigate to an image and select it and it shows it selected, but then when i click upload, i don't think anything happens. it appears to just go back to being empty. i can't see that any file is uploaded anywhere into my files directory. I am able to successfully upload images via CCK image field in other content types, just not nodeprofile. Can you think of any reason for this?

Comments

fago’s picture

Status: Active » Fixed

yes, there is a bug in pageroute 1.0 that causes this. update to the latest -dev snapshot of pageroute or wait for the next release, which isn't far away.

firebus’s picture

hmm. i am not using pageroute (anymore) but i am still having this issue.

perhaps if i delete and recreate the custom field now that pageroute is gone? i'll try it.

i'm using:

nodeprofile 5-x-1.1, nodefamily 5.x-1.1, usernode 5.x-1.1, imagefield 5.x-1.1

thanks!

firebus’s picture

Version: 5.x-1.x-dev » 5.x-1.1
Status: Fixed » Active

nope. it's definitely not working for me, even though pageroute is no longer installed.

any ideas?!

thanks!

firebus’s picture

sorry for the multiple posting.

i'm editing my nodeprofile through the user pages. if i go to the actual edit page for the nodeprofile, it works great. but if i try to edit through the user page edit tab, it doesn't work.

so maybe there's an issue with subform_element or the way nodeprofile is using it?

thanks again.

firebus’s picture

Status: Active » Fixed

following that train of thought, i upgraded to the latest 5.x-1.x-dev release of subform_element and now it works like a charm. thanks for listening.

jpetso’s picture

Confirmed. We are having the same problem at the moment, and we really need to get it fixed, er, soon. ;) I'll try a bit more, once I find the time.

fago’s picture

Title: CCK Image field not working with Node Profile. » fileupload broken for nodeprofile user categories integration
Category: support » bug
Status: Fixed » Active

ah I think I know that I've forgot...

fago’s picture

Title: fileupload broken for nodeprofile user categories integration » imagefield broken for nodeprofile user categories integration

no, $form['#attributes']['enctype'] = 'multipart/form-data'; is there. The user module does that for us... I just tested an upload with the upload module - working. I'm going testing with the imagefield now...

fago’s picture

I'm not able to reproduce this! Are you still facing this problem?
Are you able to upload using the usual node form at create-content - profile-type ?

firebus’s picture

we (still) no longer have this problem after updating to the most recent dev release of subform_element. not sure about the others on this issue.

fago’s picture

Status: Active » Fixed

great - so I close the issue. just reopen if the problem persists

voidengine’s picture

Title: imagefield broken for nodeprofile user categories integration » Same Result

Working with this setup I observed the same bug - Image Field upload did not with within the Subform Element on uset/1/edit, but did work on the node edit page.

Node Family 5.x-1.3
Node Profile 5.x-1.1
CCK 5.x-1.4
Image 5.x-1.1
Subform Element 5.x-1.2

I also upgraded to Subform Element 5.x-1.x-dev and the Image Field operated correctly in all cases.

fago’s picture

Title: Same Result » imagefield broken for nodeprofile user categories integration

indeed. I forgot to make a new release of subform for this important bugfix:
bugfix: fixed file uploads with #data_separation on by excluding them from the separation

Anonymous’s picture

Status: Fixed » Closed (fixed)