WordPress.org

Ready to get started?Download WordPress

Forums

Fatal error: Call to undefined function get_home_path() (24 posts)

  1. lttb
    Member
    Posted 1 year ago #

    Hey,
    I tried to update my WordPress to the newest version today and probably didn't think that through. Something obviously didn't go the way it was supposed to. Anyway, whenever I'm trying to get to the Dashboard now, the system returns
    Fatal error: Call to undefined function get_home_path() in wordpress/wp-admin/includes/misc.php on line 128

    Line 128 in misc.php is the following:
    $home_path = get_home_path();

    Any way to repair the damage, or do I have to roll back to my saved copy of all the files and hope for the best?

  2. blogcrafter_chris
    Member
    Posted 1 year ago #

    Had the same issue.
    If one of your updated plugins was ┬╗BackUpWordPress┬ź, you should remove/deactivate it. Seems that with recent version something is broken.

  3. Tom Willmot
    Human Made
    Posted 1 year ago #

    Chris, I'm the author of BackUpWordPress, was issue you we're seeing? I'm not aware of anything being broken in the latest version (2.1).

    BackUpWordPress doesn't call get_home_path(), that function is a built in WordPress function.

    lttb I'd recommend renaming your wp-content folder to force all your plugins and theme to deactivate and then see if you can access your site then. If so activate your plugins one at a time until the error appears.

  4. Joe Hoyle
    Human Made
    Posted 1 year ago #

    Tom: Didn't we also see this happen today with a site with backupwordpress / wpremote plugin on?

  5. blogcrafter_chris
    Member
    Posted 1 year ago #

    I only get the same weird Fatal errors in my error.log of nginx after the update of the plugin, and it was only this single plugin, nothing else changed.

    When I grep for the method in your plugin I see a function with same name defined by HM_Backup.
    I guess it is somehow related.

    I definitely can't activate the plugin without having a blank blog / errors in the log.

  6. Ruby Ryder
    Member
    Posted 1 year ago #

    Seemed to be caused by the update to the backup plugin.
    I can't access my website at all - here's my error code:
    Call to undefined function get_home_path() in /home/ecowater/public_html/peggingparadise.com/blog/wp-admin/includes/misc.php on line 128

  7. Tom Willmot
    Human Made
    Posted 1 year ago #

    Ah wait a minute,

    Backupwordpress does include misc.php to get access to the got_mod_rewrite function, maybe it's including it in places where get_home_path isn't defined.

    I'll do some more digging.

  8. Tom Willmot
    Human Made
    Posted 1 year ago #

    If your site is fatal error'ing, connecting via FTP and renaming the plugin should bring it back.

  9. blogcrafter_chris
    Member
    Posted 1 year ago #

    Found the other plugin which dislikes version 2.1 of BackUpWordPress: it's called OpenSearch.
    Interestingly you changed something (in the global scope?) that the OpenSearch plugin fails now, and it has something to do with rewrites.

    Maybe this stack trace helps a little bit:

    PHP Stack trace:
    PHP   1. {main}() /sites/<MYBLOG>/www/blog/index.php:0
    PHP   2. require() /sites/<MYBLOG>/www/blog/index.php:17
    PHP   3. require_once() /sites/<MYBLOG>/www/blog/wp-blog-header.php:12
    PHP   4. require_once() /sites/<MYBLOG>/www/blog/wp-load.php:29
    PHP   5. require_once() /sites/<MYBLOG>/www/blog/wp-config.php:27
    PHP   6. do_action() /sites/<MYBLOG>/www/blog/wp-settings.php:302
    PHP   7. call_user_func_array() /sites/<MYBLOG>/www/blog/wp-includes/plugin.php:403
    PHP   8. opensearch_flush_rewrite_rules() /sites/<MYBLOG>/www/blog/wp-includes/plugin.php:0
    PHP   9. WP_Rewrite->flush_rules() /sites/<MYBLOG>/www/blog/wp-content/plugins/opensearch/opensearch.php:46
    PHP  10. save_mod_rewrite_rules() /sites/<MYBLOG>/www/blog/wp-includes/rewrite.php:1944" while reading response header from upstream, client: <IP>, server: <MYBLOG>, request: "GET /comments/feed/ HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm/socket1.sock:", host: "<MYBLOG>"
  10. Tom Willmot
    Human Made
    Posted 1 year ago #

    Thanks, that does help.

    I think it must be caused by me including misc.php to early (before file.php which is where get_home_path() is defined).

    I'll release a fix for this tomorrow (it's midnight here :-).

  11. blogcrafter_chris
    Member
    Posted 1 year ago #

    No problem, it's 01:20 here at my place.
    And the OpenSearch plugin is also not so important for me (actually it was broken in my blog anyway :D).

  12. glenbelt
    Member
    Posted 1 year ago #

    My site stopped working after installing the latest version of the plugin too. Deactivated it and its working again now.

  13. lttb
    Member
    Posted 1 year ago #

    Disabling the plugin did help.
    Thanks a lot guys!

  14. youritworks
    Member
    Posted 1 year ago #

    Chris - thanks removed >>BackUpWordPress<< plugin and site returned to normal.

    Tom Willmot - I was notified of new update to >>BackUpWordPress<< so applied and site went down manually delete through FTP site as could not get access any other way and site came back up.

  15. Ruby Ryder
    Member
    Posted 1 year ago #

    "If your site is fatal error'ing, connecting via FTP and renaming the plugin should bring it back."

    Thanks Tom - did exactly this.

  16. treatsun
    Member
    Posted 1 year ago #

    deleting it worked for me too. thank you for the great help.

  17. Arfa__
    Member
    Posted 1 year ago #

    Yep ditto. One site totally died, no output, just the said error in the log file.
    Another site did work however, but anything that relied on Curl failed. e.g. Google Analytics dashboard plugin and facebook post publish.
    Disabled plugin in both instances and all is good now.

  18. swaddington
    Member
    Posted 1 year ago #

    Same issue this morning with my site.Found this post via Google. Renamed the backupwordpress plug-in via FTP. Now back online. Thanks for responses guys especially Tom.

  19. adroidman
    Member
    Posted 1 year ago #

    Updating to the newest version also broke it for me. When can we expect a fix?

  20. Tom Willmot
    Human Made
    Posted 1 year ago #

    Hey all, I'll be releasing a new version today which fixes this issue (and a couple of others).

  21. Tom Willmot
    Human Made
    Posted 1 year ago #

    I've just released version 2.1.1 which fixes this error.

    Please test it and report back here so I know I've squashed it :-).

  22. Ruby Ryder
    Member
    Posted 1 year ago #

    Updated and reactivated plug-in and it seems to be perfect.

    Thanks very much for your attention to this and all your help. You rock.

  23. blogcrafter_chris
    Member
    Posted 1 year ago #

    Late feedback from my side: It's working!

  24. lienja1
    Member
    Posted 1 year ago #

    Thanks for this post - manually deleted this plugin. Will try uploading the new one. Many thanks!

Topic Closed

This topic has been closed to new replies.

About this Topic