Forums / Setting Up Categories, Products, Attributes / Downloaded file error message

Downloaded file error message

Locked

Started by portraitartist on 9 Jul 2006, 10:44 PM · Views: 11,478

Results 41 to 60 of 62
This thread is locked. New replies are disabled.
11 Aug 2006, 6:09 PM
#41
joanorsky avatar

joanorsky

New Zenner

Join Date:
Jul 2006
Posts:
25
Plugin Contributions:
0

Downloaded file error message

What version of Zen Cart ...
I am using the latest version..

Clean install or an Upgrade ...
It was a clean install

If an Upgrade what version were you and how did you upgrade?
No Upgrade.. just a clean fresh install!

How large are your download files?
Many files .. from 63k to 1.3MB... all corrupted on download

Are they all in the /download directory?
Yep... yes they are!

Is /pub set to 777
Yep.. it is!

Do the filenames have spaces or special characters or extra periods beyond the filename.extention
Nope... none of them have special characters or spaces. Some have are in capital letters.. and some are in plain lower letters (for instance : cdcsmdsfp.rar)

Are the files Zipped?
Some are zipped.. some are in rar!

Can you download a small 100k file?
Nope... same thing happens! The downloaded file .. downloads incomplete and that makes a CRC error on the compacted file (ZIP or RAR)

Whenever i download a file in Real FTP .. the file comes down ok. No problem what so ever.. ..

... man... this is giving me nightmares!! .. :cry: :cry:

11 Aug 2006, 6:50 PM
#42
ajeh avatar

ajeh

Oba-san

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

Re: Downloaded file error message

Sounds like your site is not configured to read the .htaccess file with the symbolic links on the Redirect ...

Try turning off the Redirect in the Configuration ... Attribute Settings ...

If it works ... contact your hosting site and ask why your /pub/.htaccess file for the download redirects do not work:

#prevent directory browsing -- for security
IndexIgnore /

Options +FollowSymLinks -Indexes

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

11 Aug 2006, 7:44 PM
#43
joanorsky avatar

joanorsky

New Zenner

Join Date:
Jul 2006
Posts:
25
Plugin Contributions:
0

Re: Downloaded file error message

The thing is more complex that you're thinking!
It's not just an .htaccess problem... because if one turns of the redirect option it should run ok.. right? But it does not.
Whenever i turn this feature off the download comes down as expected... except on the file size! It's always smaller. Somehow it becomes "cutted" at the end (yep.. it's on the end.. as i've checked them both ... original and downloaded... in a HEX editor)

It's also not a problem of the file on the server.. because the file is ok with the right CRC checksum. It is a problem of zencart on downloading it!

Tell me something.. are your zipped files (after download by the latest zencart download system) able be decompressed on you computer? If you have the same problem.. the download will come down ok.. but the file will be shorter.. giving a CRC error!!

11 Aug 2006, 8:08 PM
#44
ajeh avatar

ajeh

Oba-san

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

Re: Downloaded file error message

Are you sure that you have Zen Cart v1.3.0.2 installed?

Check in the Tools ... Server Info ...

The files in the /download are not in subdirectories correct?

Do you have an URL that we can peek at?

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

11 Aug 2006, 8:18 PM
#45
joanorsky avatar

joanorsky

New Zenner

Join Date:
Jul 2006
Posts:
25
Plugin Contributions:
0

Re: Downloaded file error message

yep... totally sure!!

No subdirectories on the downloads... just files.

Server OS: Linux 2.4.32-grsec Database: MySQL 4.1.18-standard-log
Server Date: 08/11/2006 16:14:58 Database Date: 08/11/2006 16:14:58
Server Up Time:
PHP Version: 4.4.2 (Zend: 1.3.0)
HTTP Server: Apache

Zen Cart 1.3.0.2
Database Patch Level: 1.3.0.2
v1.3.0.2 [2006-07-16 16:27:54] (Fresh Installation) [/I]

Yep.. sure... the link is : https://www.compra-a-mim.com

It's on portuguese.. but i guess that it can be easly used as it's the same as all the others...

(Thanks for helping... i apreciate it)

11 Aug 2006, 8:38 PM
#46
ajeh avatar

ajeh

Oba-san

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

Re: Downloaded file error message

Your products have 1 attributes with the download marked as:

