Page 1 of 2 12 LastLast
Results 1 to 10 of 15
  1. #1
    Join Date
    Jun 2009
    Posts
    9
    Plugin Contributions
    0

    link problem 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

    http://www.domain.com/subdirectory/i...d&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/.spmllfpyjzlxt...stdownload.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?

  2. #2
    Join Date
    Jun 2009
    Posts
    9
    Plugin Contributions
    0

    Default 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.

  3. #3
    Join Date
    Jan 2004
    Posts
    66,446
    Plugin Contributions
    81

    Default Re: Digital Download URL Not Found

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

    If you still can't fix it, post your configure.php files here, without the passwords.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  4. #4
    Join Date
    Jun 2009
    Posts
    9
    Plugin Contributions
    0

    Default 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

  5. #5
    Join Date
    Jun 2009
    Posts
    9
    Plugin Contributions
    0

    Default 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

  6. #6
    Join Date
    Jun 2009
    Posts
    9
    Plugin Contributions
    0

    Default 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/letsgo...d&order=4&id=3

    Note this time it is ID 3

    Firefox renders it differently
    http://www.letsgocheckout.com/pub/.x...stdownload.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

  7. #7
    Join Date
    Jan 2004
    Posts
    66,446
    Plugin Contributions
    81

    Default 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.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  8. #8
    Join Date
    Jun 2009
    Posts
    9
    Plugin Contributions
    0

    Default 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>

  9. #9
    Join Date
    Nov 2004
    Location
    Norfolk, United Kingdom
    Posts
    3,036
    Plugin Contributions
    2

    Default 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

  10. #10
    Join Date
    Jun 2009
    Posts
    9
    Plugin Contributions
    0

    Default 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.

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. Can the digital download be set to download multiple MP3 or other files?
    By Donn in forum Setting Up Categories, Products, Attributes
    Replies: 2
    Last Post: 13 Dec 2014, 10:47 PM
  2. v150 can I sell digital products and not have a download or shipping option?
    By guttal in forum Built-in Shipping and Payment Modules
    Replies: 0
    Last Post: 11 Aug 2012, 06:42 AM
  3. Admin 404 Not Found The requested URL was not found on this server
    By L.a.Willman in forum Installing on a Windows Server
    Replies: 23
    Last Post: 10 Jan 2012, 02:26 AM
  4. Replies: 1
    Last Post: 28 Aug 2010, 10:42 AM
  5. Replies: 0
    Last Post: 2 Jun 2010, 06:14 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg