Hi,

i have no idea why filefield paths didn't work. It doesen't matter what i write in to the path field. The files always copied to the main file directory. Bevor i used filefield paths i used upload path, but this doesn't support comment upload, so i want to change.
Has somebody an idea what is the reason. Or ist there a possibility to check if the path i entered correct? I'm a litte bit helpless :-). I need an impulse.

Thanks for your help.

strauch

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

strauch’s picture

FileSize
16.3 KB

an image of my settings for forum comments.

strauch’s picture

Mhhh i checked on an second installation, i have the same problem, the modul don't move the files. When I Retroactive update the files it worked, but only for the forum content type not for the upload modul. What is my mistake? Thanks for any help.

Best Regards

strauch

strauch’s picture

Nobody any idea? For CCK Fields it works, for standard node uplaods oder comment upload it doesn't work. Is there a possibility to check the settings from the module?

thanks

strauch

aaron1234nz’s picture

FileSize
624 bytes

This is an issue with the way PHP handles pass-by-reference calls in module_invoke_all.
Attached is a patch which alters the way calls are made to fix this issue in 5.3.
Issue background:
* http://api.drupal.org/api/drupal/includes--module.inc/function/module_in...
* http://drupal.org/node/353494

Deciphered’s picture

Status: Active » Fixed

Patch looks good, committed to 6.x-1.x.

Cheers,
Deciphered.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

Exploratus’s picture

Patch works. THanks!

Exploratus’s picture

I have one small problem, basically I am trying to send an email automatically attached to a comment (through Ticket Support Module) and the url shown is the main file system directory, even though the file is in a subdirectory (tokens). Comment upload modules, after this patch, is correctly putting the file in the right place and with the correct link in the node. But the email sent though Ticket Support System Module, using file_create_url is sending out the wrong url (without the filefields path) - showing the file in the main file directory even though its in a subdirectory.

roball’s picture

Assigned: Unassigned » Deciphered
Category: support » bug

The fix is now officially available in version 6.x-1.5.