Downloads
em formato ZIP ou RAR [era: +0.00EUR agora é: Grátis]

How an I suppose to pick between the Zip and the RAR file type?

When you look at the Attributes Controller ... do you see the green dot next to all the filenames for the downloads?

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

11 Aug 2006, 8:44 PM
#47
ajeh avatar

ajeh

Oba-san

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

Re: Downloaded file error message

I made an order but it is not available for download as the Orders Status is < 2 or > 4 so I have to wait for approval vs automatic access ...

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

11 Aug 2006, 8:48 PM
#48
joanorsky avatar

joanorsky

New Zenner

Join Date:
Jul 2006
Posts:
25
Plugin Contributions:
0

Re: Downloaded file error message

Ajeh:

Your products have 1 attributes with the download marked as:

Downloads
em formato ZIP ou RAR [era: +0.00EUR agora é: Grátis]

How an I suppose to pick between the Zip and the RAR file type?

When you look at the Attributes Controller ... do you see the green dot next to all the filenames for the downloads?

Well you don't have the choice of picking up a ZIP or RAR file. That just means that the download file is either in RAR or ZIP. :yes:

And yes... all files have valid filenames... so the dots are green!

And it actually downloads (well .. at least when no redirect is selected)... the thing is that the file gets cutted on the end making the inevitable CRC error on deflation. I also tryed with or without streamming option!

Is there any php.ini specification that is needed to be included ?

11 Aug 2006, 8:56 PM
#49
ajeh avatar

ajeh

Oba-san

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

Re: Downloaded file error message

And with the Redirect OFF ... the small file around 100k does not work either?

And with Streaming ON and Redirect OFF ... the small file still does not work?

Who are you hosting with?

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

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

11 Aug 2006, 8:56 PM
#50
joanorsky avatar

joanorsky

New Zenner

Join Date:
Jul 2006
Posts:
25
Plugin Contributions:
0

Re: Downloaded file error message

Ajeh:

I made an order but it is not available for download as the Orders Status is < 2 or > 4 so I have to wait for approval vs automatic access ...

File was approved just now! Sorry... i didn't noticed that you've made an order...

11 Aug 2006, 9:24 PM
#51
joanorsky avatar

joanorsky

New Zenner

Join Date:
Jul 2006
Posts:
25
Plugin Contributions:
0

Re: Downloaded file error message

