Title: undefined function get_home_path()
Last modified: May 18, 2018

---

# undefined function get_home_path()

 *  [scorpiozzo](https://wordpress.org/support/users/scorpiozzo/)
 * (@scorpiozzo)
 * [8 years ago](https://wordpress.org/support/topic/undefined-function-get_home_path/)
 * Hello everyone,
    Since i update my local environnement to the WP new version 
   i have this error :
 * Uncaught Error: Call to undefined function get_home_path() wp-admin/includes/
   misc.php:204
 * I try deactivate plugins one by one and when i deactivate MailPoet my WP finnaly
   worked.
 * What did i do to fix this issue ?
 * WP version : 4.9.6
    Mailpoet version : 3.7.2 OS: MAC Apache/2.2.32 PHP/7.1.8
 * Stack trace :
 * Uncaught Error: Call to undefined function get_home_path() in /wp-admin/includes/
   misc.php:204
    Stack trace: #0 /wp-includes/class-wp-rewrite.php(1775): save_mod_rewrite_rules()#
   1 /wp-includes/class-wp-hook.php(286): WP_Rewrite->flush_rules(true) #2 /wp-includes/
   class-wp-hook.php(310): WP_Hook->apply_filters(NULL, Array) #3 /wp-includes/plugin.
   php(453): WP_Hook->do_action(Array) #4 /wp-settings.php(471): do_action(‘wp_loaded’)#
   5 /wp-config.php(94): require_once(‘/Applications/M…’) #6 /wp-load.php(37): require_once(‘/
   Applications/M…’) #7 /wp-admin/admin.php(31): require_once(‘/Applications/M…’)#
   8 /wp-admin/plugins.php(10): require_once(‘/Applications/M…’) #9 in /wp-admin/
   includes/misc.php on line 204

Viewing 7 replies - 1 through 7 (of 7 total)

 *  [YuriV](https://wordpress.org/support/users/yuriv/)
 * (@yuriv)
 * [8 years ago](https://wordpress.org/support/topic/undefined-function-get_home_path/#post-10294412)
 * Same problem here: [https://core.trac.wordpress.org/ticket/44142](https://core.trac.wordpress.org/ticket/44142)
 * But didn’t find Mailpoet in the StackTrace so didn’t know it was a MailPoet-connected
   issue.
    -  This reply was modified 8 years ago by [YuriV](https://wordpress.org/support/users/yuriv/).
 *  Thread Starter [scorpiozzo](https://wordpress.org/support/users/scorpiozzo/)
 * (@scorpiozzo)
 * [8 years ago](https://wordpress.org/support/topic/undefined-function-get_home_path/#post-10294493)
 * Ok this [solution](https://core.trac.wordpress.org/ticket/44142) fix the problem
   but this is risky to update wp core file…
 * But this does not explains why my WP throw this error only when i activate MailPoet
 *  [YuriV](https://wordpress.org/support/users/yuriv/)
 * (@yuriv)
 * [8 years ago](https://wordpress.org/support/topic/undefined-function-get_home_path/#post-10294585)
 * I know, we don’t want to edit core and shouldn’t have to. I hope Mailpoet will
   dive into this ASAP.
 *  Moderator [Jonathan Desrosiers](https://wordpress.org/support/users/desrosj/)
 * (@desrosj)
 * Principal Software Engineer & WordPress Core Committer
 * [8 years ago](https://wordpress.org/support/topic/undefined-function-get_home_path/#post-10296262)
 * [@scorpiozzo](https://wordpress.org/support/users/scorpiozzo/), can you provide
   a list of all plugins you had active before attempting the upgrade? It will help
   us cross reference with a few other users experiencing a similar issue!
 *  [Wysija](https://wordpress.org/support/users/wysija/)
 * (@wysija)
 * [8 years ago](https://wordpress.org/support/topic/undefined-function-get_home_path/#post-10296655)
 * [@scorpiozzo](https://wordpress.org/support/users/scorpiozzo/), [@yuriv](https://wordpress.org/support/users/yuriv/),
 * Thank you for the issue report.
 * Indeed, we have seen a few issue reports, and we and the WordPress Core team 
   are looking into fixing this issue ([https://core.trac.wordpress.org/ticket/44142](https://core.trac.wordpress.org/ticket/44142)).
 * If possible, please downgrade your MailPoet 3.7.2 version to 3.7.1 – doing so
   should allow your site to work again.
    You can download it here: [https://downloads.wordpress.org/plugin/mailpoet.3.7.1.zip](https://downloads.wordpress.org/plugin/mailpoet.3.7.1.zip)
   Simply remove MailPoet 3.7.2 contents from wp-content/plugins/mailpoet and upload
   MailPoet 3.7.1 files from the zip.
 * We will have a fix released next week.
 * If you have any other questions – please let us know.
 *  [matzen2000](https://wordpress.org/support/users/matzen2000/)
 * (@matzen2000)
 * [8 years ago](https://wordpress.org/support/topic/undefined-function-get_home_path/#post-10331807)
 * Hi, I had the same Problems. Whole Error on my side. Delete MailPoet folder solved
   the problem. Uploding MailPoet371 brings problems and was not working.
    When 
   is the problem fixed to use MailPoet without Problems?
 * regards, MK
 *  [yanjuadmin](https://wordpress.org/support/users/yanjuadmin/)
 * (@yanjuadmin)
 * [8 years ago](https://wordpress.org/support/topic/undefined-function-get_home_path/#post-10372711)
 * Here’s my own stacktrace. This happens when I try to load my url (yanjuhub.com)
   and dashboard so how can I provide the list of my active plugins to find where
   the problem is? WP version 4.9.6 and host is hostgator. Can I also contact host
   company to downgrade WP version?
 * Fatal error: Uncaught Error: Call to undefined function get_home_path() in /home4/
   ps4ygtud/public_html/wp-admin/includes/misc.php:204 Stack trace: #0 /home4/ps4ygtud/
   public_html/wp-includes/class-wp-rewrite.php(1775): save_mod_rewrite_rules() #
   1 /home4/ps4ygtud/public_html/wp-content/plugins/pods/classes/PodsInit.php(1137):
   WP_Rewrite->flush_rules() #2 /home4/ps4ygtud/public_html/wp-includes/class-wp-
   hook.php(286): PodsInit->flush_rewrite_rules(”) #3 /home4/ps4ygtud/public_html/
   wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters(NULL, Array) #4 /home4/
   ps4ygtud/public_html/wp-includes/plugin.php(453): WP_Hook->do_action(Array) #
   5 /home4/ps4ygtud/public_html/wp-settings.php(471): do_action(‘wp_loaded’) #6/
   home4/ps4ygtud/public_html/wp-config.php(89): require_once(‘/home4/ps4ygtud…’)#
   7 /home4/ps4ygtud/public_html/wp-load.php(37): require_once(‘/home4/ps4ygtud…’)#
   8 /home4/ps4ygtud/public_html/wp-blog-header.php(13): require_once(‘/home4/ps4ygtud…’)#
   9 /home4/ps4ygtud/public_html/index.php(17): require(‘/home4 in /home4/ps4ygtud/
   public_html/wp-admin/includes/misc.php on line 204

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘undefined function get_home_path()’ is closed to new replies.

 * ![](https://ps.w.org/mailpoet/assets/icon-256x256.png?rev=3284564)
 * [MailPoet - Newsletters, Email Marketing, and Automation](https://wordpress.org/plugins/mailpoet/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/mailpoet/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/mailpoet/)
 * [Active Topics](https://wordpress.org/support/plugin/mailpoet/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/mailpoet/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/mailpoet/reviews/)

 * 7 replies
 * 6 participants
 * Last reply from: [yanjuadmin](https://wordpress.org/support/users/yanjuadmin/)
 * Last activity: [8 years ago](https://wordpress.org/support/topic/undefined-function-get_home_path/#post-10372711)
 * Status: not resolved