Forum

 

Please consider registering
guest

Log In Register

Register | Lost password?
Advanced Search:

— Forum Scope —



— Match —



— Forum Options —




Wildcard usage:
*  matches any number of characters    %  matches exactly one character

Minimum search word length is 3 characters - maximum search word length is 84 characters

Topic RSS
Can't download one particular sermon
23 February, 2009
3:58 am
Chuck
Enthusiast
Forum Posts: 13
Member Since:
29 December, 2008
Offline

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

10 April, 2009
6:58 pm
adventisti.us
New Member
Forum Posts: 2
Member Since:
10 April, 2009
Offline

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

12 April, 2009
2:16 pm
Mark Barnes
Admin
Forum Posts: 425
Member Since:
14 December, 2005
Offline

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

13 April, 2009
9:34 pm
adventisti.us
New Member
Forum Posts: 2
Member Since:
10 April, 2009
Offline

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

15 April, 2009
2:20 am
Mark Barnes
Admin
Forum Posts: 425
Member Since:
14 December, 2005
Offline

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.

15 April, 2009
4:56 am
abetterword
Enthusiast
Forum Posts: 12
Member Since:
15 April, 2009
Offline

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

15 April, 2009
11:21 am
Mark Barnes
Admin
Forum Posts: 425
Member Since:
14 December, 2005
Offline

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

15 April, 2009
4:14 pm
abetterword
Enthusiast
Forum Posts: 12
Member Since:
15 April, 2009
Offline

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.

21 April, 2009
1:01 am
abetterword
Enthusiast
Forum Posts: 12
Member Since:
15 April, 2009
Offline

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

24 April, 2009
4:16 pm
Mark Barnes
Admin
Forum Posts: 425
Member Since:
14 December, 2005
Offline
10

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

30 April, 2009
7:07 pm
abetterword
Enthusiast
Forum Posts: 12
Member Since:
15 April, 2009
Offline

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.

30 April, 2009
9:32 pm
Mark Barnes
Admin
Forum Posts: 425
Member Since:
14 December, 2005
Offline
12

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

1 May, 2009
4:50 pm
abetterword
Enthusiast
Forum Posts: 12
Member Since:
15 April, 2009
Offline
13

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!

2 June, 2009
7:49 pm
abetterword
Enthusiast
Forum Posts: 12
Member Since:
15 April, 2009
Offline
14

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!

3 June, 2009
2:18 pm
aksturgeon
Enthusiast
Forum Posts: 13
Member Since:
3 June, 2009
Offline
15

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.

4 June, 2009
2:58 am
David Blowes
Enthusiast
Forum Posts: 18
Member Since:
5 March, 2009
Offline

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?

11 June, 2009
3:24 am
aksturgeon
Enthusiast
Forum Posts: 13
Member Since:
3 June, 2009
Offline

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

11 June, 2009
9:32 pm
abetterword
Enthusiast
Forum Posts: 12
Member Since:
15 April, 2009
Offline
18

@aksturgeon Thank you so much, this is working!

11 June, 2009
9:51 pm
aksturgeon
Enthusiast
Forum Posts: 13
Member Since:
3 June, 2009
Offline
19

abetterword said:

@aksturgeon Thank you so much, this is working!


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

Smile

24 June, 2009
12:38 am
aksturgeon
Enthusiast
Forum Posts: 13
Member Since:
3 June, 2009
Offline
20

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.

Forum Timezone: Europe/London

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)

 

Comments are closed.