And with the Redirect OFF ... the small file around 100k does not work either?
**With redirect OFF all files download as normal. But all are corrupted.. :( (bummer :cry: )
With redirect ON it doesn't even downloads a file! :cry: **

And with Streaming ON and Redirect OFF ... the small file still does not work?
Still doesn't works. Well it downloads.. but the file is corrupted.. sniff sniff..

Who are you hosting with?
I am hosted by powweb.com. Btw.. i already opened a problem issue with them.. but i don't think that it will help, since i suspect that it is not a server side problem.. well .. ijust don't know..

Could you also post from the server without the username and password the file:
/includes/configure.php[/QUOTE]
**Sure.. here it goes : **

<?php /** * * @package Configuration Settings * @copyright Copyright 2003-2006 Zen Cart Development Team * @copyright Portions Copyright 2003 osCommerce * @license <http://www.zen-cart.com/license/2_0.txt> GNU Public License V2.0 */ // Define the webserver and path parameters // HTTP_SERVER is your Main webserver: eg, <http://www.yourdomain.com> // HTTPS_SERVER is your Secure webserver: eg, <https://www.yourdomain.com> define('HTTP_SERVER', 'http://www.compra-a-mim.com'); define('HTTPS_SERVER', 'https://www.compra-a-mim.com'); // 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/users/web/b1470/pow.joanorsky/htdocs/cam/'); 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 // ****************** // Muahahaha... for my eyes only... muahahah :laugh: // ****************** 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', '/home/users/web/b1470/pow.joanorsky/sessions'); ?>
11 Aug 2006, 9:28 PM
#52
ajeh avatar

ajeh

Oba-san

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

Re: Downloaded file error message

Are you sure these two settings are correct?

define('DIR_FS_CATALOG', '/home/users/web/b1470/pow.joanorsky/htdocs/cam/');

define('DIR_FS_SQL_CACHE', '/home/users/web/b1470/pow.joanorsky/sessions');

Also, what are your Configuration ... Session Settings ... since we are looking at these ...

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

12 Aug 2006, 12:30 PM
#53
joanorsky avatar

joanorsky

New Zenner

Join Date:
Jul 2006
Posts:
25
Plugin Contributions:
0

Re: Downloaded file error message

yes... those settings are correct. We are hosting several sites.. and that one ("cam") is related to https://www.compra-a-mim.com!

Regarding the sessions .. they are also correct!

php.ini refers :

; Argument passed to save_handler.  In the case of files, this is the path
; where data files are stored. Note: Windows users have to change this
; variable in order to use PHP's session functions.
session.save_path = /home/users/web/b1470/pow.joanorsky/sessions/

We're using the sessions directory on a unreachable address (except for the server internal operations) for a security reasons. The sessions are working perfectly!

13 Aug 2006, 4:58 AM
#54
drbyte avatar

drbyte

Sensei

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

Re: Downloaded file error message

which browsers have you tested this with? What sort of internet connection are you using?

I can't duplicate the problem, and have tried with several different hosts.
Not pointing fingers, but I'm very mindful that lots of people have troubles with ipowweb hosting and systems like Zen Cart.

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

14 Aug 2006, 3:10 AM
#55
joanorsky avatar

joanorsky

New Zenner

Join Date:
Jul 2006
Posts:
25
Plugin Contributions:
0

Re: Downloaded file error message

which browsers have you tested this with?
**IE, Mozilla FireFox. Always the same error though.. :( **

What sort of internet connection are you using?
I've used several connections. Regular Dialup of 56Kb/s, Mobile conections of 156 Kb/s, 386Kb/s, 1.8 Mb/s, 2.4Mb/s, ADSL of 16Mb/s and T1 (LAN).. also used bentleywalker's Hughes SatComms to test this issue. Always with no success.. sniff ... snifff..

I can't duplicate the problem, and have tried with several different hosts.
Not pointing fingers, but I'm very mindful that lots of people have troubles with ipowweb hosting and systems like Zen Cart.
**Is it possible for you to show us your generic server configurations? Or point one of the hosting companies that you are using ?
Isn't there any Apache streamming directive that should be set active in order to use the zencart's download algorithm? This is just too much strange.. :cry:
:lamo: **

14 Aug 2006, 10:14 PM
#56
joanorsky avatar

joanorsky

New Zenner

Join Date:
Jul 2006
Posts:
25
Plugin Contributions:
0

Re: Downloaded file error message

Found some suggestions on this forum.
The credit is not mine... but i can't remember the original poster. I'll try to give him the credit for it.

Here it goes.. ... code is only a suggestion: http://www.zen-cart.com/forum/showthread.php?t=43132

Worked for my tests.. but will test it some more... meanwhile.. feel free to test it as well

15 Aug 2006, 12:38 AM
#57
nailsquare avatar

nailsquare

New Zenner

Join Date:
Jul 2006
Posts:
38
Plugin Contributions:
0

Re: Downloaded file error message

hm...excuse me..
where is the "redirect" button??

i can't find this option
so i guess that's why mine doesn't work

15 Aug 2006, 12:45 AM
#58
joanorsky avatar

joanorsky

New Zenner

Join Date:
Jul 2006
Posts:
25
Plugin Contributions:
0

Re: Downloaded file error message

nailsquare:

hm...excuse me..
where is the "redirect" button??

i can't find this option
so i guess that's why mine doesn't work

It's on Admin >> Configuration >> Attribute Settings >> Set "Download by Redirect" to false (it's the second option counting from the top)

15 Aug 2006, 1:36 AM
#59
nailsquare avatar

nailsquare

New Zenner

Join Date:
Jul 2006
Posts:
38
Plugin Contributions:
0

Re: Downloaded file error message

joanorsky:

It's on Admin >> Configuration >> Attribute Settings >> Set "Download by Redirect" to false (it's the second option counting from the top)

oh thx you so much
i was on da attribute controller
haha..... spent a lot of even...even using "FIND"
thx~~

15 Aug 2006, 1:37 AM
#60
nailsquare avatar

nailsquare

New Zenner

Join Date:
Jul 2006
Posts:
38
Plugin Contributions:
0

Re: Downloaded file error message

oops...it's still not working....
i've checked other settings..
should be okay...

hm... guess there's sth wrong wtih my website...
:no: