Topic RSS
I uploaded a sermon in mp3 format. It pays when people listen online. But when people try to download it, it shows "0 meg" file and nothing downloads. It's a 40.3 Mg file!
This is the only sermon out of 28 uploaded with this problem. Any thoughts?
The one in question is:
http://www.heidelbergcatechismproject.com/sermons/?sermon_id=31
6:58 pm
10 April, 2009
OfflineHi Chuck,
It seems that you have resolved your download option issue.
Can you help me to do the same here:
http://www.adventisti.us/propovedi
I have problem with all of sermons on our webpage.
Newest plugin has been installed.
Also, is it any tutorial to set up iTunes too?
Thank you guys,
In HIS service,
N
The most likely answer is that your uploads folder is incorrectly set. Could you just click 'Save' on the options screen again to re-set it? If that doesn't work, can you confirm what your uploads folder is?
Also, if you send me your translation files, I could get them included in future versions.
Thanks,
Mark
4:56 am
15 April, 2009
Offlinehello, i am having the same issue. I have uploaded three sermons, one which when I click to download it, the download completes immediately and the file then says 0 bytes. Here is the link: http://www.alliancechristiance…..ermon_id=3
The strange thing is that the one that downloads wrong is the one that has the correct sample rate, of 44.1 kHz. The other two have different sample rates, and they play really fast in internet explorer. But they download alright. Any help would be appreciated!
4:14 pm
15 April, 2009
OfflineMark,
Thanks for the response! I did as you suggested and made a copy of the mp3 on my pc, then uploaded it. It is listed in the Sermons now on the site. However, when I downloaded it the same problem occurred, the download finished immediately and the file that was downloaded says it has 0 bytes.
I also uploaded a similar sermon with the same sample rate and the same issue occurred.
This remains a bit of a mystery. Can you try to edit frontend.php?
On lines 365 and 400 you'll see a reference to readfile_segments
Can you try changing this to readfile?
e.g.
readfile($file_name);
readfile($url);
If that doesn't work, try removing the nearby lines which read:
if ($filesize != 0)
header("Content-Length: ".filesize($file_name));
and
if ($filesize) header("Content-Length: ".$filesize);
7:07 pm
15 April, 2009
Offlinewhen i changed the readfile_sergments calls to readfile, i get an exception upon entering the sermons page:
Fatal error: Cannot redeclare readfile() in /public_html/wp-content/plugins/sermon-browser/sb-includes/frontend.php on line 296
I then tried the second suggestion and received no errors, however the file download still finished immediately and said 0 bytes. I think that this may be a filesize issue, as the file i downloaded was 19 mb, but when i spliced a section of that same sermon, 900kb large, then the download worked. so it may be safe to say that it has less to do with the sample rate and more with the filesize and possibly the server configuration.
we may try to record a sermon with a lower bit rate to lower significantly the filesize.
4:50 pm
15 April, 2009
Offlineohh i see i apologize for that. I have made the correction, however still seem to be having the issue. i renamed those two lines to read_file and removed the lines you suggested. It seems that this is a problem in the php, as I posted a link to the file at the same location on a wordpress page, and it downloads fine:
http://www.alliancechristiance…..community/
and here is the link once again to my sermons page:
http://www.alliancechristiance…..s/sermons/
you can see how the download finishes immediately and the file says 0 bytes, while the link on the community page downloads the file correctly. I have left the php changes you suggested in place. Thanks again for all the help!
I'm having the same issue… Plays fine in 1px player, but when I click on the “download” link, it instantly finishes downloading a file that is 0kb in size.
It might be worth mentioning that all the files are “links” (that is, they are hosted elsewhere to where sermon browser is running from). – so it would seem improbable that it's related to the uploads folder… I'm not using it at all.
help?
I'm sure this is probably not the best fix that can be applied but I'm not a php programmer and any future updates will most likely overwrite these changes but I was able to make the download link work by modifying the frontend.php file that's located in the sb-includes folder.
I commented out lines 616 and 617, which are within the function sb_print_url_link(). These are the lines that do the URLencode to the $url variable and the line that renders the download link the page. I basically just hardcoded the path to the location of the sermons directory, the path may be different for anyone else who attempts to make a similar change.
Below are the changes…
//uncomment the next two lines and remove the third line to revert back to the original code base.
//$url = URLencode($url);
//echo ' <a href=”'.sb_display_url().sb_query_char().'download&'.$param.'='.$url.'”>Download</a>';
echo ' <a href=”/wp-content/uploads/sermons/'.$url.'”>Download</a>';
Most Users Ever Online: 40
Currently Online: 0be1
15 Guest(s)
Currently Browsing this Page:
1 Guest(s)
Top Posters:
malpan - 2453
jogen - 2440
VanWatterson - 652
GeraldSebring - 364
LucasWoltman - 362
RandellFeenstra - 362
Member Stats:
There have been 7 guest posters
There are 1936 members
There are 1 moderators
There are 1 admins
Forum Stats:
Groups: 1
Forums: 2
Topics: 971
Posts: 3747
Newest Members: twinton, ellison13579, Daigh, mchunful, jesua, LGRG Design
Moderators: Ben Miller (383 )
Administrators: Mark Barnes (425)
Log In
Register
Home





