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
Preacher Problem
6 September, 2011
12:01 pm
Rabbi Raphael Bearmant
Jerusalem
New Member
Forum Posts: 2
Member Since:
6 September, 2011
Offline

When I add a new preacher it IS added to the Database because his name appears in the combobox to choose from when I add a sermon but on the preacher page only the first preacher is visible. Could anyone help?
TIA

RB

7 September, 2011
1:29 pm
frankjp
Johannesburg, South Africa
New Member
Forum Posts: 1
Member Since:
7 September, 2011
Offline

I am having the exact same problem…… can anyone help?

9 September, 2011
6:08 pm
dierashaw
New Jersey, USA
New Member
Forum Posts: 1
Member Since:
9 September, 2011
Offline

I am having this problem too.

10 September, 2011
2:56 pm
mtrooze
New Member
Forum Posts: 1
Member Since:
10 September, 2011
Offline

I too am having this problem, but not only with preachers: it is also with services and sermon series as well. The lists consist of the first item – nothing added below that, which leaves me with no way to edit or delete the other entries.

UPDATE: I have fixed this problem by reverting to version 0.43.5. So if the developers have svn, the problem seems to reside in a change between then and now (10 Sept 2011).

I am still having no luck uploading files.

19 September, 2011
9:48 am
Rabbi Raphael Bearmant
Jerusalem
New Member
Forum Posts: 2
Member Since:
6 September, 2011
Offline

Could someone on the admin side address/fix this problem. I cant move on until this is done.
TIA

24 September, 2011
9:20 pm
tomwing
Myrtle Beach SC
Member
Forum Posts: 3
Member Since:
12 August, 2010
Offline

Rabbi Raphael Bearmant said:

When I add a new preacher it IS added to the Database because his name appears in the combobox to choose from when I add a sermon but on the preacher page only the first preacher is visible. Could anyone help?
TIA

RB

Same problem – i added preachers – they do not show up so i added again – then i had them multiple time and no way to delete – until you add a sermon then they show up – but if you want to delete someone you must delete the sermon first – then they don't show up to delete. i went into database and deleted them manually- but this should be fixed, eh?

22 October, 2011
6:06 pm
dreed75
New Member
Forum Posts: 2
Member Since:
22 October, 2011
Offline

The problem is in admin.php. They added code to display the number of sermons preached by a preacher but it broke something. I am not skilled in MYSQL so maybe someone can see what needs fixed but here is a temp fix to show all the preachers. It will just have a blank spot under "sermons" in the admin…

In admin.php, change the following line (near line 550):
$preachers = $wpdb->get_results("SELECT {$wpdb->prefix}sb_preachers.*, COUNT({$wpdb->prefix}sb_sermons.id) AS sermon_count FROM {$wpdb->prefix}sb_preachers LEFT JOIN {$wpdb->prefix}sb_sermons ON {$wpdb->prefix}sb_preachers.id=preacher_id GROUP BY preacher_id ORDER BY name ASC");

to:
$preachers = $wpdb->get_results("SELECT * FROM {$wpdb->prefix}sb_preachers ORDER BY name asc");

It turns out that a similar problem is there for the "Services" list. Here's how to fix that as well:

In admin.php, change the following line (near line 600):
$services = $wpdb->get_results("SELECT {$wpdb->prefix}sb_services.*, COUNT({$wpdb->prefix}sb_sermons.id) AS sermon_count FROM {$wpdb->prefix}sb_services LEFT JOIN {$wpdb->prefix}sb_sermons ON service_id = {$wpdb->prefix}sb_services.id GROUP BY service_id ORDER BY name ASC");

to:
$services = $wpdb->get_results("SELECT s.*, m.id AS mid FROM {$wpdb->prefix}sb_services AS s LEFT OUTER JOIN {$wpdb->prefix}sb_sermons AS m ON s.id = m.service_id ORDER BY s.name asc");

22 October, 2011
6:10 pm
dreed75
New Member
Forum Posts: 2
Member Since:
22 October, 2011
Offline

LOL, I just went searching to find more people with this problem to help them out and I found this guy already answered it with a better mySQL code (for the preachers anyway). See this post if you want to keep the sermon count.

http://www.sermonbrowser.com/f…..tly/#p3499

Also, using his fix as an example, the correct code for the "Services" should be:

$services = $wpdb->get_results("SELECT {$wpdb->prefix}sb_services.*, COUNT({$wpdb->prefix}sb_sermons.id) AS sermon_count FROM {$wpdb->prefix}sb_services LEFT JOIN {$wpdb->prefix}sb_sermons ON service_id = {$wpdb->prefix}sb_services.id GROUP BY id ORDER BY name ASC");

Forum Timezone: Europe/London

Most Users Ever Online: 40

Currently Online:
20 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:

Guest Posters: 7

Members: 2066

Moderators: 1

Admins: 1

Forum Stats:

Groups: 1

Forums: 2

Topics: 1071

Posts: 4045

Newest Members: Nixon Designs, zolaperry, tanec69, lbakyl, richdorm, Aaron Velasquez

Moderators: Ben Miller (387)

Administrators: Mark Barnes (425)

Comments are closed.