Support Forum
Thank you so much for that filter. Unfortunately, I shouldn't have created a new theme before morning coffee. I used the Default theme and missed renaming default.php under styles. This now has caused an error loop I can't get rid off.
Here's what I initially did: I copied the default theme, added the filter to spFunctions.php, renamed the folder to default-mod, edited spTheme.txt and changed Theme Title to Default-mod, uploaded, activated. Bad mistake. At first things worked great. Then, upon logging out and trying to log back in, the entire site came up blank.
I immediately removed my default-mod theme. I could log in again. Going to themes under SP now yielded the following message:
Current Theme
The current theme stylesheet:
/problem-with-post-edit-buttonome/decor8sh/public_html/eclasses/blog/wp-content/sp-resources/forum-themes/default-updated/styles/default.php
cannot be found. Please correct or select a new theme for proper operation.
However, there was no other theme to select, it didn't even pull the still existing default theme.
In order to fix things somewhat I had to re-install my broken theme, activate it, then default became available again, activate that and delete default-mod again. Without deleting default-mod the forum wouldn't work at all.
So now I've created a new theme called default-edited, making sure I rename default.php to default-edited, uploaded, activated - and was presented again with:
Current Theme
The current theme stylesheet:
/problem-with-post-edit-buttonome/decor8sh/public_html/eclasses/blog/wp-content/sp-resources/forum-themes/default-updated/styles/default.php
cannot be found. Please correct or select a new theme for proper operation.
Every new theme I've tried creating since comes back with that one error message. The only theme I can now use is default. Very sorry about this but how do I start over?
Right, I've taken a stupid pill. So I missed another thing, rename Stylesheet: Default in spTheme.txt. Scratch all that previous blah blah, I did RTFM thoroughly now (yes, it's easy to follow).
Now all is well again with the themes.
But, adding your filter into my new, correctly modded, theme still causes the entire site to come up blank once I log out. While I am logged in everything is fine. Log out > site goes blank. So then I have to remove my modded theme via FTP, log in, go to SP themes, get error message, no default theme available to chose, need to upload my modded theme again and now I can see default as well and activate that. Then delete modded theme. Right. Aside from a lot of unnecessary words from my side (RTFM) and excellent replies from yours I am still stuck.
A minor detail perhaps but I think it's worth mentioning: I had to click Activate Theme twice (sound familiar?) to activate my edited theme. Though I only had to click once to make Default active again.
Also, checked my error log which pointed me to sf_errorlog. So I did one more theme switching and this is what shows up in sf_errorlog at the same time:
file: /simple-press/sp-startup/site/sp-ahah-handler.php<br />line: 21<br />function: Unavailable<br />Warning | Cannot modify header information - headers already sent by (output started at /problem-with-post-edit-buttonome/decor8sh/public_html/eclasses/blog/wp-content/sp-resources/forum-themes/default-updated/templates/spFunctions.php:55)
The error message suggests a problem with your coding in the function template file. Where and how did you add the code? If at the end of the file - did you leave any white space after the closing php tag because that can cause issues like this... Or - conversely, if you added it at the top you must leave no trailing space before the php tag. Could that be it?
YELLOW
SWORDFISH
|
Thank you, that was the issue. There was a white space after the closing tag. Removed that and tried again - now it works.
For the time being I have removed tinymce from the signature box. This works well as the tutorial video I put together for the students was done with a previous version of SP that did not have this feature.
This buys me time to do focused troubleshooting once class concludes. If all else fails I might just have to wipe my install and do over with a clean one.
Thank you again for all your help, very much appreciate it.
Yes, I did. I removed google jQuery and deactivated tinymce advanced. I also deactivated a few other plug-ins afterwards. No matter what, it didn't help. I even switched to the Twenty Twelve WP theme while tinymce advanced was deactivated.
I am rather confused at this point. Especially since now that I created a modified theme I suddenly have to click Activate Theme in SP twice before it takes. If you still have the login I provided feel free to give it a go and see what I mean. My error_log says the following upon switching themes:
PHP Fatal error: Cannot redeclare spdefault_textdomain() in /problem-with-post-edit-buttonome/decor8sh/public_html/eclasses/blog/wp-content/sp-resources/forum-themes/default-updated/templates/spFunctions.php on line 30
That error is because you have not altered the name of the text domain (for translations) to match your custom theme. I believe that covered is in the custom theme instructions. It will only occur when you activate a different theme with the same text domain name (i.e., 'spdefault').
YELLOW
SWORDFISH
|
if you didnt have the default theme, it wouldnt be mandatory... some users remove the themes they are not using... but still, a fair statement...
Visit Cruise Talk Central and Mr Papa's World
1 Guest(s)