Enthu Collective to show in WordPress

Home Forums Scripts Enthusiast Enthu Collective to show in WordPress

This topic contains 2 replies, has 3 voices, and was last updated by  Emmita 1 year, 7 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #13979

    SimplyTragic
    Participant

    When I add my enthu php code in my Main Index Template(index.php) in my theme folder, nothing shows up. I’ve had this problem before and I found a tutorial for it, but it’s since been taken down.

    I get this error:

    Code:
    HP Fatal error: Cannot redeclare get_ancestors() (previously declared in /home/PATH/public_html/wp/wp-includes/taxonomy.php:3105) in /home/PATH/public_html/admin/mod_categories.php on line 232

    I know I need to change something for my collective stats to show up, but not sure what I should change.

    Any help wpu;d be fantastic. :D BTW: PATH has been added by me, so its not a mistake, but you probably already knew that. :D

    #14962

    Vera
    Participant

    Your problem is that you include 2 files and in each of them you have a function called get_ancestors() – one file is a WP one and the other is an Enthusiast one. So the script doesn’t know which one to use.

    The solution is to rename one of these function, to avoid conflict. Take care however to change the name in every place that this function is called too… otherwise everything’ll break.

    #14963

    Emmita
    Participant

    Enthusiast 3.1.6 take care of this problem. https://github.com/angelasabas/enthusiast/blob/master/changelog.txt

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.