Support Forum

Simple Press 5.6 Fatal Error: Can't redecalre spDefault_textdomain()

JL joon lee
joon lee
Member
Fatal error: Cannot redeclare spDefault_textdomain() (previously declared in /home/seoultouchup/www/www/wp-content/sp-resources/forum-themes/touch-151220/templates/spFunctions.php:27) in /home/seoultouchup/www/www/wp-content/sp-resources/forum-themes/touch-forum/templates/spFunctions.php on line 28
 
 
——–
I just checked and the line 27 and 28 are these
 
# load the theme textdomain for tranlations
function spDefault_textdomain() {
    sp_theme_localisation(‘spDefault’);
}
 
———
 
Can you help? Thanks
 
——-
 
WordPress 4.4
Simple Press 5.6
 
 

1 Answer

New Answer

YS Yellow Swordfish
Yellow Swordfish
Member

If you followed the instructions on our codex for making a custom theme you would have read that you need to change the name of the text domain. You can see it there still named ‘sfDefault’. Just change the name to match your theme. Although after the old theme is completely deactivated the problem disappears .