Support Forum
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:
you didnt follow the directions for creating your own theme!
you have to update the localization stuff in spFunctions.php
http://codex.simple-press.com/.....g-a-theme/
step 5
Visit Cruise Talk Central and Mr Papa's World
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.
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
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...
Visit Cruise Talk Central and Mr Papa's World
just checked, I do, and it appears to be consistant with your own themes:
$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');
}
and the add_action() call??? what is the second arg? does it match spCommunityCustoms_spShowFontResize?
Visit Cruise Talk Central and Mr Papa's World