Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Blank Doiwnload Page


Coastie

Recommended Posts

Posted

>_< hi guys and gals.

 

I am having a problem with a blank download page. when clicking on the link to download the product the page goes blank and no download starts.

 

Anyone had this problem before????

 

 

 

I have Created Product attributes for my product and created another order status of downloded. i get to the end of the checkout and the link shows on the final confirmation page of the checkout but when i click on the link the download page is blank.

 

this is day 2 of the blank page saga. If ANYONE has any ideas i would love to hear them.

 

Thanks......

Posted

Hi Scott, typically when a page goes blank there are parsing errors with the php code. What's the php associated file when you get to the blank page? Was that modified?

Posted
Hi Scott, typically when a page goes blank there are parsing errors with the php code. What's the php associated file when you get to the blank page? Was that modified?

 

 

Finally someone that knows what they are doing.....

 

Ha enigma. I am following on from the downloads manager install i don't know what is happening here???????

 

I followed the instructions as the install said but i am unable to work it out.

 

The download link comes up ok at the end of the checkout and the link is produced in the My Account section after the sale. What i did notice is... sorry i should have mentioned earlier. It looks like when the page is going to load that it is trying to generate a download.html page??? this looked starange buy with my limited knoweldge (very Limited) of php i thought that this might be part of the contrib.

Posted

well its probably the download.php. I checked mine I have a note of a mod that I made and I dont remember why I changed it :lol: but you could give it a try. Compare with your own catalog\download.php to find this code (should be near the end of the file) see if the path fix makes your d/l to work

 

  if (DOWNLOAD_BY_REDIRECT == 'true') {
// This will work only on Unix/Linux hosts
   tep_unlink_temp_dir(DIR_FS_DOWNLOAD_PUBLIC);
   $tempdir = tep_random_name();
   umask(0000);
   mkdir(DIR_FS_DOWNLOAD_PUBLIC . $tempdir, 0777);
   //-MS- replace download path
   symlink(DIR_FS_DOWNLOAD . $downloads['orders_products_filename'], DIR_FS_DOWNLOAD_PUBLIC . $tempdir . '/' . basename($downloads['orders_products_filename']));
   tep_redirect(DIR_WS_DOWNLOAD_PUBLIC . $tempdir . '/' . basename($downloads['orders_products_filename']));
//    symlink(DIR_FS_DOWNLOAD . $downloads['orders_products_filename'], DIR_FS_DOWNLOAD_PUBLIC . $tempdir . '/' . $downloads['orders_products_filename']);
//    tep_redirect(DIR_WS_DOWNLOAD_PUBLIC . $tempdir . '/' . $downloads['orders_products_filename']);
 } else {
// This will work on all systems, but will need considerable resources
// We could also loop with fread($fp, 4096) to save memory
   readfile(DIR_FS_DOWNLOAD . $downloads['orders_products_filename']);
 }

Posted

:rolleyes: :rolleyes: :rolleyes: Thankyou Thankyou Thankyou :rolleyes: :rolleyes: :rolleyes:

 

 

I did have different code in there and i replaced it with yours.

 

I enabled redirect in the admin toll and volla.

 

it works.

 

Once again you have saved me. Thanks enigma.

Posted
>_< hi guys and gals.

 

I am having a problem with a blank download page. when clicking on the link to download  the product the page goes blank and no download starts.

 

Anyone had this problem before????

I have Created Product attributes for my product and created another order status of downloded. i get to the end of the checkout and the link shows on the final confirmation page of the checkout but when i click on the link the download page is blank.

 

this is day 2 of the blank page saga. If ANYONE has any ideas i would love to hear them.

 

Thanks......

 

 

I had the same problem...

And changed "Download by redirect" to "false" in admin under download - now it works :-)

Posted
And changed "Download by redirect" to "false" in admin under download - now it works :-)

 

I prefer to have the redirection working than to disable it.

Posted

Thanks Kim And enigma

 

without redirect on the downloads would not work.

 

This is also described in the instructions. It relates to the server os that you are on.

 

thanks guys i hope this helps others to.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...