Forums / Managing Customers and Orders / Digital Download URL Not Found

Digital Download URL Not Found

Locked
Results 1 to 15 of 15
This thread is locked. New replies are disabled.
19 Jun 2009, 15:59
#1
bkelly avatar

bkelly

New Zenner

Join Date:
Jun 2009
Posts:
9
Plugin Contributions:
0

Digital Download URL Not Found

Latest version -- just downloaded a week ago
No add-ons
Created a template -- only site change for logo and message
I did move from main directory to subdirectory and I think this is the source of my problem but I don;t know how to fix it.

I read the great posts and the tutorials and set up one test download product, set the attributes linked the attributes, ordered the product myself, watched it post to Paypal and received the email.

Returned to site after Paypal and had the download message clciked on it and got the URL not found message.

I had had a mis-order one time in which the download product actually was coded wrong and I had shipping charges and had not gotten a download. Paypal got the money from my credit card and then gave it back to me -- all worked even on this first one.

I did disconnect a few times and started the second order over again each time after before I got all the attributes correct.

This last time, it was as it should be. Worked great but URL wrong

www.domain.com/subdirectory/index.php?main_page=download&order=2&id=1

When I go to Firefox and put the URL in the same thing happens but it gives a different URL

http://domain.com/pub/.spmllfpyjzlxtmtkkd/testdownload.doc

The problem is that it dropped the subdirecory.

There is some config file I missed someplace I suspect when I changed the subdriectories.


BTW, on this site, the search thing does not come down for me so I scanned a number of posts page by page and then put in this post.

I could not read them all.


How do I fix this?
19 Jun 2009, 18:37
#2
bkelly avatar

bkelly

New Zenner

Join Date:
Jun 2009
Posts:
9
Plugin Contributions:
0

Re: Digital Download URL Not Found

I went through every database file looking for the url and I went through the obvious files in zen-cart and I made sure cache was right.

Somehow, in the program started by index.php that gets the return URL string, when it converts it to the download folder in pub and changes the URL as I saw in Firefox (but not in IE) that guy finds information someplace that does not have the subdirectory included it and it gives a URL without the subdirectory which of course fails.

I would expect that anybody who has moved the zen cart store directory from root to wherever or back and uses digital downloads will have experienced this.

I am unfortunately not good at coming up with the right search argument now that I am seeing the pull down for search.

Any help would be appreciated.
19 Jun 2009, 18:58
#3
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,506
Plugin Contributions:
173

Re: Digital Download URL Not Found

Did you miss a step in the FAQ on the topic? https://www.zen-cart.com/tutorials/index.php?article=122

If you still can't fix it, post your configure.php files here, without the passwords.
19 Jun 2009, 20:49
#4
bkelly avatar

bkelly

New Zenner

Join Date:
Jun 2009
Posts:
9
Plugin Contributions:
0

Re: Digital Download URL Not Found

Configure admin
...
* If you desire your *entire* admin to be SSL-protected, make sure you use a "https:" URL for all 4 of the following:
*/
define('HTTP_SERVER', 'http://www.letsgocheckout.com/letsgojoomla');
define('HTTPS_SERVER', 'https://www.letsgocheckout.com/letsgojoomla');
define('HTTP_CATALOG_SERVER', 'http://www.letsgocheckout.com/letsgojoomla');
define('HTTPS_CATALOG_SERVER', 'https://www.letsgocheckout.com/letsgojoomla');

// Use secure webserver for catalog module and/or admin areas?
define('ENABLE_SSL_CATALOG', 'false');
define('ENABLE_SSL_ADMIN', 'false');

// NOTE: be sure to leave the trailing '/' at the end of these lines if you make changes!
// * DIR_WS_* = Webserver directories (virtual/URL)
// these paths are relative to top of your webspace ... (ie: under the public_html or httpdocs folder)
define('DIR_WS_ADMIN', '/admin/');
define('DIR_WS_CATALOG', '/');
define('DIR_WS_HTTPS_ADMIN', '/admin/');
define('DIR_WS_HTTPS_CATALOG', '/');

