Forum

This forum is now read-only. Support is provided at https://wordpress.org/support/plugin/sermon-browser/

Please consider registering
guest

sp_LogInOut Log In sp_Registration Register

Register | Lost password?
Advanced Search

— Forum Scope —




— Match —





— Forum Options —





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

sp_Feed Topic RSS sp_TopicIcon
All links broken
9 February, 2013
1:32 pm
Justin Grice
Member
Members
Forum Posts: 9
Member Since:
13 August, 2012
sp_UserOfflineSmall Offline

Hi there!

What do I need to do to get Sermon Browser to work? At http://grovechurch.com/media/sermons/ the links when you click on the sermon title, series, book of the Bible, preacher, or service all lead to an error page.

11 February, 2013
12:50 am
Ben Miller
Appleton, WI, USA
Moderator
Members

Moderators
Forum Posts: 1628
Member Since:
18 June, 2009
sp_UserOfflineSmall Offline

Justin,

I'd like you to check some of Sermon Browser's options for me.  In the WordPress control panel, please go to Sermons, Options.  Tell me exactly what you have in the following boxes:

Upload folder
Public Podcast Feed
Private Podcast Feed

Ben Miller, Pathways Church, Appleton, Wisconsin, USA
Read the new FAQ, last updated 11/21/2013
Announcing version 0.45.12

11 February, 2013
8:09 pm
Justin Grice
Member
Members
Forum Posts: 9
Member Since:
13 August, 2012
sp_UserOfflineSmall Offline

Ben Miller said
Justin,

I'd like you to check some of Sermon Browser's options for me.  In the WordPress control panel, please go to Sermons, Options.  Tell me exactly what you have in the following boxes:

Upload folder
Public Podcast Feed
Private Podcast Feed

Upload folder: wp-content/uploads/sermons/

Public Podcast Feed: #?podcast

Private Podcast Feed: http://grovechurch.com/2011/02.....8/?podcast

11 February, 2013
8:38 pm
Ben Miller
Appleton, WI, USA
Moderator
Members

Moderators
Forum Posts: 1628
Member Since:
18 June, 2009
sp_UserOfflineSmall Offline

Justin,

I need you to re-save your Sermons page.  To do this, in the WordPress control panel, click on Pages, All Pages.  Find your page named "Sermons" in the list, and click the "Edit" link.  This is the page with the "sermons" shortcode on it.  Once you have the Edit Page screen up, click the "Update" button on the right side of the page.  You don't actually need to change anything, just hit "Update."

After you do that, go into the Sermon Browser options screen (Sermons, Options).  What do you now have for "Private Podcast Feed"?  Post back here and let me know, and I'll take another look at your site.

Ben Miller, Pathways Church, Appleton, Wisconsin, USA
Read the new FAQ, last updated 11/21/2013
Announcing version 0.45.12

11 February, 2013
8:49 pm
Justin Grice
Member
Members
Forum Posts: 9
Member Since:
13 August, 2012
sp_UserOfflineSmall Offline

Updated the sermons page. My private podcast feed shows: http://grovechurch.com/2011/02.....8/?podcast

11 February, 2013
9:35 pm
Ben Miller
Appleton, WI, USA
Moderator
Members

Moderators
Forum Posts: 1628
Member Since:
18 June, 2009
sp_UserOfflineSmall Offline

Justin,

I've seen this problem before, but up until now, I haven't had a fix for it.  I do have a theory and a potential fix.  Unfortunately, I can't test it, because I don't have the problem on any of my sites.  If you would be willing to test this fix on your site, I would appreciate it, as would anyone else in the future that runs into this problem.

It requires a small change to the /wp-content/plugins/sermon-browser/sermon.php file.  Before you edit, back up the file.  Then, if something goes wrong, you'll be able to quickly restore the file and get your site back to its current state.

 

In sermon.php, around line 388, you'll find a function named sb_get_page_id( ).  Replace the entire function with the function you find here:

http://pastebin.com/1qqVepgk

 

After you've done this, post back here so I can take another look.

I don't know your skill level yet, so I don't know how comfortable you are at editing files, using FTP, etc.  If you have any questions or you need more information, please ask.

