Forums / General Questions / Wrong Download Link Sent to Customer

Wrong Download Link Sent to Customer

Locked

Views: 1,821

Results 1 to 14 of 14
This thread is locked. New replies are disabled.
15 Mar 2008, 11:54 PM
#1
jackibar avatar

jackibar

New Zenner

Join Date:
Mar 2008
Posts:
32
Plugin Contributions:
0

Wrong Download Link Sent to Customer

Hi,

I'm just setting this up, and tried testing a purchase since it's a download item. Everything is fine, except the link it tries to take the customer to for downloading adds an extra "zencart" to the path name:

http://ourlittleplace.com/zencart/zencart/pub/.isegpguwxfkfvkq/precious.mp3

(Notice the 2 zencart/zencart).

How - or where - do I change this so it will redirect people to the right download page? If I manually remove one of the "zencart"s from the link, it works...

Thanks so much for any help!

16 Mar 2008, 6:32 AM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: Wrong Download Link Sent to Customer

Please post your /includes/configure.php file contents without the password.

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

17 Mar 2008, 3:02 AM
#3
jackibar avatar

jackibar

New Zenner

Join Date:
Mar 2008
Posts:
32
Plugin Contributions:
0

Re: Wrong Download Link Sent to Customer

Here it is: - (THANKS!!)

// Define the webserver and path parameters
// Main webserver: eg, http://localhost - should not be empty for productive servers
define('HTTP_SERVER', 'http://ourlittleplace.com/');
// Secure webserver: eg, https://localhost - should not be empty for productive servers
define('HTTPS_SERVER', 'https://ourlittleplace.com/');
// 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', 'zencart/');
define('DIR_WS_HTTPS_CATALOG', 'zencart/');

define('DIR_WS_IMAGES', 'images/');
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_DOWNLOAD_PUBLIC', DIR_WS_CATALOG . 'pub/');
define('DIR_WS_BLOCKS', DIR_WS_INCLUDES . 'blocks/');
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', '/usr/share/web/ourplace/webshare/zencart/');

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', ':/usr/share/web/ourplace/mysql/socket'); // eg, localhost - should not be empty
define('DB_SERVER_USERNAME', '');
define('DB_SERVER_PASSWORD', '
');
define('DB_DATABASE', '
****');
define('USE_PCONNECT', 'false'); // use persistent connections?
define('STORE_SESSIONS', 'db'); // leave empty '' for default handler or set to 'db'

// 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', 'database');
define('DIR_FS_SQL_CACHE', '/usr/share/web/ourplace/webshare/zencart/cache');

?>

17 Mar 2008, 6:57 AM
#4
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: Wrong Download Link Sent to Customer

That looks okay, and when set up that way, shouldn't produce double folder-names in the URL like you saw.

What version of Zen Cart are you using?
What addons do you have installed?

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

17 Mar 2008, 8:30 PM
#5
jackibar avatar

jackibar

New Zenner

Join Date:
Mar 2008
Posts:
32
Plugin Contributions:
0

Re: Wrong Download Link Sent to Customer

I'm not sure - I installed it from my web hosting company's "Netconsole". How do I find out what version it is? When I go to the admin home page I get this note:

New Version Available v1.3.8 :: New Release with PayPal Website Payments Pro support

So I'm thinking it's not the newest...

17 Mar 2008, 10:24 PM
#6
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: Wrong Download Link Sent to Customer

  1. Right underneath that "new version available" message, on the navigation bar, there's a link that says "Version" ... right beside the Logoff link.
  2. Or, you can also get version information if you click on Admin->Tools->Server Info.
  3. Or, on any admin page other than the home page, you can see some basic version info in the footer.

Try the first option.

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

17 Mar 2008, 10:58 PM
#7
jackibar avatar

jackibar

New Zenner

Join Date:
Mar 2008
Posts:
32
Plugin Contributions:
0

Re: Wrong Download Link Sent to Customer

Boy, do I feel silly - didn't even see that! Okay - it's 1.3.7.

18 Mar 2008, 9:03 PM
#8
jackibar avatar

jackibar

New Zenner

Join Date:
Mar 2008
Posts:
32
Plugin Contributions:
0

Re: Wrong Download Link Sent to Customer

Wasn't sure what to do so I tried upgrading to 1.3.8... Now when trying to access the admin console I get:

1146 Table 'zencart_webshare_zencart.zen_project_version' doesn't exist
in:
[select * from zen_project_version WHERE project_version_key = 'Zen-Cart Database' ]
If you were entering information, press the BACK button in your browser and re-check the information you had entered to be sure you left no blank fields.
I don't know what to do at this point! Whether to delete everything and start over... whether to try to get the old 1.3.7 working right... or what! Any help would sure be appreciated!
:unsure:

18 Mar 2008, 9:51 PM
#9
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: Wrong Download Link Sent to Customer

jackibar:

Table 'xxxxx.zen_project_version' doesn't existThat means that it cannot find a table named zen_project_version in the specified database.
Did you change prefixes for some reason? ie: DB_PREFIX set to 'zen_' in the new site vs perhaps blank (preferred) in the old site?

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

18 Mar 2008, 10:09 PM
#10
jackibar avatar

jackibar

New Zenner

Join Date:
Mar 2008
Posts:
32
Plugin Contributions:
0

Re: Wrong Download Link Sent to Customer

I didn't tell it to change anything - just used the same database and chose "Upgrade Database" from 1.3.7 to 1.3.8 and let it do whatever it did... How can I fix this?!! I'm hoping upgrading is going to fix the bad download link generation but I'm doing all this without knowing for sure it's going to fix my problem!

18 Mar 2008, 10:10 PM
#11
jackibar avatar

jackibar

New Zenner

Join Date:
Mar 2008
Posts:
32
Plugin Contributions:
0

Re: Wrong Download Link Sent to Customer

Oh - I just checked the configure.php file and it still has:

// define our database connection
define('DB_TYPE', 'mysql');
define('DB_PREFIX', '');

Is that what you meant?

18 Mar 2008, 10:10 PM
#12
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: Wrong Download Link Sent to Customer

Does this mean you're upgrading a live site directly without first testing your upgrade on a separate installation of your site?

Upgrade instructions:
https://www.zen-cart.com/tutorials/index.php?article=98
https://www.zen-cart.com/tutorials/index.php?article=108

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

18 Mar 2008, 10:13 PM
#13
jackibar avatar

jackibar

New Zenner

Join Date:
Mar 2008
Posts:
32
Plugin Contributions:
0

Re: Wrong Download Link Sent to Customer

Okay - I found it. So sorry for the trouble! It was the configure.php file in the ADMIN includes folder that was set wrong. I got that part to work now. I will see if the download link problem is fixed or not as I test...

18 Mar 2008, 10:55 PM
#14
jackibar avatar

jackibar

New Zenner

Join Date:
Mar 2008
Posts:
32
Plugin Contributions:
0

Re: Wrong Download Link Sent to Customer

Okay - to explain... Yes, I just used the same database because I just installed it last week and only had 1 item in it so far! I was trying to get it to work before adding my whole store... I installed the upgrade zen-cart into a new folder - but used the same database...

Anyway - it seems the upgrade fixed the download link problem, so for now I'm good to go!

Thanks so much for all your help!