define('DIR_WS_IMAGES', 'images/');
define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');
define('DIR_WS_CATALOG_IMAGES', HTTP_CATALOG_SERVER . DIR_WS_CATALOG . 'images/');
define('DIR_WS_CATALOG_TEMPLATE', HTTP_CATALOG_SERVER . DIR_WS_CATALOG . 'includes/templates/');
define('DIR_WS_INCLUDES', 'includes/');
define('DIR_WS_BOXES', DIR_WS_INCLUDES . 'boxes/');
define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/');
define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/');
define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/');
define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/');
define('DIR_WS_CATALOG_LANGUAGES', HTTP_CATALOG_SERVER . DIR_WS_CATALOG . 'includes/languages/');

// * DIR_FS_* = Filesystem directories (local/physical)
//the following path is a COMPLETE path to your Zen Cart files. eg: /var/www/vhost/accountname/public_html/store/
define('DIR_FS_ADMIN', '/home/..../html/letsgocheckout.com/letsgojoomla/admin/');
define('DIR_FS_CATALOG', '/home/...../html/letsgocheckout.com/letsgojoomla/');

define('DIR_FS_CATALOG_LANGUAGES', DIR_FS_CATALOG . 'includes/languages/');
define('DIR_FS_CATALOG_IMAGES', DIR_FS_CATALOG . 'images/');
define('DIR_FS_CATALOG_MODULES', DIR_FS_CATALOG . 'includes/modules/');
define('DIR_FS_CATALOG_TEMPLATES', DIR_FS_CATALOG . 'includes/templates/');
define('DIR_FS_BACKUP', DIR_FS_ADMIN . 'backups/');
define('DIR_FS_EMAIL_TEMPLATES', DIR_FS_CATALOG . 'email/');
define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');

// define our database connection
define('DB_TYPE', 'mysql');
define('DB_PREFIX', '');
define('DB_SERVER', 'xxxxxxxxxxxxx.db.nnnnnnnn.hostedresource.com');
define('DB_SERVER_USERNAME', 'xxxxxxxxxx');
define('DB_SERVER_PASSWORD', 'xxxxxxxxxx');
define('DB_DATABASE', 'letsgocheckout');
define('USE_PCONNECT', 'false');
define('STORE_SESSIONS', 'db');
// for STORE_SESSIONS, use 'db' for best support, or '' for file-based storage

// The next 2 "defines" are for SQL cache support.
// For SQL_CACHE_METHOD, you can select from: none, database, or file
// If you choose "file", then you need to set the DIR_FS_SQL_CACHE to a directory where your apache
// or webserver user has write privileges (chmod 666 or 777). We recommend using the "cache" folder inside the Zen Cart folder
// ie: /path/to/your/webspace/public_html/zen/cache -- leave no trailing slash
define('SQL_CACHE_METHOD', 'none');
define('DIR_FS_SQL_CACHE', '/home.../html/letsgocheckout.com/letsgojoomla/cache');

// EOF




Main Configure


------

...


/*************** NOTE: This file is similar, but DIFFERENT from the "admin" version of configure.php. ***********/
/*************** The 2 files should be kept separate and not used to overwrite each other. ***********/

// Define the webserver and path parameters
// HTTP_SERVER is your Main webserver: eg-http://www.your_domain.com
// HTTPS_SERVER is your Secure webserver: eg-https://www.your_domain.com
define('HTTP_SERVER', 'http://www.letsgocheckout.com/letsgojoomla');
define('HTTPS_SERVER', 'https://www.letsgocheckout.com/letsgojoomla');

// Use secure webserver for checkout procedure?
define('ENABLE_SSL', 'false');

// NOTE: be sure to leave the trailing '/' at the end of these lines if you make changes!
// * DIR_WS_* = Webserver directories (virtual/URL)
// these paths are relative to top of your webspace ... (ie: under the public_html or httpdocs folder)
define('DIR_WS_CATALOG', '/');
define('DIR_WS_HTTPS_CATALOG', '/');

define('DIR_WS_IMAGES', 'images/');
define('DIR_WS_INCLUDES', 'includes/');
define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/');
define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/');
define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/');
define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/');
define('DIR_WS_DOWNLOAD_PUBLIC', DIR_WS_CATALOG . 'pub/');
define('DIR_WS_TEMPLATES', DIR_WS_INCLUDES . 'templates/');

define('DIR_WS_PHPBB', '/');

// * DIR_FS_* = Filesystem directories (local/physical)
//the following path is a COMPLETE path to your Zen Cart files. eg: /var/www/vhost/accountname/public_html/store/
define('DIR_FS_CATALOG', '/home/content/k/e/l/kellyconsultin/html/letsgocheckout.com/letsgojoomla/');

define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');
define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');
define('DIR_WS_UPLOADS', DIR_WS_IMAGES . 'uploads/');
define('DIR_FS_UPLOADS', DIR_FS_CATALOG . DIR_WS_UPLOADS);
define('DIR_FS_EMAIL_TEMPLATES', DIR_FS_CATALOG . 'email/');

// define our database connection
define('DB_TYPE', 'mysql');
define('DB_PREFIX', '');
define('DB_SERVER', 'xxxxxxxxxxxxxxxxxxx.db.nnnnnnnnn.hostedresource.com');
define('DB_SERVER_USERNAME', 'xxxxxxxxxxxxxx');
define('DB_SERVER_PASSWORD', 'xxxxxxxxxxxxxx');
define('DB_DATABASE', 'letsgocheckout');
define('USE_PCONNECT', 'false');
define('STORE_SESSIONS', 'db');
// for STORE_SESSIONS, use 'db' for best support, or '' for file-based storage

// The next 2 "defines" are for SQL cache support.
// For SQL_CACHE_METHOD, you can select from: none, database, or file
// If you choose "file", then you need to set the DIR_FS_SQL_CACHE to a directory where your apache
// or webserver user has write privileges (chmod 666 or 777). We recommend using the "cache" folder inside the Zen Cart folder
// ie: /path/to/your/webspace/public_html/zen/cache -- leave no trailing slash
define('SQL_CACHE_METHOD', 'none');
define('DIR_FS_SQL_CACHE', '/home....html/letsgocheckout.com/letsgojoomla/cache');

// EOF
19 Jun 2009, 22:22
#5
bkelly avatar

bkelly

New Zenner

Join Date:
Jun 2009
Posts:
9
Plugin Contributions:
0

Re: Digital Download URL Not Found

Forgot to answer.

I followed it tothe letter.

If there is a mistake in these files it is a goofy mistake on my part and I have examined them many times.

I downloaded the whole site to a windeos directory here and changed XP so I could scan PHP files. I looked for the domain name in all files on the site and it exists only in configure.php in those two places as well as a text tile for the install in cache.

Not sure how that worked, I noticed it was June 13 and I added the subfolder and sent it up to the cache file. I am going to buy my $1.00 item again and see what happens.

I'd rather send the team up there a donation...

Thank you
19 Jun 2009, 22:41
#6
bkelly avatar

bkelly

New Zenner

Join Date:
Jun 2009
Posts:
9
Plugin Contributions:
0

Re: Digital Download URL Not Found

Update:

OK the install text file in cache did nothing.

I tried again

Again, this is working other than it having the resolution of the URL stuck . This is IE8

http://www.letsgocheckout.com/letsgojoomla/index.php?main_page=download&order=4&id=3

Note this time it is ID 3

Firefox renders it differently
http://www.letsgocheckout.com/pub/.xpszhrkpsquusehupvl/testdownload.doc

THe testdownload.doc file is in that directory but within the subfolder not shown in the URL.

Error:

The requested URL /pub/.xpszhrkpsquusehupvl/testdownload.doc was not found on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

Can Zen Cart downloads works when Zen Cart is installed in a subdirectory?

I am running out of $1.00 bills
20 Jun 2009, 04:11
#7
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,506
Plugin Contributions:
173

Re: Digital Download URL Not Found

Do you have any .htaccess files on your site that might be doing some sort of translation and breaking things by removing the subdirectory by rewriting the URL?


And, as for your $1.00 bills ... you should be able to refund those transactions via your payment gateway. Or test using check/moneyorder instead.
21 Jun 2009, 20:25
#8
bkelly avatar

bkelly

New Zenner

Join Date:
Jun 2009
Posts:
9
Plugin Contributions:
0

Re: Digital Download URL Not Found

Just this one in cache and admin and includes


<Files *.php>
Order Deny,Allow
Deny from all
Allow from localhost
</Files>


This one in download

#prevent directory browsing -- for security
IndexIgnore */*

AuthType Basic
AuthName "No access"
AuthUserFile .htnopasswd
AuthGroupFile /dev/null
Require valid-user


This one on Pub

#prevent directory browsing -- for security
IndexIgnore */*

Options +FollowSymLinks -Indexes




This one in linkpoint API
# Prevent unauthorized access to your private .PEM file

