Closed (duplicate)
Project:
File (Field) Paths
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
10 Mar 2011 at 14:06 UTC
Updated:
24 Jun 2011 at 04:37 UTC
I wanted to do a retroactive uptdate of my path settings
from works/[current-page:title]* to works/[node:title]
(* I can't remember the old token it doesn't exist anymore it used to take the current page title, before the token tre UI has changed on update / I want to get rid of this because the names are not transliterated, nor using pathauto replacement patterns and things are quite messed up. For the time being, I guess I have to re-create all the content of my new D7 website, I tried to remove one image and to reupload it but that didn't work either, the old path settings are kept.)
* Notice : Undefined variable: results in image_filefield_paths_batch_update() (line 93 in (...)/public_html/sites/all/modules/filefield_paths/modules/file.inc).
* Warning : Invalid argument supplied for foreach() in image_filefield_paths_batch_update() (line 93 in (...)/public_html/sites/all/modules/filefield_paths/modules/file.inc).
Comments
Comment #1
johnvsubscribe
Comment #2
W.M. commentedI have noticed the same problem. The files don't get uploaded to the destination defined by tokens at all. They get always uploaded to the root directory of my public files.
My server runs PHP version 5.3.5
Comment #3
Adam S commentedsubscribe
Comment #4
steveray commentedI got the same message after installing/enabling filefield_paths on a small existing site and setting the filefield path of an imagefield to
[node:content-type]/[node:title]
No retroactive updates occured (the error/warning message implies this), but no apparent damage either. The "Retroactive Updates" flag was unchecked when I went back to the content Manage Fields page. I tried checking it again and got the same messages and it was automatically unchecked again.
Active Updating does seem to be working, however. I added a content node with the above path tokens and then changed the node title. The image that had been saved under a directory with the old node title was moved to a directory named with the new node title. The old directory remained in place though, empty.
Comment #5
aidanlis commentedThat part of the module has not been ported yet, and won't be until someone volunteers to do it...
Comment #6
h0tw1r3 commentedSee my patch from #1194694: Fatal error: Call to undefined function field_attach_query(). It fixes this issue also.