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

mooselimb’s picture

Same 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?

VFXCode’s picture

Happens to me too.

I do get this error but the file uploads fine. I have 1 level folder and file gets renamed correctly.

kbond’s picture

subscribe

edvanleeuwen’s picture

subscribe

Golem07’s picture

I 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()

CandC540’s picture

Same issue as #5. All files go directly to sites/default/files.

bfroehle’s picture

Status: Active » Closed (duplicate)

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

mooselimb’s picture

#7 works for me @ http://drupal.org/node/1005574#comment-3859128

many thanks bfroehle