Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
themes-topic
theme just lost ALL formatting for no discernable reason
Avatar
nomis78
Member
Free Members
sp_UserOfflineSmall Offline
Apr 17, 2012 - 7:53 pm

hey guys my theme just entirely failed a resulted in the page outputting lookling like the attached image, the only thing that i am seeing is the following error appear in the yellow bar that fades out (that would usually say theme applied or similar) when switching out of the theme

"Fatal error: Cannot redeclare spcssonly_textdomain() (previously declared in /problem-with-post-edit-buttonome/nomis78/cc.nomcom.info/wp-content/sp-resources/forum-themes/Community Customs/templates/spFunctions.php:17) in /problem-with-post-edit-buttonome/nomis78/cc.nomcom.info/wp-content/sp-resources/forum-themes/css-only/templates/spFunctions.php on line 18"

and if i try and switch into the theme i get a white page with the following text

"Fatal error: Cannot redeclare spcssonly_textdomain() (previously declared in /problem-with-post-edit-buttonome/nomis78/cc.nomcom.info/wp-content/sp-resources/forum-themes/css-only/templates/spFunctions.php:17) in /problem-with-post-edit-buttonome/nomis78/cc.nomcom.info/wp-content/sp-resources/forum-themes/Community Customs/templates/spFunctions.php on line 18"

everything had been working fine up until this point and nothing had been change in the forum code to cause this. the theme is simple a variation upon the default CSS theme (renamed and new folder) which had our colours, removed 1 or 2 sections we didn't need (ie top posting members) and added the cube points read out.

that had been running table for a good couple of weeks before this happend so its not a theme fault that i have caused at least not as far as i can see :-/

Attached image:

Untitled-1.jpgImage Enlarger

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Apr 17, 2012 - 7:57 pm

you didnt follow the directions for creating your own theme! wink

you have to update the localization stuff in spFunctions.php

http://codex.simple-press.com/.....g-a-theme/

step 5

Avatar
Brandon
U.S.
SP Wrangler
Free Members
sp_UserOfflineSmall Offline
Apr 17, 2012 - 11:09 pm

It looks like you have reverted back to the regular cssonly theme. If you are still having issues when activating your Community Customs CSS theme and would like a second set of eyes to look at it I would be glad to.

You could zip up everything in your wp-content/sp-resources/forum-themes/Community Customs folder and PM it to me.

Avatar
nomis78
Member
Free Members
sp_UserOfflineSmall Offline
Apr 18, 2012 - 10:12 pm

Ok so i have managed to get it working again, but now the site is throwing out the following when the resize font plugin is activated

Warning: call_user_func_array() expects parameter 1 to be a valid callback, function 'spcssonly_spShowFontResize' not found or invalid function name in /problem-with-post-edit-buttonome/nomis78/cc.nomcom.info/wp-includes/plugin.php on line 405

ive tried uninstalling and reuploading the plugin but keep getting the same error

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Apr 18, 2012 - 10:20 pm

in your spFunctions.php, do you have a function called:  spcssonly_spShowFontResize

you need a function in there and and add action function call for it...   the name of the function and the second argument to do_action() need to be consistent...  see any of our themes for example...

Avatar
nomis78
Member
Free Members
sp_UserOfflineSmall Offline
Apr 20, 2012 - 10:25 am

just checked, I do, and it appears to be consistant with your own themes:

function spCommunityCustoms_spShowFontResize() {
$tipMinus = __sp('decrease forum font size');
$tipReset = __sp('reset forum font size');
$tipPlus = __sp('increase font size');
sp_FontResizer('tagClass=spFontSizeControl spRight', $tipMinus, $tipReset, $tipPlus);
sp_InsertBreak('direction-right');
}
Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Apr 20, 2012 - 10:34 am

and the add_action() call??? what is the second arg? does it match spCommunityCustoms_spShowFontResize?

Forum Timezone: Europe/Stockholm
Most Users Ever Online: 1170
Currently Online:
Guest(s) 1
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