Call to undefined function get_home_path()
-
Hello,
I am facing a pretty strange error with this plugin (with no clear reproduction pattern) in my WP Multisite project. I am using the “Pro version” but I don’t think it change anything regarding the issue itself.
I am facing the following fatal error :
Call to undefined function get_home_path()
I’ve found this similar issue: https://www.ads-software.com/support/topic/fatal-error-uncaught-error-using-with-litespeed/, however, I am not in the same context. I am not using LiteSpeed or anything similar.
I’ve wrote the following small patch that seem to fix the issue. I am however not sure if it as other side effects.
# Call to undefined function get_home_path() --- wp-content/plugins/wp-force-ssl/inc/wp-force-ssl-status-tests.php +++ wp-content/plugins/wp-force-ssl/inc/wp-force-ssl-status-tests.php @@ -693,7 +693,7 @@ return false; } - if (!is_writable(get_home_path() . '.htaccess')) { + if (!is_writable(ABSPATH . '.htaccess')) { return array('status' => 'warning'); }
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Call to undefined function get_home_path()’ is closed to new replies.