Home Forums WoodMart support forum Error on “wc-user-functions.php:224”

Error on “wc-user-functions.php:224”

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
  • #469849


    Good morning, we are receiving in the last 3 days a lot of errors from WordPress of different websites, all made using Woodmart (child site or not).
    Websites are normally online (some of them are under construction), but it seems to be a problem when the Admin try to login.
    We are contacting your support because the only common thing in the error is Woodmart (we have other e-commerce online, but the message is sent only from from those who has Woodmart installed).

    Here below some informations from the error email we received:

    Versione di WordPress 6.1.1
    Tema attivo: Woodmart (versione 7.1.4)
    Plugin corrente: WooCommerce (versione 7.4.1)
    Versione PHP 8.0.28

    Dettagli dell’errore
    Un errore di E_ERROR รจ stato causato nella linea 227 del file ….wp-content/plugins/woocommerce/includes/wc-user-functions.php. Messaggio di errore: Uncaught Error: Call to a member function init_session_cookie() on null in ….wp-content/plugins/woocommerce/includes/wc-user-functions.php:227
    Stack trace:
    #0 ….wp-content/plugins/woodmart-core/inc/auth.php(225): wc_set_customer_auth_cookie(2)
    #1 ….wp-content/plugins/woodmart-core/inc/auth.php(162): WOODMART_Auth->register_or_login(‘info@agoragioie…’, ”)
    #2 ….wp-includes/class-wp-hook.php(308): WOODMART_Auth->process_auth_callback(”)
    #3 ….wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters(true, Array)
    #4 ….wp-includes/plugin.php(517): WP_Hook->do_action(Array)
    #5 ….wp-settings.php(617): do_action(‘init’)
    #6 ….wp-config.php(94): require_once(‘/home/agoragiov…’)
    #7 ….wp-load.php(50): require_once(‘/home/agoragiov…’)
    #8 ….wp-admin/admin.php(34): require_once(‘/home/agoragiov…’)
    #9 ….wp-admin/index.php(10): require_once(‘/home/agoragiov…’)
    #10 {main}

    Thank you for you attention, regards.


    Artem Temos


    Please, disable all plugins that are not related to our theme and provide us with your admin access. We will log in and check what is wrong there. You can leave only the following plugins that are required for our theme:
    WoodMart core
    Elementor/WPBakery page builder

    Thank you in advance



    Ok, you have an admin access for a website we are still working for, so we don’t have to close an on-line ecommerce.
    The website is different as indicated in our first message, but the problem is the same.
    We didn’t disable only the “coming soon” plugin, but for a test you can disable it for a few minutes if necessary.

    Waiting for your reply, thank you.


    Artem Temos


    Make sure that you are running the latest version of the theme. Also, the WoodMart core plugin needs to be updated to the latest version 1.0.39 too. You can do this in WoodMart -> Plugins.

    Kind Regards



    Hello @Artem,

    Can we ask, what this problem is actually related to. We received the similar email contains same header lines – “…/includes/wc-user-functions.php:227”

    We are getting the same error message with similar line of codes including mail ID also something like info@yourdomain.com
    Can you please elaborate on this. As this will help many users who are running Woodmart version other than the latest one. This will help to understand the issue as well as make aware other users, so that they can update, until they receive such error messages, knowing about the cause and reason.



    Artem Temos


    Updating the theme to the latest version is critical because of vulnerabilities discovered in old versions. This issue should be solved after the update.

    Kind Regards



    Ok, thank you, we are updating all sites, let’s see if we are going to receive again the error email.

Viewing 7 posts - 1 through 7 (of 7 total)