Support Forum

Share This

27 Answers

New Answer

YS Yellow Swordfish
Yellow Swordfish
Member

Yes – a new linre.

But surely the parent name is RbtOTK ?

MW Michael Walden
Michael Walden
Member

OK. I went to clear the error log before I switch to the child theme and found this:

11/25/2017 2:28 am | spaErrError | 11 | database


file: /home/wp_t2rx8u/thelemicknights.org/wp-content/sp-resources/forum-plugins/rank-info/library/sp-rank-info-components.php
line: 58
function: spdb_table
error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ‘) AND admin=0’ at line 1

SELECT * FROM wp_cpm4sp_sfmembers WHERE (posts >= 0 AND posts < ) AND admin=0

 

I doubt this is related as I haven’t changed anything yet. Should I be worried?

MW Michael Walden
Michael Walden
Member

No, the parent name is Reboot here is the line in the file:

Parent: reboot

MW Michael Walden
Michael Walden
Member

Should there be a numeric value after  ‘AND Posts <‘ before the ‘)’?

MW Michael Walden
Michael Walden
Member

OK as far as the child theme goes everything appears to be working fine! I am assuming that I could, simply by editing those same lines in the template files make it so that only Topics and topic replies could be shared (versus sharing entire forums? Or just tell the other admins not to share anything but topics and replies LOL

YS Yellow Swordfish
Yellow Swordfish
Member

So what is ‘RbtOTK’ exactly? That text file suggested that this is the name of the parent theme which in turn suggested you had made a custom theme already…

Yes – if you want to restrict it to topics just comment out the calls in the other templates. You can place a # symbol in front of the code line to effectively remove it.

Now to that database/mySQL error. Yes there should be a number. Do you get this repeatedly? I.e., after clearing the error log does it return? I will try and find where it is being called from and why it might fail but it is an odd one…

MW Michael Walden
Michael Walden
Member

OK RbtOTK is short for Reboot OTK. It is just the name of the child theme I created from the Reboot Child Theme Framework. I followed what it told me to do in the Child Theme documentation. 

Here are the actual contents of the sptheme.txt file. You’ll note that the parent is reboot  🙂

Simple:Press Theme Title: RbtOTK
Parent: reboot
Version: 1.0.2
Theme URI: http://simple-press.com
Description: OTK Child Theme Based on Reboot
Author: Ike Staines, Andy Staines & Steve Klasen
Author URI: http://simple-press.com
Stylesheet: RbtOTK.css
Screenshot: spTheme.jpg
Simple:Press Versions: 5.5.5 and above

 

As to the error. It has only appeared once (the one I pasted in previously). I have cleared the log and will keep you updated.

 

Thank you so much! Lookit me all learning things n’ stuff 😉

YS Yellow Swordfish
Yellow Swordfish
Member

OK – looked into the SQL error.

Please go to the forum  admin > components > forum ranks. I suspect that the in the column labelled ‘# Posts For Rank’ you have an empty entry. While we should really check for this condition it would be worth your while just filling in any missing numbers – or removing entries if not required.

YS Yellow Swordfish
Yellow Swordfish
Member

We crossed posted there! On the theme name – understand now.

We will make a coder of you yet 🙂

MW Michael Walden
Michael Walden
Member

Yes, the Moderator rank had a blank number of posts field. The trashcan shows for the moderator rank but it does nothing when I click it. We do not currently have a need for a moderator rank so, since I could not remove it, I just set it to an ungodly high number of 50000.

Also, there is a blank row at the bottom of the ranks list. I’m assuming this is for adding new ranks when necessary.

And you’re right! You may just help make me a coder! haha! I rather like dinking around with the code 🙂

YS Yellow Swordfish
Yellow Swordfish
Member

A little disturbing that the trashcan icon does nothing. That suggests a JavaScript conflict with another plugin or your WP theme. Your large number entry will stop the error but if you notice any other things like the trashcan problem then come back and shout and we can investigate that.

Coding keeps those little grey cells from atrophy and can be really quite rewarding.

MW Michael Walden
Michael Walden
Member

I checked the log. No error, warning or anything else was added to the log due to the Trashcan icon not working. Not a huge deal at the moment, I’m old, I thought perhaps it was a default/required rank that couldn’t be removed and I don’t at this point remember adding it, though I likely did haha!) 

YS Yellow Swordfish
Yellow Swordfish
Member

Well if you notice anything else in the admin side that can’t be changed then please do shout…