Zen Cart Logo
Forums / General Questions / trouble relocating downloads folder

trouble relocating downloads folder

Locked

Views: 1,545

Results 1 to 3 of 3
This thread is locked. New replies are disabled.
15 Oct 2009, 6:49 PM
#1
dreadlocks1221 avatar

dreadlocks1221

New Zenner

Join Date:
Feb 2009
Posts:
26
Plugin Contributions:
0

trouble relocating downloads folder

I tried changing the configuration files to relocate my downloads folder outside of my public_html folder, I followed the guide and changed the includes/configure.php to:

define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . '/home/jazzviolinist/music/');
define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');

and the admin/includes/configure.php to

define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . '/home/jazzviolinist/music/');

However when I go to my store I get the error:

Warning: The downloadable products directory does not exist: /home/jazzviolinist/jazzviolinist.com/cart//home/jazzviolinist/music/. Downloadable products will not work until this directory is valid

I am not sure what I did wrong but any help is greatly appreciated in advance

15 Oct 2009, 7:04 PM
#2
drbyte avatar

drbyte

Sensei

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

Re: trouble relocating downloads folder

If you look back at the tutorial closely: https://www.zen-cart.com/tutorials/index.php?article=280
... you'll see that the edit removes the DIR_FS_CATALOG part of the new definition. Instead, it shows you to hard-code the entire path from the root.

If you leave the DIR_FS_CATALOG part inside the DIR_FS_DOWNLOAD definition, you end up with the duplication you posted.

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

15 Oct 2009, 7:19 PM
#3
dreadlocks1221 avatar

dreadlocks1221

New Zenner

Join Date:
Feb 2009
Posts:
26
Plugin Contributions:
0

Re: trouble relocating downloads folder

feel kinda dumb for missing that lol Thank you much for your help