<Files ~ "\.(pem)$">
Order allow,deny
Deny from all
</Files>
21 Jun 2009, 22:53
#9
vger avatar

vger

Past Contributor

Join Date:
Nov 2004
Posts:
3,189
Plugin Contributions:
0

Re: Digital Download URL Not Found

There are two ways of setting up downloads:

1. Download by redirect set to 'False' = downloads come directly from the downloads folder.

2. Download by redirect set to 'True' = downloads come via a symbolic link in the Pub folder. This gives you randomly generated links such as: pub/.xpszhrkpsquusehupvl - and this link only lasts whilst the download has not been attempted or completed. If the download has been started but aborted (for whatever reason) or has been completed then that link will no longer exist. If the user does not have a valid session id then the download will also fail.

Vger
22 Jun 2009, 23:03
#10
bkelly avatar

bkelly

New Zenner

Join Date:
Jun 2009
Posts:
9
Plugin Contributions:
0

Re: Digital Download URL Not Found

Vger,

I hope this reply lines up right

While looking for the redirect lines in configuration (haven't found yet) I thought it might be relevant to offer that I use Godaddy hosting.

I found the redirect option and changed it and turned streaming on for large files which I may have later. This file is very small.

This time, I got the download message and the save message along with this errorC:\DOCUME~1\Brian\LOCALS~1

----------

\Temp\QjnehxU2.doc.part could not be saved, because the source file could not be read.

Try again later, or contact the server administrator. message. It would not save it.

------------

I tried to have word open it directly and it would not -- another error

Bottom line -- download does not work still but maybe some Windows guy knows why it won't save.

---------

Also, the redirect finds the main domain without the subdirectory. That value must be stored someplace but I can't find it with a full search of everything but the zen cart database.

Do I compromise much by no redirect?

Does the redirect code permit a subdirectory? How can it just drop the subdirectory in the redirected URL. Some program does that -- it is getting stray info from someplace to plug in or it is ignoring info properly sent.

If this thing worked without redirect, I was ready to say OK.

----------

In your comment, you mentioned the the redirect URL folder goes away when the session times out. If that is the case, then what meaning does the # of downloads have?

Thank you for helping me.
22 Jun 2009, 23:17
#11
vger avatar

vger

Past Contributor

Join Date:
Nov 2004
Posts:
3,189
Plugin Contributions:
0

Re: Digital Download URL Not Found

The redirect 'folder' does not go away, that's permanent. It's the name of the download which is removed. Every attempt or completed download generates a new download id when "Download by redirect" is set to true. Each one counts against the total number of download attempts you have specified.

If you are getting the message that the source file cannot be read then it's likely that the download is too large to be handled by the browser you are using or by the version of PHP installed on the server (too many bits for a 32 bit system to handle without Large File Support compiled into PHP).

IE 6 can only handle downloads up to 2 Gbs.
IE 7 and 8 can handle downloads up to 4 Gbs.
Google Chrome - same as IE 6
Firefox, okay with any size of download

Vger
23 Jun 2009, 00:48
#12
bkelly avatar

bkelly

New Zenner

Join Date:
Jun 2009
Posts:
9
Plugin Contributions:
0

Re: Digital Download URL Not Found

With redirect off, it still redirects

Looks different with Fireforx but neither work

This is what I get with IE

http://www.domain name/subdirectory name/index.php?main_page=download&order=6&id=5

Is Zen Cart often used for Downloads?

I did not like VirtueMart but Download worked fine.

Everything else was tough and sometimes buggy!

Don't make me go back!
23 Jun 2009, 01:30
#13
bkelly avatar

bkelly

New Zenner

Join Date:
Jun 2009
Posts:
9
Plugin Contributions:
0

Re: Digital Download URL Not Found

Thank you all for the help!

This is not going to work.

I am heading elsewhere.

The best!
23 Jun 2009, 01:37
#14
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,506
Plugin Contributions:
173

Re: Digital Download URL Not Found

So, you're saying that it did work just fine, but after you changed directories things broke? And you're blaming the software for that?

Yes, Zen Cart *is* used extensively for download products. It's a very common use of the software.
23 Jun 2009, 11:52
#15
vger avatar

vger

Past Contributor

Join Date:
Nov 2004
Posts:
3,189
Plugin Contributions:
0

Re: Digital Download URL Not Found

bkelly - good luck - I suspect that with your degree of impatience you're going to have problems with whatever piece of software you decide to use.

Vger