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 ??
- The topic ‘Fatal Error: function get_home_path()’ is closed to new replies.