• Resolved jeremieanderlin

    (@jeremieanderlin)


    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)
  • Plugin Author WebFactory

    (@webfactory)

    Hi,

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

    Thread Starter jeremieanderlin

    (@jeremieanderlin)

    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.

    Plugin Author Alexandru Tapuleasa

    (@talextech)

    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.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Call to undefined function get_home_path()’ is closed to new replies.