Closed (duplicate)
Project:
File (Field) Paths
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
11 Jan 2011 at 23:45 UTC
Updated:
19 Mar 2011 at 03:14 UTC
Got this error when uploading files --
Parameter 1 to filefield_paths_file_insert() expected to be a reference, value given in module_invoke_all() (line 817 of C:\wamp\www\includes\module.inc).
File seems to upload fine.
Comments
Comment #1
mooselimb commentedSame here.
Also, any directory specified in the admin>structure>content-types>particular-type>particular-filefield's upload-path does not work past the first token.
e.g.:
setting file path as:
[node:author]/[node:content-type]/[file:extension]
(or whatever).
puts the uploaded file in:
[node:author]/
Fails to make other directories and also fails to rename with tokens too.
Is this similar to u harper1983?
Comment #2
VFXCode commentedHappens to me too.
I do get this error but the file uploads fine. I have 1 level folder and file gets renamed correctly.
Comment #3
kbond commentedsubscribe
Comment #4
edvanleeuwensubscribe
Comment #5
Golem07 commentedI have the very same issue.
But unlike posted above, in my case no folder is being accepted at all. Files always get uploaded to the root (sites/default/files) directory.
Using retroactive update results in the following notice:
Notice: Undefined variable: results in image_filefield_paths_batch_update()
Comment #6
CandC540 commentedSame issue as #5. All files go directly to sites/default/files.
Comment #7
bfroehle commentedIssue in original post is a duplicate of #1005574: PHP 5.3 compatibility issue: Only variables should be passed by reference. To the other issues mentioned -- don't hijack this issue, create your own issue.
Comment #8
mooselimb commented#7 works for me @ http://drupal.org/node/1005574#comment-3859128
many thanks bfroehle