• Resolved rapunzel

    (@rapunzel)


    I upgraded my site to 3.1 and now my fanlisting statistics are giving me a fatal error. I don’t even know what it means to be honest.

    Fatal error: Cannot redeclare get_ancestors() (previously declared in /home/girldete/public_html/wp-includes/taxonomy.php:3055) in /home/girldete/public_html/fantasycollective.info/admin/mod_categories.php on line 225

    The mod_categories.php file is from the script Enthusiast for fanlisting management. But unfortunately, I have no idea what it’s even talking about in the error.

    My site is: https://girldetective.org
    But all my fanlistings are hosted under my other domain which is at https://fantasycollective.info. I have not upgraded WordPress for that site yet. Not sure I want to after it messed up girldetective.org.

Viewing 9 replies - 1 through 9 (of 9 total)
  • esmi

    (@esmi)

    Your upgrade did not complete successfully.

    Try:
    – switching to the Twenty Ten theme by renaming your current theme’s folder in wp-content/themes using FTP or whatever file management application your host provides. You may need to try logging into your site to get this to kick in fully.

    resetting the plugins folder by FTP or phpMyAdmin.

    – re-running the upgrade manually.

    Thread Starter rapunzel

    (@rapunzel)

    I’m sorry but how is that going to fix the problem? I don’t understand. How is that related to my plugins? The script that is giving the error isn’t a plugin on WordPress. At least, I don’t understand why WP would be giving me an error related to a script that isn’t directly involved with WP.

    Also, I used the WP Automatic Upgrade plugin to do it for me. I’m pretty sure it said it completed the upgrade successfully(?).

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    I used the WP Automatic Upgrade plugin

    Yeeeaah. Don’t. That plugin is not needed since 2.8 or so, and can cause major problems. Like you’re seeing.

    1) Try a manual upgrade
    2) Try resetting the plugins (as Esmi said)

    Thread Starter rapunzel

    (@rapunzel)

    Okay well I’ve tried to reupload manually, but my connection dies every five seconds during file transfer. I’m not sure if it’s my actual internet connection or my host having downtime or what, but it’s impossible for me to do a manual update at this time.

    Actually this is the first time I’ve had a problem using the automatic upgrade plugin. Whatever the last update before 3.1 – never had a problem. I updated to 3.1 today and now I’m having problems. How can I downgrade? Is that even possible without having to delete the entire installation.

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    Just because you never had a problem with the plugin, doesn’t mean you should be doing it ?? Now you know.

    Okay well I’ve tried to reupload manually, but my connection dies every five seconds during file transfer. I’m not sure if it’s my actual internet connection or my host having downtime or what, but it’s impossible for me to do a manual update at this time.

    Can you get in via SSH and do it that way? If your connection is dying, though, you’re not going to be able to downgrade anyway. Which you shouldn’t do unless you have a DB backup of the 3.0.5 version. Otherwise, get your connection woes sorted and upgrade.

    costinsilviu

    (@costinsilviu)

    i had the same problem until 3.0
    you need to set permissions to your host.
    you should go to the host file manager and set permission to 777 on all files…or something like that …dont remember exactly..but since then i dont get any error aain while upgrading …plugin, theme, wordpress version…or installing anything

    Thread Starter rapunzel

    (@rapunzel)

    Okay I was able to upload all the files manually through FTP, but the problem still persists.

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    rapunzel – You’re going to hate me.

    GIVEN that you were experiencing timeouts, there REMAINS the possibility that your files did not all update correctly. You should delete wp-admin and wp-includes (yes, the whole folders) and reupload them.

    Thread Starter rapunzel

    (@rapunzel)

    Hate to tell everyone on here that they were wrong, but I received a solution elsewhere and this is what the actual issue was. See I knew my wordpress files were in fact uploaded correctly to begin with! I appreciate the help though.

    Looks like they renamed a few functions in WordPress which have the same names as functions in Enthusiast, so both scripts won’t work together. There was a similar error before with other functions, and the best would be to rename the Enth’s get_ancestors() function to get_enth_ancestors() or something. You simply have to rename the function in every file it’s appearing in:

    categories.php (4 times)
    joined.php (3 times)
    mod_categories.php (1 time)
    mod_setup.php (1 time)
    show_joined.php (3 times)
    show_stats.php (1 time)

    These are all files of your admin panel of Enth. If every appearance of get_ancestors has been renamed to get_enth_ancestors for example, both scripts should work together again.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘3.1 gives me a fatal error’ is closed to new replies.