Zen Cart Logo
Forums / General Questions / All downloadable files are showing as invalid

All downloadable files are showing as invalid

Locked

Views: 1,679

Results 1 to 19 of 19
This thread is locked. New replies are disabled.
9 Jun 2009, 6:52 PM
#1
webmiss avatar

webmiss

Zen Follower

Join Date:
Feb 2006
Posts:
147
Plugin Contributions:
0

All downloadable files are showing as invalid

Hi,

I have looked through other threads on this issue and none of what has been suggested has worked for me.

Here's the server information to start off with:
Server OS: Linux 2.6.22.10-NETSOL
PHP Version: 5.2.6 (Zend: 2.2.0)
PHP Memory Limit: 16M
Database: MySQL 5.0.75
HTTP Server: Apache/2.2.8 (Unix)
PHP Safe Mode: Off

The store I'm working on has downloadable .mp3 music files and zipped album files. The first batch of products were added several months ago and the products are priced by attributes. Files were uploaded to the download folder before adding the attributes and the filenames showed "green" valid file names when I added the files to the attribute section back then.

I am now adding new products and all (.mp3s and .zip files) are showing up as invalid "red" in the attributes section. These new files were uploaded into the download folder before I began adding the attributes to the products.

I have tried turning redirect off, streaming on, and so forth. I have tried deleting a smaller file in the download folder and then re-uploading it. Still shows as invalid. I've made sure the download directory permissions are set at 755 and even tried 777 and individual files set at 644.

I am now in the process of contacting the host about any server changes such as upgrades to php or the database since last year. In the meantime, I could really use some other suggestions or ideas to fix this.

The file names are something like 01_Name_of_Music_File.mp3 or Name_of_Album.zip This naming convention was working before, so I don't think it is the names of the files.

Please help.

Webmiss

9 Jun 2009, 7:14 PM
#2
webmiss avatar

webmiss

Zen Follower

Join Date:
Feb 2006
Posts:
147
Plugin Contributions:
0

Re: All downloadable files are showing as invalid

Thought I'd update this inquiry with the contents of the config file, just in case I missed something in it:

// 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.airdrivenmusic.com/store');
define('HTTPS_SERVER', 'https://www.airdrivenmusic.com/store');

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

// 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/
The complete path is taken out for privacy

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/');

Database connection is not included with this post.

Webmiss

10 Jun 2009, 3:30 PM
#3
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: All downloadable files are showing as invalid

Need a few changes:

define('HTTP_SERVER', 'http://www.airdrivenmusic.com/store');
define('HTTPS_SERVER', 'https://www.airdrivenmusic.com/store');

should be:

define('HTTP_SERVER', 'http://www.airdrivenmusic.com');
define('HTTPS_SERVER', 'https://www.airdrivenmusic.com');

These:

define('DIR_WS_CATALOG', '/');
define('DIR_WS_HTTPS_CATALOG', '/');

should be:

define('DIR_WS_CATALOG', '/store/');
define('DIR_WS_HTTPS_CATALOG', '/store/');

see if this helps, before we look at other issues ...

10 Jun 2009, 4:04 PM
#4
webmiss avatar

webmiss

Zen Follower

Join Date:
Feb 2006
Posts:
147
Plugin Contributions:
0

Re: All downloadable files are showing as invalid

Hi Ajeh,

I made the changes as you suggested. Then looked into the downloads manager. The files are still showing as invalid.

Any other ideas?

Thanks much for your reply.

BTW, my client is using Network Solutions as their host.

Corinne

10 Jun 2009, 4:21 PM
#5
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: All downloadable files are showing as invalid

You should have your download files loaded to:
/download

make sure you are not using spaces or special characters in the filenames ...

Do you have an example of what the filename is on one of these that are failing?

10 Jun 2009, 5:24 PM
#6
webmiss avatar

webmiss

Zen Follower

Join Date:
Feb 2006
Posts:
147
Plugin Contributions:
0

Re: All downloadable files are showing as invalid

All music files for download were uploaded to the download folder. The file names look something like the following:

01_Waiting_For_You.mp3
The_Kenny_Johnston_Band.zip
05_Put_Your_Trust.mp3

10 Jun 2009, 5:43 PM
#7
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: All downloadable files are showing as invalid

And if you edit the attribute for:
The_Kenny_Johnston_Band.zip

you see that exact thing on the filename field?

10 Jun 2009, 6:24 PM
#8
webmiss avatar

webmiss

Zen Follower

Join Date:
Feb 2006
Posts:
147
Plugin Contributions:
0

Re: All downloadable files are showing as invalid

Yes, it is showing the filename as you see it.

