Home › Forums › WoodMart support forum › Error on “wc-user-functions.php:224”
Error on “wc-user-functions.php:224”
- This topic has 6 replies, 3 voices, and was last updated 1 week, 6 days ago by Fdesign.
May 25, 2023 at 10:56 am #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
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
#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…’)
Thank you for you attention, regards.May 25, 2023 at 11:20 am #469855
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:
Elementor/WPBakery page builder
Thank you in advanceMay 25, 2023 at 12:55 pm #469883
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.May 25, 2023 at 3:15 pm #469932
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 RegardsMay 25, 2023 at 3:37 pm #469939
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 email@example.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.
RegardsMay 25, 2023 at 3:45 pm #469946
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 RegardsMay 25, 2023 at 4:30 pm #469970
Ok, thank you, we are updating all sites, let’s see if we are going to receive again the error email.
- You must be logged in to create new topics. Login / Register