WPIntell

Source evidence

Call to undefined function get_home_path()

WP Force SSL & HTTPS SSL Redirect · support · 2023-09-05T10:04:00+00:00

mixedsentiment
highseverity
0.95relevance
3replies
Evidence linked to opportunitycommercial context

Proof Health

Open evidence

Commercial opportunities need traceable source links before they are treated as build-worthy.

5 / 16 rows with source links

31.2% of this page's analysis has direct source links.

0 build-decision rows missing links

0 rows here require auditable proof before promotion.

11 rows with no attached evidence

0 rows have source counts but still need direct links.

Conversation

support
jeremieanderlin resolved
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://wordpress.org/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'); } Hi, You’re using the latest version of WP and the plugin? Hello, Yes, I am using the last releases. WordPress : 6.3.1 Plugin : 5.31 I haven’t yet tested it in the production environment though. Currently, I am facing the issue in my dev environment (based on Lando). Also, strangely, the issue seems to appear only when I am already logged in. As anonymous, it isn’t the case. Since you are using the PRO version, we have pushed an update for that which will hopefully fix it (version 5.32). This forum is only for the free version though so if you have any other questions or issues please contact us through the website or the support widget in the plugin.

Comments

3 shown
WebFactory 2023-09-07T08:38:00+00:00

Hi, You’re using the latest version of WP and the plugin?

jeremieanderlin 2023-09-07T08:54:00+00:00

Hello, Yes, I am using the last releases. WordPress : 6.3.1 Plugin : 5.31 I haven’t yet tested it in the production environment though. Currently, I am facing the issue in my dev environment (based on Lando). Also, strangely, the issue seems to appear only when I am already logged in. As anonymous, it isn’t the case.

Alexandru Tapuleasa 2023-09-08T08:26:00+00:00

Since you are using the PRO version, we have pushed an update for that which will hopefully fix it (version 5.32). This forum is only for the free version though so if you have any other questions or issues please contact us through the website or the support widget in the plugin.