10 Jun 2009, 6:50 PM
#9
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: All downloadable files are showing as invalid

Out of curiosity ...

When you fixed the configure.php for the catalog ... did you fix the configure.php for the admin in the:
/admin/includes/configure.php

10 Jun 2009, 8:00 PM
#10
webmiss avatar

webmiss

Zen Follower

Join Date:
Feb 2006
Posts:
147
Plugin Contributions:
0

Re: All downloadable files are showing as invalid

Oops! Forgot to do that. Just did it and uploaded the admin/includes/configure.php into that directory. Logged in and checked the downloads manager. All files are still "red" invalid.

What next?

10 Jun 2009, 8:46 PM
#11
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: All downloadable files are showing as invalid

Could you post, from the server, without your username and password, the file:
/admin/includes/configure.php

This is not making a lot of sense ... :blink:

10 Jun 2009, 9:06 PM
#12
webmiss avatar

webmiss

Zen Follower

Join Date:
Feb 2006
Posts:
147
Plugin Contributions:
0

Re: All downloadable files are showing as invalid

Here it is.

  • 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.airdrivenmusic.com');
    define('HTTPS_SERVER', 'https://www.airdrivenmusic.com');
    define('HTTP_CATALOG_SERVER', 'http://www.airdrivenmusic.com');
    define('HTTPS_CATALOG_SERVER', 'https://www.airdrivenmusic.com');

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

// 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', '/store');
define('DIR_WS_HTTPS_ADMIN', '/admin/');
define('DIR_WS_HTTPS_CATALOG', '/store');

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', 'THIS IS NOT INCLUDED IN THIS POST');
define('DIR_FS_CATALOG', 'THIS IS NOT INCLUDED IN THIS POST');

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 . 'md/download/');

// define our database connection

THIS IS NOT INCLUDED IN THIS POST.

Webmiss

10 Jun 2009, 9:54 PM
#13
drbyte avatar

drbyte

Sensei

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

Re: All downloadable files are showing as invalid

If you're going to be editing settings in those files, you need to be consistent.
If the settings don't match, the server can't find the data files, and thus will report that they don't exist.

From earlier post about /includes/configure.php:

webmiss:

define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');
And from your last post about /admin/includes/configure.php:
webmiss:

define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'md/download/');

10 Jun 2009, 10:24 PM
#14
webmiss avatar

webmiss

Zen Follower

Join Date:
Feb 2006
Posts:
147
Plugin Contributions:
0

Re: All downloadable files are showing as invalid

That really was a stupid mistake on my part. I have no idea what I was thinking. Well, thank you for pointing it out to me. I just updated that file and uploaded it.

Apparently that didn't fix my problem, though.

The files are still showing as invalid.

Now what? Any ideas. Did I do anything else wrong? I do know several months ago when I first set this up, the files were showing "green" as valid.

11 Jun 2009, 7:21 AM
#15
drbyte avatar

drbyte

Sensei

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

Re: All downloadable files are showing as invalid

You've not shared the DIR_FS_CATALOG and DIR_FS_ADMIN paths, which are critical components. The key again is consistency.
Even after adjusting things as Ajeh suggested, I note that your DIR_WS_ADMIN and DIR_WS_CATALOG are pointing to places that don't really follow the correct pattern, and thus it makes me wonder about the other undisclosed components too. The system builds the path for locating the download files by combining the DIR_FS_CATALOG stuff with the rest of the info in the path you mention for downloads. If you've got things inconsistent there, it's not going to find what it needs.

11 Jun 2009, 11:34 AM
#16
webmiss avatar

webmiss

Zen Follower

Join Date:
Feb 2006
Posts:
147
Plugin Contributions:
0

Re: All downloadable files are showing as invalid

DrByte,

Thanks for your response. I looked at the files and looked and just wasn't seeing it, until your post. I don't know what in the world I was thinking or what I thought I was looking at, but I finally found what you are talking about this morning. Maybe I just needed a good night's sleep. I really appreciate your and Ajeh's patience with me. I finally fixed the inconsistencies and everything is now working just fine.

Once again, thanks for bearing with me and being so patient.

Kind Regards,

Webmiss

11 Jun 2009, 1:40 PM
#17
drbyte avatar

drbyte

Sensei

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

Re: All downloadable files are showing as invalid

Glad you got it sorted :D

11 Jun 2009, 1:40 PM
#18
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: All downloadable files are showing as invalid

Thanks for the update that all is working correctly now that all of your paths are matching properly ... :smile:

11 Jun 2009, 1:41 PM
#19
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: All downloadable files are showing as invalid

Spooky how we do that ... :eek: