This happens consistently with different files and quantities of files...
I just created a disknode with these 4 different items...
upload_test/Einstein.gif
upload_test/SuburbanTrunkmonkeyAd.mpeg
upload_test/outpost_gerbil_cannon.avi
upload_test/he-man.mov
here is what it creates... and it works fine, except the file list gets screwed up.
Your disknode was created.
Submitted by droopy on Thu, 2006-04-06 13:36.» he-man.mov (0 downloads | 19.48 MB) | he-man.mov (0 downloads | 19.48 MB) | he-man.mov (0 downloads | 19.48 MB) | he-man.mov (0 downloads | 19.48 MB)
When you edit the disknode, the file list shows
upload_test/he-man.mov
upload_test/he-man.mov
upload_test/he-man.mov
upload_test/he-man.mov
I originally left the disknode settings alone, but then tried entering in a base path. I didn't enable the experimental options. I'm running 4.6.6 and the latest disknode 4.6.0 module as of today. My mind is rather fried right now with a caffeine headache, so i know i probably forgot to tell you something you need. I apologize in advance. I've searched for 2 days on this, but didn't find very many issues with disknode to begin with... Of course, the ZIP unpacking functionality would solve my issues :)
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | disknode-filelist-fix.patch | 722 bytes | rblomme@drupal.org |
Comments
Comment #1
elmuerte commentedI'm unable to reproduce this. I will try to dig a bit further to find a probable cause.
Comment #2
fagath commentedWell I repeated that bug with the current config :
drupal 4.7.0
Apache/2.0.54
PHP Version 5.0.4
Mysql 4.1.12-Max
OS Mandriva Linux 2006 (kernel 2.6.12)
I think I found a solution (a least it works for me )
I just did a little change on line 283 in disknode.inc file
I replaced :
by
Comment #3
rblomme@drupal.org commentedI have the same problem in cvs DRUPAL-4-7
// $Id: disknode.inc,v 1.1.4.20 2006/08/15 08:36:08 elmuerte Exp $
The fix in #2 solves my problem.
Comment #4
rblomme@drupal.org commentedpatch in attachment
Comment #5
eliza411 commentedThis worked for me, too. Thanks so much for posting the solution.
I hope it makes it into the module code.
Comment #6
mooffie commentedThis problem only occurs in PHP5 because objects in PHP5 are copied by reference (whereas in PHP4 they are cloned).
Comment #7
mooffie commentedFixed.
Comment #8
(not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.