Closed (duplicate)
Project:
File (Field) Paths
Version:
7.x-1.0-beta3
Component:
Code
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
12 Mar 2011 at 14:52 UTC
Updated:
19 Oct 2012 at 10:14 UTC
Jump to comment: Most recent file
Comments
Comment #1
Julia_yl commentedSame problem as you have.
Comment #2
pillarsdotnet commentedPatch/fix. The first parameter to file_prepare_directory is passed by reference and thus must be a variable.
Comment #3
Tim Jones Toronto commentedThanks Bob - patch/fix works fine.
Comment #4
johnvThis is a duplicate of #1005574: PHP 5.3 compatibility issue: Only variables should be passed by reference. The other issue is older and has a bigger patch.
Comment #5
dercheffeHello together,
I still have this error using D 7 beta3 version, for upload some pictures. The upload process itself works fine, but this warning message still appears. Any solutions?
best wishes,
phil
Comment #6
decipheredPlease don't re-open closed issues. I'm fairly certain this has been fixed in dev, but feel free to open a new issue if you can confirm it is not.
Cheers,
Deciphered.
Comment #7
ayan_d commentedFor D 7 beta3 version the patch as specified in #2 worked for me with a slight variation in filefield_paths/modules/filefield_paths.inc as follows:
Replace
if (file_prepare_directory(drupal_dirname($file['uri']), FILE_CREATE_DIRECTORY) && file_move((object) $old_file, $file['uri'])) {
...
}
with
if(!empty($file['filepath']['new'])){
$dirname = dirname($file['filepath']['new']);
if (file_prepare_directory($dirname, FILE_CREATE_DIRECTORY) && file_move((object) $file['field'], $file['filepath']['new'])) {
...
}
}