Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
general-topic
Update Signature - need to click twice to stick. TinyMCE plugin issue?
Avatar
Thorsten B
Member
sp_UserOfflineSmall Offline
Mar 3, 2013 - 2:38 am

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?

Avatar
Thorsten B
Member
sp_UserOfflineSmall Offline
Mar 3, 2013 - 3:06 am

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.

Avatar
Thorsten B
Member
sp_UserOfflineSmall Offline
Mar 3, 2013 - 3:38 am

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)

 

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Mar 3, 2013 - 5:52 am

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?

andy-signature.png
YELLOW
SWORDFISH
Avatar
Thorsten B
Member
sp_UserOfflineSmall Offline
Mar 3, 2013 - 6:07 am

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.

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Mar 3, 2013 - 6:18 am

Ah good. It is a common and misunderstood error.
By the way - did you ever actually try with the google jQuery gone AND the advanced plugin deactivted at the same time?

andy-signature.png
YELLOW
SWORDFISH
Avatar
Thorsten B
Member
sp_UserOfflineSmall Offline
Mar 3, 2013 - 7:05 am

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

 

 

 

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Mar 3, 2013 - 7:12 am

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').

andy-signature.png
YELLOW
SWORDFISH
Avatar
Thorsten B
Member
sp_UserOfflineSmall Offline
Mar 3, 2013 - 7:40 am

I see. That part was listed as not mandatory though it does go on to state that if not done it may lead to error messages when switching themes. Perhaps it should be mandatory then. In any case, that's all set now. No more errors.

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Mar 3, 2013 - 1:26 pm

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...

Forum Timezone: Europe/Stockholm
Most Users Ever Online: 1170
Currently Online:
Guest(s) 1
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Mr Papa: 19448
Ike: 2086
Brandon: 864
kvr28: 804
jim: 650
FidoSysop: 577
Conrad_Farlow: 531
fiddlerman: 358
Stefano Prete: 325
Member Stats:
Guest Posters: 619
Members: 17361
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10127
Posts: 79625