Title: Fatal Error: function get_home_path()
Last modified: August 22, 2016

---

# Fatal Error: function get_home_path()

 *  [Worona Team](https://wordpress.org/support/users/benuit/)
 * (@benuit)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/fatal-error-function-get_home_path/)
 * Hello,
 * I’ve added a script to my WordPress and i’m including it in the functions.php,
   it’s as simple as:
 * `require( get_home_path() . "/lib/server-type/server-type.php");`
 * But i have a problem with your plugin if, i deactivate it, i get a Fatal Error:
 * > **Fatal error:** Call to undefined function get_home_path() in /Applications/
   > MAMP/htdocs/worona-web/wp-content/themes/worona-theme/functions.php on line
   > 10
 *  The WordPress function get_home_path() only works while your plugin is activated.
   I’ve tryed it deactivating all the other plugins i have…
 * I’ve coded a fix:
 * `require( dirname(__FILE__) . "/../../.." . "/lib/server-type/server-type.php");`
 * But i would like to understand how your plugin can cause this problems while 
   it’s deactivated…
 * Hope you can help us,
 * Thanks to JSON API we’ve created [worona.org](http://www.worona.org) 🙂
 * [https://wordpress.org/plugins/json-rest-api/](https://wordpress.org/plugins/json-rest-api/)

The topic ‘Fatal Error: function get_home_path()’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/json-rest-api_2e3641.svg)
 * [WP REST API (WP API)](https://wordpress.org/plugins/json-rest-api/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/json-rest-api/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/json-rest-api/)
 * [Active Topics](https://wordpress.org/support/plugin/json-rest-api/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/json-rest-api/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/json-rest-api/reviews/)

## Tags

 * [dirname](https://wordpress.org/support/topic-tag/dirname/)
 * [fatal error](https://wordpress.org/support/topic-tag/fatal-error/)
 * [get_home_path](https://wordpress.org/support/topic-tag/get_home_path/)

 * 0 replies
 * 1 participant
 * Last reply from: [Worona Team](https://wordpress.org/support/users/benuit/)
 * Last activity: [11 years, 5 months ago](https://wordpress.org/support/topic/fatal-error-function-get_home_path/)
 * Status: not resolved