Forum

You must be logged in to post Login Register

Search Forums:


 






Can't download one particular sermon

No Status Selected
UserPost

3:58 am
23 February, 2009


Chuck

Enthusiast

posts 13

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


adventisti.us

New Member

posts 2

Post edited 5:59 pm – 10 April, 2009 by


Hi 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

2:16 pm
12 April, 2009


Mark Barnes

Admin

posts 321

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

9:34 pm
13 April, 2009


adventisti.us

New Member

posts 2

Hello Mark,

Upload folder seems to bi set fine.

But still no luck.


Translation files on Serbian language are not complete but as soon we got this download issue corrected will work on that too.


Thank you for this great plugin.

Regards,

N

2:20 am
15 April, 2009


Mark Barnes

Admin

posts 321

Could you create a php file that contains just:

<?php

phpinfo ();

?>


and upload it to your server, and let me know the URL? Perhaps there's a configuration issue.

4:56 am
15 April, 2009


abetterword

Enthusiast

posts 12

hello, 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!Laugh

11:21 am
15 April, 2009


Mark Barnes

Admin

posts 321

abetterword,

As you are having problem with just one sermon, can I suggest you make a copy of the MP3 file, and upload the copy. Let me know what happens.

Mark

4:14 pm
15 April, 2009


abetterword

Enthusiast

posts 12

Post edited 3:47 pm – 15 April, 2009 by abetterword


Mark,


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.

1:01 am
21 April, 2009


abetterword

Enthusiast

posts 12

has anyone resolved this particular download issue? I was wondering if there was a known fix as my files still will not download. thanks!

4:16 pm
24 April, 2009


Mark Barnes

Admin

posts 321

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
30 April, 2009


abetterword

Enthusiast

posts 12

Post edited 6:09 pm – 30 April, 2009 by abetterword


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

9:32 pm
30 April, 2009


Mark Barnes

Admin

posts 321

Thanks for this report. The first suggestion was to change readfile_sergments to readfile on lines 365 and 400, but NOT on line 296. Sorry if that wasn't clear.

Mark

4:50 pm
1 May, 2009


abetterword

Enthusiast

posts 12

ohh 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!

7:49 pm
2 June, 2009


abetterword

Enthusiast

posts 12

Sorry to bother you again, was wondering if you had had any leeway on this problem? I still have not been able to resolve it, none of our sermons are downloadable as of yet  Confused


appreciate any help!

2:18 pm
3 June, 2009


aksturgeon

Enthusiast

posts 13

I as well am experiencing this issue. If I left-click on the download link it opens Windows Media Player which presents a message indicating invalid codecs. If I right-click and select save, it downloads a 0kb file.

2:58 am
4 June, 2009


David Blowes

Enthusiast

posts 18

Post edited 1:59 am – 4 June, 2009 by David Blowes


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?

3:24 am
11 June, 2009


aksturgeon

Enthusiast

posts 13

Post edited 2:26 am – 11 June, 2009 by aksturgeon
Post edited 2:27 am – 11 June, 2009 by aksturgeon


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&amp;'.$param.'='.$url.'">Download</a>';
echo ' <a href="/wp-content/uploads/sermons/'.$url.'">Download</a>';

9:32 pm
11 June, 2009


abetterword

Enthusiast

posts 12

@aksturgeon Thank you so much, this is working!

9:51 pm
11 June, 2009


aksturgeon

Enthusiast

posts 13

abetterword said:

@aksturgeon Thank you so much, this is working!


I'm very glad to hear that it's working for you abetterword.

Smile

12:38 am
24 June, 2009


aksturgeon

Enthusiast

posts 13

I just upgraded to the new version that's compatible with WordPress 2.8 and find this issue is still prevelant. It doesn't look like any changes were made to frontend.php so I modified it with the changes outlined in my post of 11 June and everything seems to be working fine.


About the 4:14 evangelical christian theology blog forum

Most Users Ever Online:

19


Forum Stats:

Groups: 1

Forums: 6

Topics: 544

Posts: 2106




Popularity: 37% [?]