Forums / General Questions / download folder doesn't exist - can it be recreated?

download folder doesn't exist - can it be recreated?

Views: 1,139

Results 1 to 10 of 10
27 Mar 2015, 10:12 PM
#1
suedouglas avatar

suedouglas

New Zenner

Join Date:
Nov 2008
Posts:
45
Plugin Contributions:
0

download folder doesn't exist - can it be recreated?

Our /home/my_user_name/public_html/mystore/download folder has gone missing. (We are not sure whether it did exist at one time, as this is the first time we have tried to locate it for testing) Our website isn't 'live' yet. We've tried to recreate it manually, but unfortunately, we are still getting an error message on our site saying that it doesn't exist. Does anyone know of a way of recreating without starting again with a fresh install please. We would like to avoid that if at all possible, as we have had loads of development work done by a third party.
Thanks for your help in advance!

27 Mar 2015, 10:19 PM
#2
frank18 avatar

frank18

Deceased

Join Date:
Nov 2007
Location:
Sunny Coast, Australia
Posts:
3,427
Plugin Contributions:
2

Re: download folder doesn't exist - can it be recreated?

suedouglas:

Our /home/my_user_name/public_html/mystore/download folder has gone missing. (We are not sure whether it did exist at one time, as this is the first time we have tried to locate it for testing) Our website isn't 'live' yet. ** We've tried to recreate it manually**, but unfortunately, we are still getting an error message on our site saying that it doesn't exist. Does anyone know of a way of recreating without starting again with a fresh install please. We would like to avoid that if at all possible, as we have had loads of development work done by a third party.
Thanks for your help in advance!

When you say "tried to recreate it manually", did you FTP into your site and tried to create the folder this way?

NOTE: We are sorry that Frank is no longer with us.
We are grateful for all his contributions to the Zen Cart community.

27 Mar 2015, 10:21 PM
#3
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,729
Plugin Contributions:
56

Re: download folder doesn't exist - can it be recreated?

Look in includes/configure.php for the define DIR_FS_DOWNLOAD - perhaps they put it somewhere else, for example above your web root (which is not a bad strategy).

That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.

28 Mar 2015, 12:11 AM
#4
suedouglas avatar

suedouglas

New Zenner

Join Date:
Nov 2008
Posts:
45
Plugin Contributions:
0

Re: download folder doesn't exist - can it be recreated?

frank18:

When you say "tried to recreate it manually", did you FTP into your site and tried to create the folder this way?

Thanks for your replay. No, I just created a new folder and named it download.

28 Mar 2015, 12:19 AM
#5
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: download folder doesn't exist - can it be recreated?

suedouglas:

Thanks for your replay. No, I just created a new folder and named it download.

Take a look at swguy's suggestion. As for the result of creating the download directory as identified above, when you say it doesn't work does that mean if you refresh the screen the download directory just "created" doesn't actually exist (permissions issue more likely) or is it that Zc doesn't "recognize" that it exists (more likely swguy's suggestion). It may also have to do with the pub directory and settings in the admin->configuration->attributes, but one step at a time.

ZC Installation/Maintenance Support <- Site
Contribution for contributions welcome...

28 Mar 2015, 12:20 AM
#6
suedouglas avatar

suedouglas

New Zenner

Join Date:
Nov 2008
Posts:
45
Plugin Contributions:
0

Re: download folder doesn't exist - can it be recreated?

swguy:

Look in includes/configure.php for the define DIR_FS_DOWNLOAD - perhaps they put it somewhere else, for example above your web root (which is not a bad strategy).

Thanks for your reply. I already checked that, and it's pointing to the place where it usually is, but the folder didn't actually exist. There was something odd about the configure.php file though, and that was that some paths in there (although not the download one) were pointing to /home instead of /home2 (our home is called /home2) The download file was pointing to /home2/my_user_name/public_html/mystore/download which is correct.

28 Mar 2015, 12:41 AM
#7
suedouglas avatar

suedouglas

New Zenner

Join Date:
Nov 2008
Posts:
45
Plugin Contributions:
0

Re: download folder doesn't exist - can it be recreated?

Please see my reply to swguy. The download folder I created did exist in that I was able to put a file in there OK? The permissions were OK (I checked at the time on the download folder, although I can't remember what I set it to (644 rings a bell though!) I didn't check any other folder permissions). I've since restored to an earlier backup and the download folder doesn't exist in there either, but there is one thing that's changed and that is that the error message on the website is now expecting the download folder to be in /home/.... (before it was /home2/....) Our /home since the restore now seems to have changed to /home4, I have just checked the configure.php (after the restore) and that is still pointing to both /home/ paths and /home2/ paths as it was before. Now our home is /home4/ should all paths in the configure.php files be pointing there? Any help would be appreciated!

28 Mar 2015, 12:47 AM
#8
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: download folder doesn't exist - can it be recreated?

You said you're not "live"... Setup on a publicly accessible server? Or on a local computer all installed by "you"?

I ask because some hosts provide a path to which all such paths should be pointed, but once that is accessed, the computer points to yet a different location (sort of like a redirect)... This may be the case for you. To what path does your cPanel indicate for ftp/php related interaction? It may not even include a home#... Further it may be that it expects the path to simply begin with /home/ and the rest is figured out. Certainly having a variety of paths in the includes/configure.php file is going to cause trouble if they are all supposed to address one location.

ZC Installation/Maintenance Support <- Site
Contribution for contributions welcome...

28 Mar 2015, 1:10 PM
#9
suedouglas avatar

suedouglas

New Zenner

Join Date:
Nov 2008
Posts:
45
Plugin Contributions:
0

Re: download folder doesn't exist - can it be recreated?

mc12345678:

You said you're not "live"... Setup on a publicly accessible server? Or on a local computer all installed by "you"?

I ask because some hosts provide a path to which all such paths should be pointed, but once that is accessed, the computer points to yet a different location (sort of like a redirect)... This may be the case for you. To what path does your cPanel indicate for ftp/php related interaction? It may not even include a home#... Further it may be that it expects the path to simply begin with /home/ and the rest is figured out. Certainly having a variety of paths in the includes/configure.php file is going to cause trouble if they are all supposed to address one location.

Thanks for your help we are with Hostgator and they have said that it doesn't matter that we have some references to /home/ and some to /home2/ in our config files even though our php files are now in /home4/ I'm going to try recreating the download file again and I'll pay close attention to the permissions on the download file just in case it was a permissions problem previously. Thanks for your help! In your opinion though, should I be able to create the download file?

28 Mar 2015, 2:03 PM
#10
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,729
Plugin Contributions:
56

Re: download folder doesn't exist - can it be recreated?

In your opinion though, should I be able to create the download file?

Yes. Create a directory called "download" at the same level as your "public_html" directory. Put your files in there. Update the references to the download folder in the configure.php files. Done.

That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.