Ben Miller, Pathways Church, Appleton, Wisconsin, USA
Read the new FAQ, last updated 11/21/2013
Announcing version 0.45.12

12 February, 2013
2:31 am
Justin Grice
Member
Members
Forum Posts: 9
Member Since:
13 August, 2012
sp_UserOfflineSmall Offline

It worked! Thanks for the fix! Hope it helps others!

12 February, 2013
4:18 am
Ben Miller
Appleton, WI, USA
Moderator
Members

Moderators
Forum Posts: 1628
Member Since:
18 June, 2009
sp_UserOfflineSmall Offline

Great! I'm glad it worked.

I'm still trying to figure out what happened to get to that error.  Let me ask you this: when you were first setting up Sermon Browser on this site, did you by any chance first put the "sermons" shortcode on a Post instead of a Page?

Ben Miller, Pathways Church, Appleton, Wisconsin, USA
Read the new FAQ, last updated 11/21/2013
Announcing version 0.45.12

12 February, 2013
4:16 pm
Justin Grice
Member
Members
Forum Posts: 9
Member Since:
13 August, 2012
sp_UserOfflineSmall Offline

I'm not sure Ben. I set up that Sermon Browser years ago. I can tell you that it worked for a long while. I am no longer on staff at that church, but at some point while I've been gone it broke - probably at the time of a Wordpress upgrade because upgrading is about the only change they made to the site since then.

12 February, 2013
4:32 pm
Ben Miller
Appleton, WI, USA
Moderator
Members

Moderators
Forum Posts: 1628
Member Since:
18 June, 2009
sp_UserOfflineSmall Offline

Thanks for the info.

Well, anyway, here is my explanation, for anyone that is interested.  (Note: in my explanations, I will use the curly braces characters { } for shortcodes, even though shortcodes actually use square brackets.  The forum gets messed up sometimes when it sees shortcodes in square brackets.)

 

The situation Justin's site was in was that Sermon Browser thought that the link to the Sermons page (containing the {sermons} shortcode) was something like this:

grovechurch.com/2011/02/1098/

As a result, every link on the Sermons page went to that non-existent page.  The real Sermons page was at:

grovechurch.com/media/sermons/

 

Sermon Browser tries to figure out which page has the {sermons} shortcode by doing a search through all the WordPress pages/posts.  First it searches for pages/posts that have the unconditioned {sermon} or {sermons} shortcode, and uses that page.  If it can't find that, it then searches for shortcodes with options, such as {sermons service=2} or something like that, and uses the first one it finds.  Whatever page it ends up finding first, it uses that one as the master Sermons page, which it uses in all its links.

The problem on grovechurch.com was that it was finding some blog post that doesn't exist anymore.  Perhaps at some point, they mistakenly put the {sermons} shortcode on a blog post, then deleted it and put it on a Page.  For some reason, the old blog post never got purged from the database, and Sermon Browser was finding it.  Maybe it was in the Trash folder, I don't know.

In any case, the fix above adds a search that ignores blog posts, and only looks at WordPress Pages.  This search will happen first, and if it finds something, it will use it.  If it doesn't find anything, then the search gets expanded to include blog posts.

 

I would be very interested to hear if anyone else tries this fix for their website.  If you are having this problem, please post to the forum and let me know.

Ben Miller, Pathways Church, Appleton, Wisconsin, USA
Read the new FAQ, last updated 11/21/2013
Announcing version 0.45.12

Forum Timezone: Europe/London

Most Users Ever Online: 381

Currently Online:
14 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

Rich Brown: 358

Matt Schlueter: 93

Mindy: 72

Don Johnson: 65

anointed: 57

0be1: 55

Member Stats:

Guest Posters: 7

Members: 3188

Moderators: 1

Admins: 1

Forum Stats:

Groups: 1

Forums: 2

Topics: 1713

Posts: 7499

Newest Members:

marktest, deatles50, ValeriaGoodriz, dapedPup, oapedPup, Margarettoimb

Moderators: Ben Miller: 1628

Administrators: Mark Barnes: 435