When I try to post content of any node type while the Upload module is activated, I get the following error.
Fatal error: Only variables can be passed by reference in /var/vhosts/lolminute.com/httpdocs/modules/upload/upload.module on line 380
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | upload2.patch | 1.36 KB | RobRoy |
| #3 | upload_directory_0.patch | 1.36 KB | ChrisKennedy |
| #1 | upload_directory.patch | 1.31 KB | ChrisKennedy |
Comments
Comment #1
ChrisKennedy commentedHere is the problem commit: http://cvs.drupal.org/viewcvs/drupal/drupal/modules/upload/upload.module...
And the parent issue: http://drupal.org/node/98391
The attached patch should fix the problem by creating variables that can then be passed by reference to file_check_directory().
Comment #2
RobRoy commentedGood catch. One minor thing. I'd throw a break and a comment above those two lines instead of the two inline comments like this:
// Create variables for the default 'files' and temp directories to be passed by reference.
Comment #3
ChrisKennedy commentedSounds good to me.
Comment #4
RobRoy commentedDeleted one trailing white-space after the comment. Looks RTBC.
Comment #5
neclimdulThe break makes it look like the first comment isn't attached to any code. -1
Code works though. Everything seems to be in order.
Comment #6
Steven commentedCommitted to HEAD. Thanks.
Comment #7
(not verified) commented