Hi,
We are using Filefield Paths in conjunction with Filefield in a content type. We are creating the nodes programmatically and when a node is first created everything is fine.
We are also doing programmatic updates of those nodes, not touching the filefield but other unrelated ones. When doing node_save filefield paths tries again to move the original file to the new location and fails since it was moved on the first time it was saved. So we get a lot of errors like this:
FileField Paths failed to move file (sites/default/files/10371-27982.jpg) to (logo/2010/17/1/13969/13969-logo-10371-27982.jpg).
FileField Paths failed to move file (sites/default/files/26024-25378.gif) to (logo/2010/17/1/14213/14213-logo-26024-25378.gif).
Comments
Comment #1
kerberos commentedSubscribe
Comment #2
Sera commented*subscribe*
The error also appears, if a file is attached while the node is created.
Comment #3
agileware commentedSubscribe.
Comment #4
dokuf commentedI also get "FileField Paths failed to move file () to (<...path...>)." If there are no files attached.
Comment #5
okokokok commentedI'm seeing similar behavior. I simply disabled the module since it's not really needed on the project it was enabled on.
Comment #6
delykj commentedSubscribe
Comment #7
agileware commentedMarking this issue as a duplicate of #721454: Active updating tries to move non-existent file as I believe this small patch solves the problem http://drupal.org/node/721454#comment-2646934
Comment #8
arojoal commentedI have tested with the patch said at #7 and still has the problem. It is not a problem with empty file field. The filefield has a file that realy gets moved to the correct path but the new path is not updated inside the field.
Comment #9
drupalnesia commented@Kasper Souren: Thanks. Can not trow this error several days until I read your post. Now, I am using nodeapi manually, work fine!
Comment #10
decipheredNo longer supporting Drupal 6 issues for this module.