This forum is now read-only. Support is provided at https://wordpress.org/support/plugin/sermon-browser/
15 April, 2012
I keep my sermon MP3s on another server and use the "URL to import" feature on the "Add Sermon" page to add them. I was getting "Invalid URL" when trying to import, even though the URL was fine. Turns out, for some reason the server hosting the MP3s was sending back "HTTP/1.0 200 OK" instead of "HTTP/1.1 200 OK" (it doesn't when I do a fetch from another system, so I'm wondering if the libs installed on the hosting provider are explicitly making 1.0 requests...). The header check code in sb-includes/admin.php looks for exactly "HTTP/1.1 200 OK", so was failing my URL.
I actually solved this problem long ago, but my fix got clobbered when I installed the recent upgrade. So I thought I'd post my fix to the forum in case a) someone else has had the problem, and b) so it can maybe make its way into the codebase.
My fix is just to check for a valid header with a 200 response code, ignoring HTTP version. Here's a link to the patch:
18 June, 2009
Most Users Ever Online: 381
Currently Browsing this Page:
Rich Brown: 358
Matt Schlueter: 93
Don Johnson: 65
Guest Posters: 7
Newest Members:marktest, deatles50, ValeriaGoodriz, dapedPup, oapedPup, Margarettoimb
Moderators: Ben Miller: 1628
Administrators: Mark Barnes: 435