-
Download Fetch [support thread]
This is the support thread for Zen Cart Download Fetch.
In the free software addons Download Fetch
So if you have any question please post them here.
Note: Download Fetch uses specific features of PHP 5 so you must be running PHP 5 or higher to use this addon.
Skip
-
Re: Download Fetch [support thread]
easy to install ...thank you for the mod
-
Re: Download Fetch [support thread]
Hi,
Can you point me the Download Fetch mod link ?.
-
Re: Download Fetch [support thread]
Quote:
Originally Posted by
franklin
Hi,
Can you point me the Download Fetch mod link ?.
http://www.zen-cart.com/index.php?ma...oducts_id=1382
-
Re: Download Fetch [support thread]
Quote:
Originally Posted by
skipwater
This is the support thread for Zen Cart Download Fetch.
In the free software addons
Download Fetch
Skip
I am having an issue once everything got up and running. Fetch is set to have the download available for 1 week. But when I try to use the link no matter what it says its expired.
-
Re: Download Fetch [support thread]
You are getting this error.
Error Sorry, the requested download has expired
When you use the link in the email?
Under admin->tools->Download Fetch File
Select the file that you wish to change and edit the Active Period to a value that you want.
ie.
86400 = 1 day
604800 = 1 week
2419200 = 1 month
29030400 = 1 year
If you just want to allow one user/customer more time then you must go to Download Fetch User Admin and adjust the download date.
Skip
-
Re: Download Fetch [support thread]
no, its not needing more time. I get the warning right away. I have the time allowed set at 604800. Email comes with the link in 5-15 min, you click the link and get the "expired" error.
another possible bug in the admin section:
example
there are already 10 files listed in [Download Fetch File Admin]
if I select any of those so its highlighed but don't click edit, instead I click [New File]
enter all info (all fields are blank) and then there are only two options [update] [cancel]
if you pick [update] then it updates the highlighted row and does not add a new one.
if I have the last item in the list highlighted then do the same steps above then and only then will it insert the new record.
-
1 Attachment(s)
Re: Download Fetch [support thread]
I have uploaded a new version 1.1 to the Free Software Add Ons http://www.zen-cart.com/index.php?ma...oducts_id=1382 but until it is updated to version 1.1.
This attached zip file with 3 files in it will bring current users up to date v1.1.
(The files are already arranged into the correct folders you just need to rename the YOUR_ADMIN folder.)
Download Fetch Version 1.1
Fixed math for download active time allowed
Fixed new/add record sql insert
Fixed character ' in sql records with \'
Thanks to snip1er for the find and help.
And OH do me a favor BACKUP! your files.
Skip
-
Re: Download Fetch [support thread]
ok I know I am probably having a major duh moment but..... I deleted the test " it says no where not to lol " and now I have no buttons to create a new......... and also when I was testing everything worked except for not opening the d/l to retrieve the file.:wacko: thanks in advance
-
Re: Download Fetch [support thread]
Quote:
Originally Posted by
MischiefDesignz
ok I know I am probably having a major duh moment but..... I deleted the test " it says no where not to lol " and now I have no buttons to create a new.........
Deleting the only record in the mod and leaving zero records was a missed coding error not to have a add new file option.
The fix is below:
File YOUR_ADMIN/download_fetch.php
Find about line 236
Code:
<?php
$download_fetch_query->MoveNext();
}
?>
Change to
Code:
<?php
$download_fetch_query->MoveNext();
}
if ($download_fetch_query_numrows < 1){
echo '<div align="center"><b>NO Records Found You Must Add </b><br /><a href="' . zen_href_link(FILENAME_DOWNLOAD_FETCH, zen_get_all_get_params(array('padID', 'action')) . 'padID=' . $padInfo->file_id . '&page=' . $_GET['page'].'&action=newfile') . '">' . zen_image_button('button_new_file.gif', IMAGE_NEW_FILE) . '</a> </div>' ;
}
?>
Quote:
and also when I was testing everything worked except for not opening the d/l to retrieve the file.:wacko: thanks in advance
Need more info on this one. PHP version, what browser IE ?, Firefox ? You had the green Valid filename image showing?
Skip
-
Re: Download Fetch [support thread]
Quote:
File YOUR_ADMIN/download_fetch.php
Find about line 236
Code:
<?php
$download_fetch_query->MoveNext();
}
?>
Change to
Code:
<?php
$download_fetch_query->MoveNext();
}
if ($download_fetch_query_numrows < 1){
echo '<div align="center"><b>NO Records Found You Must Add </b><br /><a href="' . zen_href_link(FILENAME_DOWNLOAD_FETCH, zen_get_all_get_params(array('padID', 'action')) . 'padID=' . $padInfo->file_id . '&page=' . $_GET['page'].'&action=newfile') . '">' . zen_image_button('button_new_file.gif', IMAGE_NEW_FILE) . '</a> </div>' ;
}
?>
Worked Grand Thank You Very Much!!!
Quote:
Need more info on this one. PHP version, what browser IE ?, Firefox ? You had the green Valid filename image showing?
Php5, 1.38 Zen, IE, yep was green and even tried it in different folders and nothing..... it just goes to a blank page ... did not work in FF either
http://mischiefscrapz.com/store/inde...d_fetch&file=2 <--- request link
-
Re: Download Fetch [support thread]
Load this debugging tool http://www.zen-cart.com/forum/showthread.php?t=84613
And check out what the error is. It could be as simple as a space after the eof ?>
Let me know.
Skip
-
Re: Download Fetch [support thread]
done ...... no errors came up..... it did not even show an error log
-
Re: Download Fetch [support thread]
Check for errors now you should have two.
Skip
-
Re: Download Fetch [support thread]
uhmmm ok .....
[26-Jan-2010 20:15:12] PHP Parse error: parse error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in html/mischiefscrapz/store/includes/classes/fetch_download.php on line 39
-
Re: Download Fetch [support thread]
Quote:
Originally Posted by
MischiefDesignz
uhmmm ok .....
[26-Jan-2010 20:15:12] PHP Parse error: parse error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in html/mischiefscrapz/store/includes/classes/fetch_download.php on line 39
I can not recreate this error. So the only suggestion that I can give is reinstall the mod.
Skip
-
Re: Download Fetch [support thread]
I did the reinstall and am still getting the same thing...... no download and same error......
-
Re: Download Fetch [support thread]
Quote:
Originally Posted by
MischiefDesignz
I did the reinstall and am still getting the same thing...... no download and same error......
Did you drop/delete these two tables download_fetch_file, download_fetch in your msql database before you reinstalled?
If not BACKUP your database and drop them and then run install-sql-download_fetch.php.
Skip
-
Re: Download Fetch [support thread]
yep I sure did ...... I must just have a ghost stealing my files from the link before they can go out to be downloaded .... lol
-
Re: Download Fetch [support thread]
Hey there Skip....
I just installed Fetch and everything works great...i guess.
My only problem is the emailing part. I submitted a test email for the download link and it is not going thru to the test email address.
I then, look into my own email and it gives me a mailer fatal error. Here's what it looks like:
The original message was received at Tue, 2 Feb 2010 08:54:47 -0700
from localhost [127.0.0.1]
----- The following addresses had permanent fatal errors -----
<test######################>
(reason: 553 sorry, your mail was administratively denied. (#5.7.1))
----- Transcript of session follows -----
... while talking to relay-hosting.secureserver.net.:
>>> MAIL From:<myown######################> SIZE=1538
<<< 553 sorry, your mail was administratively denied. (#5.7.1)
501 5.6.0 Data format error
Final-Recipient: RFC822; test######################
Action: failed
Status: 5.1.3
Diagnostic-Code: SMTP; 553 sorry, your mail was administratively denied. (#5.7.1)
Last-Attempt-Date: Tue, 2 Feb 2010 08:54:47 -0700
Not sure what that means. I tried other email addresses and it will not send the link to them but it returns it to my email address with that fatal error. Please help. Thanks!
-
Re: Download Fetch [support thread]
nevermind...I scoured the forums and I found my solution. thanks anyways haha!!
http://www.zen-cart.com/wiki/index.p...s#Google_Gmail
-
Re: Download Fetch [support thread]
hehehe I'm Back!!! lol ....... ok I got my other issues figured .. but now I am having a problem with downloading. I have tested this on 2 different hosting accounts and both do the same thing. I know I am prolly missing something simple but hey, every one is entitled to brain farts! lol ok now on to the prob. After the file is downloaded it will not unzip it tells me it is corrupt :lookaroun and I know it is not. I have tested a few different files even.
Btw ..... I do love the idea of this mod and would love it even more if I could get it to work right lol it is very helpful to my shop! Thanks
=============================================
ok well got that figured out, it will only unzip with winzip, not winrar? lol
-
Re: Download Fetch [support thread]
Is there a way that the zip files can be unzipped using any program or does it have to be with windows default prog only?
-
Re: Download Fetch [support thread]
Quote:
Originally Posted by
MischiefDesignz
Is there a way that the zip files can be unzipped using any program or does it have to be with windows default prog only?
Stuffit is what most if not all Mac users use. And it will expand zip files.
StuffIt-Expander 2010
Skip
-
Re: Download Fetch [support thread]
oh no .... sorry guess I really should have simplified. I use windows .... but I use winrar as my extraction program. But for some reason every time I try it always tells me the files are corrupt " with winrar" but if I use winzip they will unzip perfectly. I just was wanting to know if you knew of anything I would be able to do to use winrar to extract?
-
Re: Download Fetch [support thread]
Quote:
Originally Posted by
MischiefDesignz
I just was wanting to know if you knew of anything I would be able to do to use winrar to extract?
I use 7 Zip http://www.7-zip.org/ This is the best one that I have found that will do many more things then any of the others out there. A side note on why I use it. Is that I can extract files from an iso dvd or cd image file.
Skip
-
Re: Download Fetch [support thread]
I have noticed downloading the file from the email link with download fetch the file size after downloaded is 1 byte smaller then what the file should be. Unzipping files with winrar or winzip give an error that it is corrupt, though using windows zip folders it works ok.
Anyone find a solution for the 1 byte difference with download fetch??
-
Re: Download Fetch [support thread]
Quote:
Originally Posted by
scottsteps
I have noticed downloading the file from the email link with download fetch the file size after downloaded is 1 byte smaller then what the file should be. Unzipping files with winrar or winzip give an error that it is corrupt, though using windows zip folders it works ok.
Anyone find a solution for the 1 byte difference with download fetch??
I am not seeing this.
What browser are you using ie8?
Skip
-
Re: Download Fetch [support thread]
As always IE is not playing nicely.
This little change should fix IE download.
File: includes/classes/fetch_download.php
Find at line 56
Code:
case "zip": $content_type="application/zip"; break;
And change to
Code:
case "zip": $content_type="application/octet-stream"; break;
Skip
-
Re: Download Fetch [support thread]
Thanks for the quick reply.
I'm using Firefox, Windows 7.
Made the change suggested and Im still getting the same outcome, download fia ftp client the file is 1 byte larger then downloading from the email notification link via firefox.
-
Re: Download Fetch [support thread]
Quote:
Originally Posted by
MischiefDesignz
hehehe I'm Back!!! lol ....... ok I got my other issues figured .. but now I am having a problem with downloading. I have tested this on 2 different hosting accounts and both do the same thing. I know I am prolly missing something simple but hey, every one is entitled to brain farts! lol ok now on to the prob. After the file is downloaded it will not unzip it tells me it is corrupt :lookaroun and I know it is not. I have tested a few different files even.
Btw ..... I do love the idea of this mod and would love it even more if I could get it to work right lol it is very helpful to my shop! Thanks
=============================================
ok well got that figured out, it will only unzip with winzip, not winrar? lol
What was your fix for the "unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR" error, as I am getting the same error.
Thanks
-
Re: Download Fetch [support thread]
FIgured it out, i had to upgrade to php version 5
-
Re: Download Fetch [support thread]
Hi SKip,
I installed Download Fetch and for the most part is working fine. I did a test run and I got a Success message in my website. It said that an email
will be sent with instructions to download the file.
But, in my email I only got this:
Free MP3 ESL Listening - Bolivians_biz_in_China File Download Information
$EMAIL_MESSAGE_HTML
And no instructions on how to download.
Rob.
-
Re: Download Fetch [support thread]
Quote:
$EMAIL_MESSAGE_HTML
Is coming from zen email function. What is your email setup in the admin? Are your other email functions working?
What version of ZC are you using?
Did you try the sample test.zip file did it work?
Skip
-
Re: Download Fetch [support thread]
Hi Skip,
Quote:
Originally Posted by
skipwater
Is coming from zen email function. What is your email setup in the admin? Are your other email functions working?
What version of ZC are you using?
Did you try the sample test.zip file did it work?
Skip
I am using the following:
Zen Cart™ Version: v1.3.8
Version: v1.1
Last Updated: Jan 23 2010
Author: SkipWater
Download Now!
File size: 246206 bytes
Downloaded: 339 times
Good News! I got the test.zip to work and my own
download files. However, I noticed that when I created an
account with HTML Email version I got the same error message
as before. Only works with Text Email version.
Is it possible to make it work with HTML Email format?
Thanks in advance,
Rob.
-
Re: Download Fetch [support thread]
Quote:
Is it possible to make it work with HTML Email format?
Yes it can be done.
Download Fetch was built with the concept no one would create an account. With this in mind HTML email was not an option.
Adding the HTML email ability is something that could be added.
Skip
-
Re: Download Fetch [support thread]
Quote:
Originally Posted by
skipwater
Yes it can be done.
Download Fetch was built with the concept no one would create an account. With this in mind HTML email was not an option.
Adding the HTML email ability is something that could be added.
Skip
I got it. It makes sense.
Thanks!
Rob
-
Re: Download Fetch [support thread]
Hello, I seem to be having the issue that whenever I try to open the zip file that I downloaded, I get this error.....
! C:\Users\EL Hudson\AppData\Local\Temp\Coalition Forces.zip: Either multipart or corrupt ZIP archive
Everything works perfectly until I get to that point. I just downloaded this application yesterday so I assume I have the latest version which is 1.1.
My zen cart version is 1.3.9b
I am using PHP 5 and I tried opening files with winrar and 7-zip.
I also tried this in both Firefox and Google Chrome.
Click here to see the test product I am having issues with.
I am really hoping that this is a simple fix because I LOVE this application.
Thanks for any help I can get for this situation.
GREAT JOB! SkipWater
-
Re: Download Fetch [support thread]
Quote:
Originally Posted by
elhuds
Hello, I seem to be having the issue that whenever I try to open the zip file that I downloaded, I get this error.....
! C:\Users\EL Hudson\AppData\Local\Temp\Coalition Forces.zip: Either multipart or corrupt ZIP archive
Everything works perfectly until I get to that point. I just downloaded this application yesterday so I assume I have the latest version which is 1.1.
My zen cart version is 1.3.9b
I am using PHP 5 and I tried opening files with winrar and 7-zip.
I also tried this in both Firefox and Google Chrome.
Click
here to see the test product I am having issues with.
I am really hoping that this is a simple fix because I LOVE this application.
Thanks for any help I can get for this situation.
GREAT JOB! SkipWater
Downloading your test I was only able to get trans rate of 90 KB/sec that is way to slow for a 78 meg file.
What it looks like is the utility that you used to create the zip file.
It will not open in winzip or 7zip as you stated. But windows xp zip will open the zip file.
Skip
-
Re: Download Fetch [support thread]
Quote:
Originally Posted by
skipwater
Downloading your test I was only able to get trans rate of 90 KB/sec that is way to slow for a 78 meg file.
What it looks like is the utility that you used to create the zip file.
It will not open in winzip or 7zip as you stated. But windows xp zip will open the zip file.
Skip
I am so sorry for my ignorance but I am a novice when it comes to all of this. I used winrar to make the zip file if that is what you mean.
Do you have any suggestions on what I should do? I did notice that it downloaded really slow but I just figured that was normal....lol.
I am just concerned with people downloading these files and being able to open it no matter what program they have.
Thanks.
-
Re: Download Fetch [support thread]
Quote:
I used winrar to make the zip file if that is what you mean.
Do you have any suggestions on what I should do? I did notice that it downloaded really slow but I just figured that was normal....lol.
I am just concerned with people downloading these files and being able to open it no matter what program they have.
I would suggest if you want to use zip files, use 7zip to create them.
If you want to create rar files use winrar.
As for your speed it might be the server is over loaded. Or your host has the transfer rate controlled.
Skip
-
Re: Download Fetch [support thread]
Quote:
Originally Posted by
skipwater
I would suggest if you want to use zip files, use 7zip to create them.
If you want to create rar files use winrar.
As for your speed it might be the server is over loaded. Or your host has the transfer rate controlled.
Skip
I did zip the files with 7zip and unfortunately, I still get the same thing. I can download individual mp3 files but the zip files are not working. I keep getting the same error message:(:(
Any other suggestions other than chucking this laptop out of the window because that seems like the right thing to do right now:laugh::laugh:.
I do appreciate the help.
-
Re: Download Fetch [support thread]
You could try other zip utilities.
Like jzip, winzip, pkzip etc.
As a test if you just zip two files into a zip file. You still get the error?
Skip
-
Re: Download Fetch [support thread]
Quote:
Originally Posted by
skipwater
You could try other zip utilities.
Like jzip, winzip, pkzip etc.
As a test if you just zip two files into a zip file. You still get the error?
Skip
no unfortunately, even with just 2 files it still gives me the same error.
I also tried it with winzip and I get the same errors.
I am completely at a loss. Everything works fine if someone is downloading a single mp3 but if someone wants to download a whole album zipped then they are s.o.l. :unsure:
The only other option I have is to offer each song and album cover as an individual download. That would obviously take a lot of work and be inconvenient for the customer.
If you have any other ideas, I am all eyes and ears :shocking:
I really do like what you got here and I am really hoping to get it to work.
Thanks again.
-
Re: Download Fetch [support thread]
Quote:
Originally Posted by
elhuds
If you have any other ideas, I am all eyes and ears :shocking:
I really do like what you got here and I am really hoping to get it to work.
Thanks again.
Ok lets try something new.
Find the file shops_root/includes/classes/fetch_download.php
Now find about line 56
Code:
case "zip": $content_type="application/zip"; break;
Change to
Code:
case "zip": $content_type="application/octet-stream"; break;
See if that changes anything.
Skip
-
Re: Download Fetch [support thread]
Quote:
Originally Posted by
skipwater
Ok lets try something new.
Find the file shops_root/includes/classes/fetch_download.php
Now find about line 56
Code:
case "zip": $content_type="application/zip"; break;
Change to
Code:
case "zip": $content_type="application/octet-stream"; break;
See if that changes anything.
Skip
As much as I hate to say it....I am still getting the same error :(:frusty:
I really do appreciate your help. Is there any other info I can give you to help. Maybe I should be doing something that is simple and maybe even common sense to you but being a novice...I may not be doing it.
I am sure that this is something simple and I am also sure it is probably an oversight on my part somewhere.
-
Re: Download Fetch [support thread]
Quote:
I am sure that this is something simple and I am also sure it is probably an oversight on my part somewhere.
In the download folder zen cart loads test.zip as an example.
Set this file up to be downloaded and give that a try. And let me known if it works.
Skip
-
Re: Download Fetch [support thread]
Quote:
Originally Posted by
skipwater
In the download folder zen cart loads test.zip as an example.
Set this file up to be downloaded and give that a try. And let me known if it works.
Skip
No, unfortunately, I get the same error message with the test file.:(
This is where the test file is under "Download test".
http://erhgroupinc.com/ShopERH/index...&products_id=3
oh, another thing....if I download the zip file with the regual zen cart checkout it downloads fine. I don't know if that helps but I figured I would let you know.
-
Re: Download Fetch [support thread]
hello i need your help please
i installed the download fetch i follow the instruction, but when i put the file to download for donwload and when i do the request for the file i got the email with the link of the file to download the page was a blank page, so i though i did something wrong and i run again the install_sql page and it toll me to if i need to re run the install i need to deleted the download fetch table, so i log on in my sql and i deleted 2 tables the download_fetch and the the fetch table, and now i my page is looking for thos tables, so is it posible that you give me the code for the sql to create the tables from my sql administrator.
becouse when i copy some code from the instal sql php file it wont do the table
thank you
my page is this www.tni-wireless.com
and when i try to log in in my admi this is what i get
0 DB_ERROR_NOT_CONNECTED
in:
[db_cache table]
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.
Quote:
Originally Posted by
skipwater
This is the support thread for Zen Cart Download Fetch.
In the free software addons
Download Fetch
So if you have any question please post them here.
Note: Download Fetch uses specific features of PHP 5 so you must be running PHP 5 or higher to use this addon.
Skip
-
Re: Download Fetch [support thread]
There is a new version but it has not been activated yet in the free download section yet. So here is a link to the zip file.
download_fetch_v1.2.zip
You can just install the new files over the old.
Then you need to do:
5. Login to your Zen Cart admin.
In the url address replace index.php with install-sql-download_fetch.php
This will load the tables and sample data into your database.
When the script has ended just use back button on your browser.
If you are up grading from 1.0 or 1.1 just run the new install-sql-download_fetch.php and it will up date your data base.
You will need to re-run the new install-sql-download_fetch.php this will check your sql tables and add a new record to your query_builder table.
You might want to read the new readme file in the zip also.
Skip
-
Re: Download Fetch [support thread]
isit possible that if you can give the code of my sql to create the table becouse i can log in in my adminstratro i have to create the table on mysql data base manually thank you
Quote:
Originally Posted by
skipwater
There is a new version but it has not been activated yet in the free download section yet. So here is a link to the zip file.
download_fetch_v1.2.zip
You can just install the new files over the old.
Then you need to do:
5. Login to your Zen Cart admin.
In the url address replace index.php with install-sql-download_fetch.php
This will load the tables and sample data into your database.
When the script has ended just use back button on your browser.
If you are up grading from 1.0 or 1.1 just run the new install-sql-download_fetch.php and it will up date your data base.
You will need to re-run the new install-sql-download_fetch.php this will check your sql tables and add a new record to your query_builder table.
You might want to read the new readme file in the zip also.
Skip
-
Re: Download Fetch [support thread]
I can only give you the info that will help you in making your own sql.
I use the install file to get all the ZC info so that you do not need to hard code the sql.
But here is the info you need:
The tables that are created
$table_name = 'download_fetch_file';
$table2_name = 'download_fetch';
This table is use just to add a record
$table3_name = 'query_builder';
Around line 31 in install-sql-download_fetch.php
You will find the create table code for download_fetch_file
At around line 54 you will find the insert record code
Around line 67 in install-sql-download_fetch.php
You will find the create table code for download_fetch
At around line 89 you will find the insert record code
Around line 106 in install-sql-download_fetch.php
You will find the insert record code for query_builder
Skip
-
Re: Download Fetch [support thread]
:smile:
Ok this is what i got
first step works good,
1.Download Request
Success!
An e-mail has been sent to ice_ck########################## with the details to download TNI_BB_MEP_Reader.zip file.
Second step works this is when i ge the email when i request for the file
2. TNI Wireless
BB MEP REader Download Information
Therd step looks good the information of the file
3 Filename: TNI_BB_MEP_Reader.zip (33.1 KB)
Description: BB MEP ReaderRead the
MEP from the Network the phone is lock with. Here is your Download
Four looks good is the link fo the file to download
4 Link:http://www.tni-wireless.com/index.php? main_page=fetch&id=3&email=ice_ck##########################
This link will be active for the next 28 day(s)Requesters ip address 99.29.76.46
This email address was given to us by you or by one of our customers. If youfeel that you have received this email in error, please send an email tocustomercare AT tni-wireless DOT com This email is sent in accordance with the US CAN-SPAM Law in effect01/01/2004. Removal requests can be sent to this address and will be honoredand respected.
and 5 when i click on the link it send me to the page but is a white screen with no file and no pop up file to download.
http://www.tni-wireless.com/index.ph...##############
:lamo:
Thank you
Quote:
Originally Posted by
skipwater
There is a new version but it has not been activated yet in the free download section yet. So here is a link to the zip file.
download_fetch_v1.2.zip
You can just install the new files over the old.
Then you need to do:
5. Login to your Zen Cart admin.
In the url address replace index.php with install-sql-download_fetch.php
This will load the tables and sample data into your database.
When the script has ended just use back button on your browser.
If you are up grading from 1.0 or 1.1 just run the new install-sql-download_fetch.php and it will up date your data base.
You will need to re-run the new install-sql-download_fetch.php this will check your sql tables and add a new record to your query_builder table.
You might want to read the new readme file in the zip also.
Skip
-
Re: Download Fetch [support thread]
It seems that you are missing a file or have a corrupted file.
Look at /includes/modules/pages/fetch/header_php.php is it there?
If so and it looks ok then add/activate ZC debug script http://www.zen-cart.com/forum/showthread.php?t=84613
Then check out what error you are getting.
Skip
-
Re: Download Fetch [support thread]
ok this is the error log i got
PHP Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in
includes/classes/fetch_download.php on line 39
:lamo: thank you
Quote:
Originally Posted by
skipwater
It seems that you are missing a file or have a corrupted file.
Look at /includes/modules/pages/fetch/header_php.php is it there?
If so and it looks ok then add/activate ZC debug script
http://www.zen-cart.com/forum/showthread.php?t=84613
Then check out what error you are getting.
Skip
-
Re: Download Fetch [support thread]
It looks like in line 36
36 class Fetch_Download{ <----this simbol doesn't have the parner :no: } <-- becouse i check the rest of the simbols { they all have the closing }
-
Re: Download Fetch [support thread]
Are you running php 5.0 or higher.
Because if you are not, anything below php 5.0 download fetch will not work because I used "private" and "public" function calls in the class file.
Skip
-
Re: Download Fetch [support thread]
PHP Version 4.4.9
lol i see then i have to check on upgrad to 5 i just hope i don't mess it up, thank you
Quote:
Originally Posted by
skipwater
Are you running php 5.0 or higher.
Because if you are not, anything below php 5.0 download fetch will not work because I used "private" and "public" function calls in the class file.
Skip
-
Re: Download Fetch [support thread]
ok i got 5 now lol
and i get this
[19-Aug-2010 17:14:15] PHP Parse error: syntax error, unexpected T_PUBLIC in
/includes/classes/fetch_download.php on line 49
-
Re: Download Fetch [support thread]
i forgot to tell you now the page is deferent
The website cannot display the page
HTTP 500
Quote:
Originally Posted by
wastaboo
ok i got 5 now lol
and i get this
[19-Aug-2010 17:14:15] PHP Parse error: syntax error, unexpected T_PUBLIC in
/includes/classes/fetch_download.php on line 49
-
Re: Download Fetch [support thread]
ok i guess i found one erro in line 49 in the, it looks that there were 2 under line _ toguether i remove one, :clap:
but now i get a good page :clap: but with the message
nothing to download
Quote:
Originally Posted by
wastaboo
i forgot to tell you now the page is deferent
The website cannot display the page
HTTP 500
-
Re: Download Fetch [support thread]
i also check the, Download Fetch User Admin page and everytime that i reload the link for the download with the message Nothing to download! is counting like is downloading the file but no file were download.
:lamo:
Quote:
Originally Posted by
wastaboo
ok i guess i found one erro in line 49 in the, it looks that there were 2 under line _ toguether i remove one, :clap:
but now i get a good page :clap: but with the message
nothing to download
-
Re: Download Fetch [support thread]
Ok i keeping you update i delete the files from this page and i download the one tha is in the free download are of zen cart, is working when i click on the link send me to a good page and the file gets to download in my computer, but when i open the zip file it tells me this message.
Cannot open file: it does not appear to be a valid archive. if you downloaded this file, try download the file again.
im using winzip 8.
is it other zip program that i have to use to be able to work the good file. thank you :flex:
-
Re: Download Fetch [support thread]
OK Nice it works with win rar i got the file and good to open :clap::clap::clap: Thank you for this add on i like it :hug:
-
Re: Download Fetch [support thread]
Quote:
Originally Posted by
wastaboo
OK Nice it works with win rar i got the file and good to open :clap::clap::clap: Thank you for this add on i like it :hug:
I am glad you got it fixed.
This has fixed some systems errors with zip files.
http://www.zen-cart.com/forum/showpo...3&postcount=29
Skip
-
Re: Download Fetch [support thread]
I made the change and it didn't help, it looks like IE corrups my zip files when i upload them to the server, so i just leave it like that and im using winrar for my files, do me a favor a so kind and check my page in the download area and tell me what you think thank you. :hug:
Quote:
Originally Posted by
skipwater
-
Re: Download Fetch [support thread]
Quote:
do me a favor a so kind and check my page in the download area and tell me what you think thank you.
You use fetch in a round about way.
What normally would be done is to create a ez-page and place all your content as you have now in the ez-page.
Then just use fetch link (in fetch admin file section) to display the request form for the file. This way you will not get the red error message when landing on the download page.
But otherwise it works:)
Skip
-
Re: Download Fetch [support thread]
Ok i change it already, is much better without the red image in the botton, i use the fetch page becouse i notice 2 page were created in the define pages one fetch and the other download fetch, i notice when i apply the link for the fetch it pull the download fetch page. So what will be the used of the fetch page in the define pages for.
:clap:
Thank you
Quote:
Originally Posted by
skipwater
You use fetch in a round about way.
What normally would be done is to create a ez-page and place all your content as you have now in the ez-page.
Then just use fetch link (in fetch admin file section) to display the request form for the file. This way you will not get the red error message when landing on the download page.
But otherwise it works:)
Skip
-
Re: Download Fetch [support thread]
Yes that is much better:smile:
-
Re: Download Fetch [support thread]
H SkipWater, I have two questions if I may :)
I am trying to get my head around how to use this mod which would be fantastic for my site.
Q.1 A customer emails me and requests a product, I email them a link to the download request form, they then fill in the download request form and are then sent an email with the download link - I hope I got that right...hehehe.
Q.2 Just running through a test, everything works up to the point of actually downloading the file. I am receiving an IE error when I click on the download link - error:unable to download from this site - cannot find index.php.
But no download issues when using Safari, file downloads and extracts just fine.
Would you be aware of a work around for IE or something I need to change in my IE settings.
Any help would be appreciated, thanks!
-
Re: Download Fetch [support thread]
Quote:
Q.1 A customer emails me and requests a product, I email them a link to the download request form, they then fill in the download request form and are then sent an email with the download link - I hope I got that right...hehehe.
That will work. You are just adding a step with the customer asking for the download link.
Quote:
Q.2 Just running through a test, everything works up to the point of actually downloading the file. I am receiving an IE error when I click on the download link - error:unable to download from this site - cannot find index.php.
But no download issues when using Safari, file downloads and extracts just fine.
Would you be aware of a work around for IE or something I need to change in my IE settings.
What are the file extensions of the files that are being downloaded?
Based on the file extension is how fetch handles the header for the download. And IE handles the header info differently then the rest of the browser world.
Skip
-
Re: Download Fetch [support thread]
Quote:
Originally Posted by
skipwater
That will work. You are just adding a step with the customer asking for the download link.
Thanks for the fast response Skip much appreciated :). OK confession time, after reading the instructions for the 20th time I finally got how the mod is supposed to work from start to finish :embarrassed: One should get more sleep before attempting the simplist tasks!
Quote:
Originally Posted by
skipwater
What are the file extensions of the files that are being downloaded?
Based on the file extension is how fetch handles the header for the download. And IE handles the header info differently then the rest of the browser world.
Skip
Aaaah MS where would we be without your challenges...lol. All files are winzip files so switching to winrar is not an option for me unfortunately. I have done a quick google on this error but I don't understand most of what I am reading. Any suggestions would be helpful :)
-
Re: Download Fetch [support thread]
This error seems to come up more then expected. I will try and explain a fix workaround.
These are the basic content type header setting for downloading files.
application/x-octet-stream
application/force-download
application/octet-stream
application/download
With fetch we create a content type header that matches the file type ie.
test_zip_file.zip would match -> $content_type="application/zip"
OK you are getting a bad zip file when downloaded.
To fix this you can change the content type that is assigned to the file extension ie.
Code:
case "zip": $content_type="application/zip"; break;
to
Code:
case "zip": $content_type="application/x-octet-stream"; break;
Now download the zip file again and see if that content type change fixed the issue. If not change the content type till it works.
Here is the fetch file that needs to be edited /includes/classes/fetch_download.php at line 52 you will find this switch statement.
Code:
switch( $file_extension ) { // the file type
// Application files
case "pdf": $content_type="application/pdf"; break;
case "exe": $content_type="application/octet-stream"; break;
case "zip": $content_type="application/zip"; break;
case "doc": $content_type="application/msword"; break;
case "xls": $content_type="application/vnd.ms-excel"; break;
case "ppt": $content_type="application/vnd.ms-powerpoint"; break;
// Image files
case "gif": $content_type="image/gif"; break;
case "png": $content_type="image/png"; break;
case "jpeg":
case "jpg": $content_type="image/jpg"; break;
// Audio files
case "mp3": $content_type="audio/mpeg"; break;
case "wma": $content_type="audio/x-ms-wma";break;
case "wav": $content_type="audio/x-wav"; break;
// Video files
case "mpeg":
case "mpe":
case "mpg": $content_type="video/mpeg"; break;
case "avi": $content_type="video/x-msvideo"; break;
case "wmv": $content_type="video/x-ms-wmv";break;
case "mov": $content_type="video/quicktime"; break;
//The following are for extensions that shouldn't be downloaded (sensitive stuff, like php files)
case "php":
case "htm":
case "html":
case "cgi": die("<h1>ERROR: Disallowed use for ". $file_extension ." files!</h1>"); break;
default: $content_type="application/force-download";
}
Hope that helped.
Skip
-
Re: Download Fetch [support thread]
You’re a legend Skip, thank you so much for the very clear instructions ^_^
application/x-octet-stream – worked like a treat. Tested IE and Safari both downloads and extraction - zero issues.
Excellent Mod so very happy I found this one!
-
Re: Download Fetch [support thread]
Aawww seems like I spoke too soon :(
My inital winzip file downloaded and extracted just fine 1.05mb using IE & Safari.
But after a bit of playing I have found that any winzip file larger than 4.5 mb doesn't download correctly in either browser, being 1kb short resulting in a corrupt file.
I tried each one of the content type header settings too.
Would you have any other suggestions Skip? apart from converting to rar files that is ...hehehehe
-
Re: Download Fetch [support thread]
Quote:
Originally Posted by
SammyD
Would you have any other suggestions Skip? apart from converting to rar files that is ...hehehehe
It might come down to may math.
Again open this fetch file that needs to be edited /includes/classes/fetch_download.php around line 140 you will find this.
Code:
// ... else, download the whole file
} else {
$byte_from = 0;
$byte_to = $this->properties["size"] - 1;
Change by removing the - 1 so it looks like this.
Code:
// ... else, download the whole file
} else {
$byte_from = 0;
$byte_to = $this->properties["size"];
That should have fixed it.
Skip
-
Re: Download Fetch [support thread]
Thanks Skip for the reply, unfortunately it didn't work.
I did play with the code a little bit to see if I could get it to work, but no go.
Such a shame as I think this is a great mod which I could use quite a bit but most of my files are 10mb or more. Never mind, at least I can still use it for files 4.5mb and under.
Again thanks for the help ^_^
-
Re: Download Fetch [support thread]
Has the corrupted file downloads issue been resolved? Like several of the others, all seems to work fine, with the exception that the files downloaded are corrupted. They are fine on the server itself.
-
Re: Download Fetch [support thread]
Quote:
Originally Posted by
filmfr3ak
Has the corrupted file downloads issue been resolved? Like several of the others, all seems to work fine, with the exception that the files downloaded are corrupted. They are fine on the server itself.
Sorry for the delay in my response I was working on that issue before your post but it got set aside till your post reminded me.
I have added to the code so there should be no issues with the size of the files or corruption.
I have tested it on XP, Vista, IE 5,6,7,8 FireFox and have gotten no errors.
I have submitted version 1.3 to the Free Software Add Ons area it should be updated in a couple of days. Till then here is a link to Version 1.3
To install read the readme file in the zip.
If you where running version 1.2 you do not need to run the sql install.
Skip
-
Re: Download Fetch [support thread]
Quote:
Originally Posted by
skipwater
Sorry for the delay in my response I was working on that issue before your post but it got set aside till your post reminded me.
I have added to the code so there should be no issues with the size of the files or corruption.
I have tested it on XP, Vista, IE 5,6,7,8 FireFox and have gotten no errors.
I have submitted version 1.3 to the Free Software Add Ons area it should be updated in a couple of days. Till then here is a link to
Version 1.3
To install read the readme file in the zip.
If you where running version 1.2 you do not need to run the sql install.
Skip
Hi Skip,
Just installed the new package. Now when someone clicks the link in the email it opens a white webpage and nothing happens. :blink:
Any ideas?
thanks.
-
Re: Download Fetch [support thread]
Just an update:
After "upgrading" to 1.3, everything worked fine, except clicking the link in the email only gave a WHITE webpage no download.
I replaced the INCLUDES>MODULES>PAGES>FETCH>header_php.php with the same file from the 1.2 version of the mod and it WORKS! Totally fixed it!
Have tested on a smallish 10mb file and also a larger 60mb file.
both downloaded successfully in IE and FF AND unzipped with no errors.
:clap:
-
Re: Download Fetch [support thread]
Hello.
ZC 1.3.9g
fetch 1.3 but the help says 1.2
Everything works except the file download. I have had this working before on this site. I am using the Cherry Zen template. The site is still being developed but here is the link: tabortools.net.
When i submit the request for a download, I get the email and when I respond to the email link I get:
IE -> HTTP 500 The website cannot display the page
Mozilla -> blank white page
I used to get a direct download box with the file. Because the site is being developed, I'm not sure at what point the link stopped working.
Any suggestions to fix this?
Thanks.
Great mod by the way.
Louis
-
Re: Download Fetch [support thread]
By the way, I tried the fix from filmfr3ak above and the file box came up and attempted to look for the file and errored out saying it couldn't open the site.
Louis
-
Re: Download Fetch [support thread]
ruready
This might be the code that is creating your error.
Test and let me know.
Find file /includes/modules/pages/fetch/header_php.php and about line 60 you will see.
PHP Code:
// Is Apache trying to compress the output:
@apache_setenv('no-gzip', 1);
@ini_set('zlib.output_compression', 0);
Change to look like this.
PHP Code:
// Is Apache trying to compress the output:
// @apache_setenv('no-gzip', 1);
// @ini_set('zlib.output_compression', 0);
That commented out the code so it will not run.
Skip
-
Re: Download Fetch [support thread]
Thanks Skip, I really appreciate the response.
I tried the fix as suggested but it did not work. The file works fine in Firefox now but not IE7.
What's next?
-
Re: Download Fetch [support thread]
Man, I wish I understood this stuff better....
Noticing the code fix you gave me said something about gzip, so I changed this setting in the admin gzip section to "on" and it seems to be working in both browsers now. Is GZIP supposed to be on for fetch to work?
Thanks again Skip, I'm grateful for your help.
Louis
-
Re: Download Fetch [support thread]
Quote:
Originally Posted by
ruready
Man, I wish I understood this stuff better....
Noticing the code fix you gave me said something about gzip, so I changed this setting in the admin gzip section to "on" and it seems to be working in both browsers now. Is GZIP supposed to be on for fetch to work?
Thanks again Skip, I'm grateful for your help.
Louis
Yes and No
As you know each server is different and writing code to work across so many unique setups is where the challenge is.
So if turning on gzip for you works yes it needs it. But for others no it is not needed.
Skip
-
Re: Download Fetch [support thread]
I am having trouble understanding what I should do. I have install the 1.3 version of download fetch.
I would like to have a free download on my shopping cart. The customer must purchase the product at no cost and then receive a link to the download page.
The readme file suggests placing the link to the download in the product description.
What exactly do I need to do to accomplish this or do you know of a website that has this set up that I can look at.
TIA Tom :cool:
-
Re: Download Fetch [support thread]
Quote:
I would like to have a free download on my shopping cart. The customer must purchase the product at no cost and then receive a link to the download page.
The Fetch Mod is not used for this kind of setup. You need to use Zen Carts built in download of products.
Take a look at How do I add downloads to products? make products downloadable?
Skip
-
Re: Download Fetch [support thread]
I just installed this and everything is working fine except for the downloading of the file from the email link.
When I tested it, I clicked on the link that was emailed and received the error message HTTP 500.
After reviewing some of the posts, I found the following instructions:
Find file /includes/modules/pages/fetch/header_php.php and about line 60 you will see.
PHP Code:
// Is Apache trying to compress the output:
@apache_setenv('no-gzip', 1);
@ini_set('zlib.output_compression', 0);
Change to look like this.
PHP Code:
// Is Apache trying to compress the output:
// @apache_setenv('no-gzip', 1);
// @ini_set('zlib.output_compression', 0);
I made the change and now the download box opens and along with another box with the error message:
Internet Explorer cannot download index.php from mysite.com. Internt Explorer was not able to open this Internet site. The requested site is either unavailable or cannot be found.
What am I missing?
-
Re: Download Fetch [support thread]
Quote:
Originally Posted by
jt1020
I just installed this and everything is working fine except for the downloading of the file from the email link.
When I tested it, I clicked on the link that was emailed and received the error message HTTP 500.
After reviewing some of the posts, I found the following instructions:
Find file /includes/modules/pages/fetch/header_php.php and about line 60 you will see.
PHP Code:
// Is Apache trying to compress the output:
@apache_setenv('no-gzip', 1);
@ini_set('zlib.output_compression', 0);
Change to look like this.
PHP Code:
// Is Apache trying to compress the output:
// @apache_setenv('no-gzip', 1);
// @ini_set('zlib.output_compression', 0);
I made the change and now the download box opens and along with another box with the error message:
Internet Explorer cannot download index.php from mysite.com. Internt Explorer was not able to open this Internet site. The requested site is either unavailable or cannot be found.
What am I missing?
No that will not fix your issue:
What version of php
Will it work using firefox?
Skip
-
Re: Download Fetch [support thread]
-
Re: Download Fetch [support thread]
Quote:
Originally Posted by
jt1020
version 3.3.9.2
Isn't that for phpMyAdmin 3.3.9.2 I was looking for the php version 5.x.x
Also what os are you running?
Skip
-
Re: Download Fetch [support thread]
Sorry, 5.1.52, Windows Vista
-
Re: Download Fetch [support thread]
Quote:
Originally Posted by
jt1020
Sorry, 5.1.52, Windows Vista
If I remember correctly php should be 5.2.x or higher.
Skip
-
Re: Download Fetch [support thread]
Hello Skip,
Thanks for this great mod, works like a charm.
I had to remove some hard coded colours from the tpl_download_fetch_default.php to make it show normally on my shop.
Is there any chance you are going to make this mod multi lingual any-time soon? Otherwise i am going to do it myself and send you the modified files if your interested
-
Re: Download Fetch [support thread]
Quote:
Originally Posted by
Design75
Hello Skip,
Thanks for this great mod, works like a charm.
I had to remove some hard coded colours from the tpl_download_fetch_default.php to make it show normally on my shop.
Is there any chance you are going to make this mod multi lingual any-time soon? Otherwise i am going to do it myself and send you the modified files if your interested
Not at this time plate full and with 1.5 out plate over full.
Skip
-
Re: Download Fetch [support thread]
Quote:
Originally Posted by
skipwater
If I remember correctly php should be 5.2.x or higher.
Skip
I now have 5.2.15 installed and still have the same issue.
-
Re: Download Fetch [support thread]
Skip,
Tried reinstalling and still same error message. "Internet Explorer cannot download index.php from mysite.com
Any idea as to what is wrong?
-
Re: Download Fetch [support thread]
Found it:clap: Made the changes below and it seems to be working.
File YOUR_ADMIN/download_fetch.php
Find about line 236
Code:
<?php
$download_fetch_query->MoveNext();
}
?>Change to
Code:
<?php
$download_fetch_query->MoveNext();
}
if ($download_fetch_query_numrows < 1){
echo '<div align="center"><b>NO Records Found You Must Add </b><br /><a href="' . zen_href_link(FILENAME_DOWNLOAD_FETCH, zen_get_all_get_params(array('padID', 'action')) . 'padID=' . $padInfo->file_id . '&page=' . $_GET['page'].'&action=newfile') . '">' . zen_image_button('button_new_file.gif', IMAGE_NEW_FILE) . '</a> </div>' ;
}
?>