Support » Plugin: MailPoet Newsletters (New) » undefined function get_home_path()

  • scorpiozzo

    (@scorpiozzo)


    Hello everyone,
    Since i update my local environnement to the WP new version i have this error :

    Uncaught Error: Call to undefined function get_home_path() wp-admin/includes/misc.php:204

    I try deactivate plugins one by one and when i deactivate MailPoet my WP finnaly worked.

    What did i do to fix this issue ?

    WP version : 4.9.6
    Mailpoet version : 3.7.2
    OS: MAC
    Apache/2.2.32
    PHP/7.1.8

    Stack trace :

    Uncaught Error: Call to undefined function get_home_path() in /wp-admin/includes/misc.php:204
    Stack trace:
    #0 /wp-includes/class-wp-rewrite.php(1775): save_mod_rewrite_rules()
    #1 /wp-includes/class-wp-hook.php(286): WP_Rewrite->flush_rules(true)
    #2 /wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters(NULL, Array)
    #3 /wp-includes/plugin.php(453): WP_Hook->do_action(Array)
    #4 /wp-settings.php(471): do_action(‘wp_loaded’)
    #5 /wp-config.php(94): require_once(‘/Applications/M…’)
    #6 /wp-load.php(37): require_once(‘/Applications/M…’)
    #7 /wp-admin/admin.php(31): require_once(‘/Applications/M…’)
    #8 /wp-admin/plugins.php(10): require_once(‘/Applications/M…’)
    #9 in /wp-admin/includes/misc.php on line 204

Viewing 7 replies - 1 through 7 (of 7 total)
  • YuriV

    (@yuriv)

    Same problem here: https://core.trac.wordpress.org/ticket/44142

    But didn’t find Mailpoet in the StackTrace so didn’t know it was a MailPoet-connected issue.

    • This reply was modified 1 month ago by  YuriV.
    scorpiozzo

    (@scorpiozzo)

    Ok this solution fix the problem but this is risky to update wp core file…

    But this does not explains why my WP throw this error only when i activate MailPoet

    YuriV

    (@yuriv)

    I know, we don’t want to edit core and shouldn’t have to. I hope Mailpoet will dive into this ASAP.

    @scorpiozzo, can you provide a list of all plugins you had active before attempting the upgrade? It will help us cross reference with a few other users experiencing a similar issue!

    Plugin Author MailPoet

    (@wysija)

    @scorpiozzo, @yuriv,

    Thank you for the issue report.

    Indeed, we have seen a few issue reports, and we and the WordPress Core team are looking into fixing this issue (https://core.trac.wordpress.org/ticket/44142).

    If possible, please downgrade your MailPoet 3.7.2 version to 3.7.1 – doing so should allow your site to work again.
    You can download it here: https://downloads.wordpress.org/plugin/mailpoet.3.7.1.zip
    Simply remove MailPoet 3.7.2 contents from wp-content/plugins/mailpoet and upload MailPoet 3.7.1 files from the zip.

    We will have a fix released next week.

    If you have any other questions – please let us know.

    Hi, I had the same Problems. Whole Error on my side. Delete MailPoet folder solved the problem. Uploding MailPoet371 brings problems and was not working.
    When is the problem fixed to use MailPoet without Problems?

    regards, MK

    Here’s my own stacktrace. This happens when I try to load my url (yanjuhub.com) and dashboard so how can I provide the list of my active plugins to find where the problem is? WP version 4.9.6 and host is hostgator. Can I also contact host company to downgrade WP version?

    Fatal error: Uncaught Error: Call to undefined function get_home_path() in /home4/ps4ygtud/public_html/wp-admin/includes/misc.php:204 Stack trace: #0 /home4/ps4ygtud/public_html/wp-includes/class-wp-rewrite.php(1775): save_mod_rewrite_rules() #1 /home4/ps4ygtud/public_html/wp-content/plugins/pods/classes/PodsInit.php(1137): WP_Rewrite->flush_rules() #2 /home4/ps4ygtud/public_html/wp-includes/class-wp-hook.php(286): PodsInit->flush_rewrite_rules(”) #3 /home4/ps4ygtud/public_html/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters(NULL, Array) #4 /home4/ps4ygtud/public_html/wp-includes/plugin.php(453): WP_Hook->do_action(Array) #5 /home4/ps4ygtud/public_html/wp-settings.php(471): do_action(‘wp_loaded’) #6 /home4/ps4ygtud/public_html/wp-config.php(89): require_once(‘/home4/ps4ygtud…’) #7 /home4/ps4ygtud/public_html/wp-load.php(37): require_once(‘/home4/ps4ygtud…’) #8 /home4/ps4ygtud/public_html/wp-blog-header.php(13): require_once(‘/home4/ps4ygtud…’) #9 /home4/ps4ygtud/public_html/index.php(17): require(‘/home4 in /home4/ps4ygtud/public_html/wp-admin/includes/misc.php on line 204

Viewing 7 replies - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.