WordPress.org

Forums

Events Manager
[resolved] fatal error when activating plugin (21 posts)

  1. nicoblue
    Member
    Posted 1 year ago #

    Whenever I try to activate either the Events Manager or this similar plugin, I get:

    Fatal error: Call to undefined function get_home_path() in .../wp-admin/includes/misc.php on line 128

    I had Events Manager working fine until a while ago. Then tried to update to wp 3.6 and got the fatal error above for the first time. Rolled back to 3.5.2 manually, now I can't activate the plugin anymore.

    I'm on wp 3.5.2 with Buddypress 1.7.3 installed. Using a child theme with a simple layout.css file and header.php.

    What I have tried so far:
    - a manual re-install of wordpress via FTP
    - manual re-install of buddypress
    - reverting to default Twenty Eleven theme
    - disabling all other plugins

    Is it just a coincidence that the two plugins work with scheduled events? Could it be a time format issue?

    http://wordpress.org/plugins/events-manager/

  2. Marcus
    NetWebLogic Support
    Plugin Author

    Posted 1 year ago #

    we don't even use that function... do other plugins activate ok?

  3. mrppp
    Member
    Posted 1 year ago #

    don't know if this will help you
    http://www.effectivesitemarketing.com/error-updating-wordpress-to-version-3-5/

  4. nicoblue
    Member
    Posted 1 year ago #

    Marcus, yes, all other plugins activate ok.

    mrppp, thanks for the link, that's exactly what I had tried, and pinned down Events Manager as the plugin triggering the error. Strangely enough the plugin worked in the past.

  5. caimin_nwl
    NetWebLogic Support
    Posted 1 year ago #

    It's possible it could be theme related. If you switch to the default theme, do you get the same error when activating Events Manager?

  6. nicoblue
    Member
    Posted 1 year ago #

    Yes, same error no matter which theme I use.

  7. angelo
    NetWebLogic Support
    Posted 1 year ago #

    maybe you can try to turn-on WP_DEBUG or check your php logs to see if there's any other error.

  8. Marcus
    NetWebLogic Support
    Plugin Author

    Posted 1 year ago #

    just double check - you're doing this with all other plugins deactivated and using the default WP theme WHILST activating?

    if so, then I'd probably suggest re-installing WP itself.

  9. nicoblue
    Member
    Posted 1 year ago #

    Hi Marcus, just gave it another go. Yes, all other plugins are deactivated and yes, I'm using default WP theme. And I have re-installed WP 3.5.2 manually. No luck.
    Found this if it helps.
    Nicola

  10. nicoblue
    Member
    Posted 1 year ago #

    Found also this which is a similar issue involving your plugin, two years ago.

  11. Marcus
    NetWebLogic Support
    Plugin Author

    Posted 1 year ago #

    i would say it's something to do with your specific WP install. otherwise we'd be getting this error reported by many more people. maybe an update to 3.6 may help

  12. Marcus
    NetWebLogic Support
    Plugin Author

    Posted 1 year ago #

    someone else reported a similar issue, but fixed it by order of activating EM first -

    http://wordpress.org/support/topic/fatal-error-on-fresh-install-2?replies=7

    if you can list your plugins too, maybe we find the culprit.

  13. nicoblue
    Member
    Posted 1 year ago #

    My list of plugins:
    Buddypress
    bbPress
    bbpress Like Butoon
    bp Xprofile shortcode (Bowe's codes)
    GD bbPress Attachments
    Buddypress Group Documents
    Store Locator Plus
    Formidable Forms
    Si-Captcha

  14. Marcus
    NetWebLogic Support
    Plugin Author

    Posted 1 year ago #

    I see one plugin you both have - BP Group Documents

    will look into that, please bear in mind this'll take longer than usual given it's a rare clash most likely related to another plugin.

  15. silvawebdev
    Member
    Posted 1 year ago #

    The issue is with the order the plugins are loaded. There is a thread on that - I just nuked the values in the active_plugins table with phpmyadmin and then enabled Events Manager first and enabled all the other plugins and it is working....

  16. lenasterg
    Member
    Posted 1 year ago #

    Hi all.
    I'm the developer of BP Group Documents plugin. I believe I have fixed it at version 1.3.
    Please give it a try and let me know if it works or not.

    Bests
    Lena

  17. lenasterg
    Member
    Posted 1 year ago #

    For the developer of EM.
    Since we have "green light" in another discussion thread for the fix in v1.3.

    In case you have the same error with other plugins, maybe you should also add the following in your plugin (don't know the exact location, you should put it), since you also use functions which are using get_home_path.

    // Makes sure the get_home_path function is defined before trying to use it
            if (!function_exists('get_home_path')) {
                require_once( ABSPATH . '/wp-admin/includes/file.php' );
            }
  18. Philip John
    Member
    Posted 1 year ago #

    Thanks for letting us know Lena!

  19. Marcus
    NetWebLogic Support
    Plugin Author

    Posted 1 year ago #

    Hey @lenasterg, thanks for updating the thread, much appreciated.

    It's been on my 'to debug' list for a while, glad I can cross it off ;)

  20. valerio_cas
    Member
    Posted 1 year ago #

    Not specific to this plugin but lenasterg's code helped me while developing a site. It didn't occur to me that get_home_path() was in a /wp-admin/ file, which are not included by default on the front end. I think the codex could be more clear about this.

  21. lenasterg
    Member
    Posted 1 year ago #

    @valerio_cas, I'm glad I helped you!!!

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Events Manager
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic