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 delete series titles
3 February, 2012
7:19 pm
smitty
New Member
Forum Posts: 2
Member Since:
2 February, 2012
Offline

For some reason I can't delete series titles & service names I've created.  I have to use PHPMyAdmin to delete them, which isn't convenient for the client.  Any solutions would be appreciated.

4 February, 2012
5:06 pm
0be1
Alabama
Guru
Forum Posts: 55
Member Since:
24 January, 2012
Offline

Smitty;

 

From my understanding (I read somewhere maybe in this forum) that as long as there is Pastor tied to the series title, or service names, it cannot be removed. Have you tried taking the sermon offline or unlinking the file and then attempt to delete the info you want to?

Just some thoughts :o)

 

Blessings!!

 

Shawn

"Evangelism is not a professional job for a few trained men, but is instead the unrelenting
responsibility of every person who belongs to the company of Jesus." - Elton Trueblood
13 February, 2012
4:44 pm
saelwell
Dundee
New Member
Forum Posts: 1
Member Since:
13 February, 2012
Offline

Hi,

 

I am having the same problem – I can only delete either series or services by going into the back end database. If I create a service, I cannot delete it. This is a brand new installation. I have deleted (in the back end) all but one series, one preacher and one service. Everything else seems to work brilliantly well so far, with a few sermons uploaded and linked successfully, but this problem is odd and frustrating. It is not disastrous, but I'd appreciate any help anyone can give.

Thanks in advance,

Stephen

31 March, 2012
7:30 pm
Eric
Mississippi
New Member
Forum Posts: 2
Member Since:
31 March, 2012
Offline

Stephen,

 

I suspect you are using a newer version of WordPress.  I'm using 3.3.1 and I have the same problem you do. 

 

From what I can see:

Under "Preachers", only one preacher is displayed no matter how many are in the DB.

Under "Services & Series", only one service and series is displayed no matter how many are the DB.

 

I've created a patch / diff that may help – the problem appears to be in the MySQL query.

Modify sb-includes/admin.php

 

The modification is pretty simple -

change GROUP BY series_id to GROUP BY wp_sb_series.id

change GROUP BY service_id to GROUP BY wp_sb_services.id

change  GROUP BY preacher_id to GROUP BY wp_sb_preachers.id

 

Correct version is on the top (with < ), original is on the bottom (with >)

 diff sb-includes/admin.*
550c550
<       $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 wp_sb_preachers.id ORDER BY name ASC");

>       $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");
601,602c601,602
<       $series = $wpdb->get_results("SELECT {$wpdb->prefix}sb_series.*, COUNT({$wpdb->prefix}sb_sermons.id) AS sermon_count FROM {$wpdb->prefix}sb_series LEFT JOIN {$wpdb->prefix}sb_sermons ON series_id = {$wpdb->prefix}sb_series.id GROUP BY wp_sb_series.id ORDER BY name ASC");
<       $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 wp_sb_services.id ORDER BY name ASC");

>       $series = $wpdb->get_results("SELECT {$wpdb->prefix}sb_series.*, COUNT({$wpdb->prefix}sb_sermons.id) AS sermon_count FROM {$wpdb->prefix}sb_series LEFT JOIN {$wpdb->prefix}sb_sermons ON series_id = {$wpdb->prefix}sb_series.id GROUP BY series_id ORDER BY name ASC");
>       $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");
2578c2578

31 March, 2012
7:34 pm
Eric
Mississippi
New Member
Forum Posts: 2
Member Since:
31 March, 2012
Offline

Quick disclaimer:

 

I'm using WordPress 3.3.1, MySQL 5.1, PHP 5.3.3 on a CentOS 6 server with no control panel – all stock CentOS RPMs.

I make no guarantee that my suggested modification will work for you.  It may completely tank your site, server, house, and car..

 

I do hope that it helped.

11 May, 2012
3:45 pm
ccwebb
New Member
Forum Posts: 1
Member Since:
11 May, 2012
Offline

Eric said
Quick disclaimer:

 

I'm using WordPress 3.3.1, MySQL 5.1, PHP 5.3.3 on a CentOS 6 server with no control panel – all stock CentOS RPMs.

I make no guarantee that my suggested modification will work for you.  It may completely tank your site, server, house, and car..

 

I do hope that it helped.

I am on 3.3.2 and your patches worked for me!! Thanks

Later I found out about admin.php with all fixes – I installed it.

Forum Timezone: Europe/London

Most Users Ever Online: 40

Currently Online:
18 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: 2062

Moderators: 1

Admins: 1

Forum Stats:

Groups: 1

Forums: 2

Topics: 1071

Posts: 4042

Newest Members: richdorm, Aaron Velasquez, aaronv, dave5884, tomduckering, ccwebb

Moderators: Ben Miller (386)

Administrators: Mark Barnes (425)

Comments are closed.