• Toll-free  888-665-8637
  • International  +1 717-220-0012
Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

[email protected]
#1 Posted : Sunday, December 24, 2006 8:26:34 PM(UTC)
bobn@laurastamm.net

Rank: Member

Joined: 6/6/2005(UTC)
Posts: 483

I am having trouble getting my file downloads to work properly. I think I may have either screwed up my site, found a bug or I'm missing a step (again). We are using Cliff's TekGear Redux theme (modified a bit).

I was doing ok on our site. Everything was working pretty good. Good enough that I started playing with the optional themes our customers could use to view our site. I'm planning to offer 2 or 3 color variations of TekGear and we are going to keep Painted Paper and probably a variation of BV5 for those that like back. I'm still working on that part. However I didn't really like the way Print Book looked on our site, so I threw it away.

I am currently attempting to add some file downloads to our site and have encountered the follow issues. I'm doing everything live but the first download is going to be free so I'm not to worried about it.

My files are pretty big, one of them 3 mg, so I ftp'ed them to the files folder in the www folder on our site using IE7. Next I selected my files using the select file from above option. If I test it from here in the admin section the download works fine. However when I order the product and try to download it from the Your Accounts page it doesn't work. I just get a very fast loading bar but nothing happened and no error msgs. Event log doesn't show anything on this download attempt.

I then try uploading using the browse button from admin renaming the files (after several attempts) and continue to have the same problem. I delete the files a couple times using ftp and, well, you kind of get the picture.

Here is what I think I figured out.

The files I uploaded using the browser have a pretag added to the name and post tag .config. The ftp uploaded file did not have any tags added. I cleaned out the files folder and this is what I have left in there at present:
1771062a-e9cf-4177-9b76-c552b91709ae_DartViewer_install.zip.config
5cfb6bdc-9519-4c7f-990d-6e1dc9016424_Forward_Stride.dpa.config
Nothing else is left in the files folder.

Now when go to admin and choose these 2 files from the already uploaded drop down list, create a product, purchase it, I get the same results previously reported. Works ok from admin but not ok from my account. The drop down list from admin now shows a list of 6 files to choose from (including one transfered over from BV4 even though that product was deleted after transfer and file deleted or not transfered) only 2 of which actually exist (the last 2 I uploaded).

The download button image in the admin section points to the image found in
http://www.laurastamm.ne...ges/Buttons/Download.png

The download button image in Your Account points to the image found in
https://www.laurastamm.n...ges/Buttons/Download.png - well not found there because I deleted the Print Book Theme.

I tested to see if it was a theme issue by selecting the Painted Paper theme (unchanged) from Your Account and also from Themes in BVadmin. The down load from Your account still does not work.

What did I do wrong and how do I fix it? And how do I get rid of the other 4 deleted files in the admin drop down list?

Bob Noble

Edit. When I put the Print Book theme back in my themes folder, the downloads work. So I'm guessing the down load code is pointing to that theme as well.
jetheredge
#2 Posted : Tuesday, January 2, 2007 10:19:37 AM(UTC)
jetheredge

Rank: Member

Joined: 3/1/2006(UTC)
Posts: 1,142

Thank you, we inadvertently had a reference directly to the Print Book theme.

The fix is to go into MyAccount_Order_Details.aspx.vb and at the very bottom of the file replace this method...

Protected Sub FilesGridView_RowDataBound(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.GridViewRowEventArgs) Handles FilesGridView.RowDataBound
If e.Row.RowType = DataControlRowType.DataRow Then
Dim DownloadImageButton As ImageButton = DirectCast(e.Row.FindControl("DownloadImageButton"), ImageButton)
DownloadImageButton.ImageUrl = PersonalizationServices.GetThemedButton("Download")
DownloadImageButton.CommandArgument = e.Row.RowIndex
End If
End Sub

Just make sure you don't overwrite the "End Class"
Justin Etheredge
Senior Software Engineer
BVSoftware
[email protected]
#3 Posted : Tuesday, January 2, 2007 2:39:41 PM(UTC)
bobn@laurastamm.net

Rank: Member

Joined: 6/6/2005(UTC)
Posts: 483

Works like a charm.

Thanks Justin.

Bob Noble
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

©2024 Develisys. All rights reserved.
  • Toll-free  888-665-8637
  • International  +1 717-220-0012