Ecommerce software home
Shopping Cart Software Forum for Ecommerce Templates
 
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

Find us on Facebook Follow us on Twitter View our YouTube channel
Search our site
Forum Search
Google Site Search
 All Forums
 Technical
 PHP (Unix / Linux / Apache) versions
 AWS S3 Storage download issue
Author « Topic »  

Terry Paulhus
Ecommerce Template Expert

Canada
573 Posts

Posted - 12/13/2024 :  16:17:58  
A while back I had my product (digital) downloads linked to AMS S3 Bucket. I have the link placed in each download field.

Now for some reason it's not working. Ordering an item it comes up with this error on the page.

quote:
Warning: Undefined array key "PATH_TRANSLATED" in /home/xxxxxxx/public_html/xxxxxx/vsadmin/dodownload.php on line 105


I looked at line 105 and it is "$seBody .= "Path to this script : " . $_SERVER["PATH_TRANSLATED"] . $emlNl;"

I may have played with something causing this... I'm known to do that.

Can someone help me out with what the cause might be or point me in the right direction?

Terry

Terry (Redsei)

Vince
Administrator

42836 Posts

Posted - 12/18/2024 :  04:02:24  
Hi Terry
This is a debug line that will send you the physical location of the current directory as an aid to debugging why your download can't be found. It seems that the "PATH_TRNASLATED" setting should be replaced and I've done that now so if you get a new copy of the updater and copy the /vsadmin/dodownload.php script to your site and try again then at least you should get some meaningful debug that should help set the path to your download files.

Vince

Click Here for Shopping Cart Software
Click Here to sign up for our newsletter
Click Here for the latest updater

Terry Paulhus
Ecommerce Template Expert

Canada
573 Posts

Posted - 12/18/2024 :  05:12:48  
Thanks Vince, I’ll update right away.

Terry (Redsei)

Terry Paulhus
Ecommerce Template Expert

Canada
573 Posts

Posted - 12/18/2024 :  11:58:30  
Thanks again Vince for that update. The error looks a lot better... (attached)


Now I have someone on the AWS S3 problem (I will share with everyone once complete)

QUESTION
Is there an area or html code that I can change to spruce up this error to be more user friendly?

Terry

Terry (Redsei)

Vince
Administrator

42836 Posts

Posted - 12/19/2024 :  02:16:37  
Hi Terry
quote:
Is there an area or html code that I can change to spruce up this error to be more user friendly?
Well, it probably should be a bit neater so I've spruced it up a little and added a class so you can style more if you like. This is now in the v7.8 version of vsadmin/dodownload.php. But this is really a "shouldn't be here" kind of text as if everything is working as it should the customer should never see this message.

Vince

Click Here for Shopping Cart Software
Click Here to sign up for our newsletter
Click Here for the latest updater

Terry Paulhus
Ecommerce Template Expert

Canada
573 Posts

Posted - 12/26/2024 :  08:53:02  
Hey Vince, my Amazon S3 guy has correctly done all of the permissions for my product. However, the link is still not working on my store.

1. I currently have dodownloads running, as I have some FREE product that is small (PDFS) that can be downloaded off my server.
2. I swapped out the "a" in the downloads field in the product section and put in the link to the amazon stored file

So I still get the message "If you are trying to download the products you have just purchased, then I am afraid you have received this page in error. Firstly please accept our sincerest apologies. Please email us...."

Is there something missing? Do I turn off digital downloads?

Terry (Redsei)

Vince
Administrator

42836 Posts

Posted - 12/28/2024 :  12:06:11  
Hi Terry
Can you make sure this parameter is set in your includes.php file...
$digidownloadwarn=TRUE;
That will cause you to get an email with debug information that might help.
Also, make sure you try a new order as the download will expire.

Vince

Click Here for Shopping Cart Software
Click Here to sign up for our newsletter
Click Here for the latest updater

Terry Paulhus
Ecommerce Template Expert

Canada
573 Posts

Posted - 12/28/2024 :  12:15:07  
Thanks Vince, I’ve made sure that everything was done. So it must be on the AWS side of my developer. I’ll keep you posted.

Terry (Redsei)

Terry Paulhus
Ecommerce Template Expert

Canada
573 Posts

Posted - 01/05/2025 :  18:51:43  
Hey Vince, when you have time I need some help.

I have gone through two S3 guys with no luck. One guy was sketchy though....

The permissions and policies are right and on their end they say everything is good. Still getting the error

Question: With the buying of product, for this test I have been using the payment method of email. It was getting expensive going through paypal everytime for the testing.

Does the EMAIL method release the product when the transaction is done? Could that be causing the issue.
In the INCLUDES I have $digidownloads=TRUE; and $digidownloadmethod="filesystem"; with the $digidownloadpattern set up for the odd file on the hosting site. Could that be messing things up?

Help! I've lost so much hair already.....

Terry (Redsei)

Vince
Administrator

42836 Posts

Posted - 01/06/2025 :  05:28:11  
Hi Terry
quote:
Can you make sure this parameter is set in your includes.php file...
$digidownloadwarn=TRUE;
That will cause you to get an email with debug information that might help.
Did you get this email with the debug information? It may give the clue to what is going on here.

Vince

Click Here for Shopping Cart Software
Click Here to sign up for our newsletter
Click Here for the latest updater

Terry Paulhus
Ecommerce Template Expert

Canada
573 Posts

Posted - 01/06/2025 :  07:58:22  
I did, updated and to me the info doesn't help...

I did have the S3 guy have a look but he was lost a bit as well.

Is there a tracking code or something that you can attach to see what the problem is... if it's from the store or Amazon?

Terry (Redsei)

Terry Paulhus
Ecommerce Template Expert

Canada
573 Posts

Posted - 01/12/2025 :  08:34:21  
So kuddos to Phil and Vince for helping me out with this.

Why AMAZON S3?
I have over 10,000+ products and a storage solution on a hosting site was a no-go (too expensive). Amazon is basically pennies to store.

What I didn't know?
I had $digidownloadmethod and $digidownloadpattern in the includes "on". I needed to comment those out. I had to make the decision to either use the hosting solution or the outside solution.

Thanks again guys. Now back to regrowing my hair!

Terry (Redsei)
  « Topic »  
Jump To:
Shopping Cart Software Forum for Ecommerce Templates © 2002-2022 ecommercetemplates.com
This page was generated in 0.03 seconds. Snitz Forums 2000