1 reply [Last post]
miss-susan's picture
Offline
Joined: 01/02/2009
Juice: 26
Was this information Helpful?

Hello all! I'm at my wit's end and I need some help...

I created a Drupal 5.10 site running Ubercart 1.6 for a client who sells file downloads. She has been reporting that when she creates new files for sale, after she uploads the files and then tries a download test, she gets a 404 error page as if the file doesn't exit.

I tested this, and I looked at the file's status using an FTP program. This is the process I followed, and the file's status at various points:

  1. Create new product
  2. Upload file - I can see file on server via FTP
  3. Associate file with product - I can see file on server via FTP
  4. Do a test file download, and download is successful - I can still see file on server via FTP
  5. Edit product for some reason and save node - after saving node, file disappears.
  6. File is now permanently gone from server, despite being listed in the file downloads list at /admin/store/products/files and being associated with a product.

Near as I can tell, somehow the file is getting cached in Drupal's file upload system. When I edit the node after uploading the file, the file name is shown in the file attachment box of the node (see attachment for screenshot), and when the node is edited the file is somehow deleted. If I log out of the site between steps 4 and 5 above, the file doesn't get deleted.

Does anybody have any ideas how to fix this? Pretty please?

PreviewAttachmentSize
ubercart_testing.pngubercart_testing.png12.32 KB
royerd's picture
Offline
Joined: 01/22/2008
Juice: 293
Re: Files being deleted from server on new node creation

doubt you are still out there . . . . I've occassionaly had troubles with a file download disappearing from the product and the database tables. I've wondered if the fid or pfid fields get out of whack with the sequence table.