Closed (fixed)
Project:
File (Field) Paths
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
22 Feb 2010 at 04:58 UTC
Updated:
1 Jul 2012 at 08:41 UTC
Jump to comment: Most recent file
Comments
Comment #1
delapohl commentedI'm experiencing this same issue. If the field is left blank, "The selected file /var/www/dev could not be copied" is displayed in the UI, and the above-captioned error is logged.
Comment #2
delapohl commentedHere's the quickie workaround I implemented in my install just now.
Comment #3
digi24 commentedPatch in #2 works for me. Thanks delapohl.
Comment #4
3dloco commentedHello Delapohl,
Thanks a lot for your patch....I was also experiencing the same issue, applied patch #2 and the error is gone. However, it looks the changes create conflicts with File Aliases.
The conflict that I am having is that after saving the node, I get text injected in all of the text fields for that node. Note that this text injection only occurs when I have "Display Alias" + "Active Updating" enabled on the filefield.
For example, for a node with the following settings:
title:TEST
description:This is a test.
filefield display alias: on and set to files/images/[title].jpg
filefield active updating:on
I get the following text injected into every text field:
files/imagesTfiles/images/Efiles/images/Sfiles/images/T
@Digi24 It would be most helpful to know whether you are using File Aliases and if so, if you are experiencing the same issue.
Thanks,
KH
Comment #5
digi24 commentedNo sorry 3dloco, I am not using file aliases.
But judging from the simple patch delapohl provided, I think your text injection problem is a separate issue, probably related to the regexp routines in file_aliases_filefield_paths_process_file
Comment #6
decipheredHi guys,
Will try to make some time to look into this ASAP, but unfortunately I have a lot going on IRL at the moment so I would appreciate if you could grant me some patience.
@3dloco
I am aware of some issues with file aliases and alias replacement in the body field, which does require a good amount of testing. It is only when replacing the values in the body/cck textfields though, so try to avoid doing that for the time being. Aliases in the normal display of FileFields should still be fine.
Cheers,
Deciphered.
Comment #7
3dloco commentedHello Deciphered,
Filefield paths with File Aliases makes for a great combo and appreciate you looking into this.
I understand from your advice above that I should avoid for the time being using text field tokens for aliases when active updating+display alias is enabled (tokens like [title]). Did I understand right...can you please clarify.
Thanks!
KH
Comment #8
dokuf commentedHello Deciphered,
Any news on that issue?
Regards,
dokuf
Comment #9
agileware commentedPatch #2 works for me, plus 1 and all that ;)
Comment #10
neilnz commentedThis patch seems to fix my problem of "could not copy /var/www" when I remove an image from a node. +1 from me, and might as well be RTBC, it's such a simple patch.
Comment #11
decipheredNot to cause anger, but the patch is not a fix, it is a workaround.
I will not commit it in it's current form, but I will try to make some time to reproduce and fix the cause of the issue.
Comment #12
j0nathan commentedSame issue as #1.
Subscribing.
Comment #13
alliax commentedissue sill active, did you have time to look into this?
Comment #14
Berliner-dupe commentedSame issue.
Patch from #2 dont help.
Comment #15
arojoal commented+1
Comment #16
szy commented+1 :/
Comment #17
szy commentedSorry guys: actual dev release (2011-Jul-03) solves the problem.
Thanks! :]
Szy.
Comment #18
decipheredMarking as fixed.
Comment #20
Liaz commentedGood to know it was just coming from the active updating checked - thanks