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

kerberos’s picture

Subscribe

Sera’s picture

*subscribe*

The error also appears, if a file is attached while the node is created.

agileware’s picture

Subscribe.

dokuf’s picture

I also get "FileField Paths failed to move file () to (<...path...>)." If there are no files attached.

okokokok’s picture

I'm seeing similar behavior. I simply disabled the module since it's not really needed on the project it was enabled on.

delykj’s picture

Subscribe

agileware’s picture

Status: Active » Closed (duplicate)

Marking 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

arojoal’s picture

Status: Closed (duplicate) » Active

I 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.

drupalnesia’s picture

@Kasper Souren: Thanks. Can not trow this error several days until I read your post. Now, I am using nodeapi manually, work fine!

deciphered’s picture

Issue summary: View changes
Status: Active » Closed (won't fix)

No longer supporting Drupal 6 issues for this module.