Error /wp-content/plugins/woocommerce/includes/wc-core-functions.php:1353
-
Hi
I am getting an critical error when I move my webiste from test domain and server into other domain and server. Sometimes the error shows up and sometimes it doesn’t show up at all.
PHP Fatal error: Uncaught Error: Call to a member function get_allowed_countries() on null in /home4/benzfami/mywebsite.com/wp-content/plugins/woocommerce/includes/wc-core-functions.php:1353
Same PHP – 7.4
Any ideas what might be causing this?
[Moderator note: Please, No bumping
https://www.ads-software.com/support/guidelines/#do-not-bump-posts”%5B-
This topic was modified 2 years, 1 month ago by
Yui.
-
This topic was modified 2 years, 1 month ago by
Steven Stern (sterndata).
-
This topic was modified 2 years, 1 month ago by
-
Hi @andrzej13
Thanks for reaching out!
I understand that you received the error message above when you moved your website from the test domain and server into another domain and server.
Can you please share how was the migration process?
Additionally, I’d like to understand your site properly, please share your System Status Report that you can find via
WooCommerce > Status
. SelectGet system report
and thenCopy for support
. Once you’ve done that, you can paste it into your reply here.If you could also provide the fatal error logs (if any) under
WooCommerce > Status > Logs
.Thanks!
So, at first i try to migrate like always, with Updraft Plus, and it show me error.
I’ll try it 3 times, same happen.
Next i try with premium version of Duplicator, same problem.
System Raport
` ### WordPress Environment ### WordPress address (URL): https://www.benzfamilia.com Site address (URL): https://www.benzfamilia.com WC Version: 6.8.2 REST API Version: ?</img> 6.8.2 WC Blocks Version: ?</img> 8.0.0 Action Scheduler Version: ?</img> 3.4.0 Log Directory Writable: ?</img> WP Version: 6.1.1 WP Multisite: – WP Memory Limit: 256 MB WP Debug Mode: – WP Cron: ?</img> Language: pl_PL External object cache: – ### Server Environment ### Server Info: LiteSpeed PHP Version: 7.4.33 PHP Post Max Size: 128 MB PHP Time Limit: 30 PHP Max Input Vars: 1000 cURL Version: 7.84.0 OpenSSL/1.1.1p SUHOSIN Installed: – MySQL Version: 10.3.37-MariaDB Max Upload Size: 128 MB Default Timezone is UTC: ?</img> fsockopen/cURL: ?</img> SoapClient: ?</img> DOMDocument: ?</img> GZip: ?</img> Multibyte String: ?</img> Remote Post: ?</img> Remote Get: ?</img> ### Database ### WC Database Version: 6.8.2 WC Database Prefix: wp_ Ca?kowity rozmiar bazy danych: 33.01MB Rozmiar bazy danych: 28.70MB Rozmiar indeksu bazy danych: 4.31MB wp_woocommerce_sessions: Dane: 0.08MB + Indeks: 0.02MB + Silnik InnoDB wp_woocommerce_api_keys: Dane: 0.02MB + Indeks: 0.03MB + Silnik InnoDB wp_woocommerce_attribute_taxonomies: Dane: 0.02MB + Indeks: 0.02MB + Silnik InnoDB wp_woocommerce_downloadable_product_permissions: Dane: 0.02MB + Indeks: 0.06MB + Silnik InnoDB wp_woocommerce_order_items: Dane: 0.02MB + Indeks: 0.02MB + Silnik InnoDB wp_woocommerce_order_itemmeta: Dane: 0.02MB + Indeks: 0.03MB + Silnik InnoDB wp_woocommerce_tax_rates: Dane: 0.02MB + Indeks: 0.06MB + Silnik InnoDB wp_woocommerce_tax_rate_locations: Dane: 0.02MB + Indeks: 0.03MB + Silnik InnoDB wp_woocommerce_shipping_zones: Dane: 0.02MB + Indeks: 0.00MB + Silnik InnoDB wp_woocommerce_shipping_zone_locations: Dane: 0.02MB + Indeks: 0.03MB + Silnik InnoDB wp_woocommerce_shipping_zone_methods: Dane: 0.02MB + Indeks: 0.00MB + Silnik InnoDB wp_woocommerce_payment_tokens: Dane: 0.02MB + Indeks: 0.02MB + Silnik InnoDB wp_woocommerce_payment_tokenmeta: Dane: 0.02MB + Indeks: 0.03MB + Silnik InnoDB wp_woocommerce_log: Dane: 0.02MB + Indeks: 0.02MB + Silnik InnoDB wp_actionscheduler_actions: Dane: 0.05MB + Indeks: 0.11MB + Silnik InnoDB wp_actionscheduler_claims: Dane: 0.02MB + Indeks: 0.02MB + Silnik InnoDB wp_actionscheduler_groups: Dane: 0.02MB + Indeks: 0.02MB + Silnik InnoDB wp_actionscheduler_logs: Dane: 0.02MB + Indeks: 0.03MB + Silnik InnoDB wp_commentmeta: Dane: 0.02MB + Indeks: 0.03MB + Silnik InnoDB wp_comments: Dane: 0.02MB + Indeks: 0.09MB + Silnik InnoDB wp_duplicator_packages: Dane: 0.02MB + Indeks: 0.02MB + Silnik InnoDB wp_duplicator_pro_entities: Dane: 0.02MB + Indeks: 0.02MB + Silnik InnoDB wp_duplicator_pro_packages: Dane: 0.02MB + Indeks: 0.02MB + Silnik InnoDB wp_e_events: Dane: 0.02MB + Indeks: 0.02MB + Silnik InnoDB wp_e_submissions: Dane: 0.02MB + Indeks: 0.27MB + Silnik InnoDB wp_e_submissions_actions_log: Dane: 0.02MB + Indeks: 0.11MB + Silnik InnoDB wp_e_submissions_values: Dane: 0.02MB + Indeks: 0.03MB + Silnik InnoDB wp_links: Dane: 0.02MB + Indeks: 0.02MB + Silnik InnoDB wp_options: Dane: 3.48MB + Indeks: 0.16MB + Silnik InnoDB wp_postmeta: Dane: 18.52MB + Indeks: 1.95MB + Silnik InnoDB wp_posts: Dane: 5.52MB + Indeks: 0.36MB + Silnik InnoDB wp_post_views: Dane: 0.02MB + Indeks: 0.03MB + Silnik InnoDB wp_termmeta: Dane: 0.02MB + Indeks: 0.03MB + Silnik InnoDB wp_terms: Dane: 0.02MB + Indeks: 0.03MB + Silnik InnoDB wp_term_relationships: Dane: 0.02MB + Indeks: 0.02MB + Silnik InnoDB wp_term_taxonomy: Dane: 0.02MB + Indeks: 0.03MB + Silnik InnoDB wp_usermeta: Dane: 0.02MB + Indeks: 0.03MB + Silnik InnoDB wp_users: Dane: 0.02MB + Indeks: 0.05MB + Silnik InnoDB wp_wc_admin_notes: Dane: 0.06MB + Indeks: 0.00MB + Silnik InnoDB wp_wc_admin_note_actions: Dane: 0.02MB + Indeks: 0.02MB + Silnik InnoDB wp_wc_category_lookup: Dane: 0.02MB + Indeks: 0.00MB + Silnik InnoDB wp_wc_customer_lookup: Dane: 0.02MB + Indeks: 0.03MB + Silnik InnoDB wp_wc_download_log: Dane: 0.02MB + Indeks: 0.03MB + Silnik InnoDB wp_wc_order_coupon_lookup: Dane: 0.02MB + Indeks: 0.03MB + Silnik InnoDB wp_wc_order_product_lookup: Dane: 0.02MB + Indeks: 0.06MB + Silnik InnoDB wp_wc_order_stats: Dane: 0.02MB + Indeks: 0.05MB + Silnik InnoDB wp_wc_order_tax_lookup: Dane: 0.02MB + Indeks: 0.03MB + Silnik InnoDB wp_wc_product_attributes_lookup: Dane: 0.02MB + Indeks: 0.02MB + Silnik InnoDB wp_wc_product_download_directories: Dane: 0.02MB + Indeks: 0.02MB + Silnik InnoDB wp_wc_product_meta_lookup: Dane: 0.05MB + Indeks: 0.09MB + Silnik InnoDB wp_wc_rate_limits: Dane: 0.02MB + Indeks: 0.02MB + Silnik InnoDB wp_wc_reserved_stock: Dane: 0.02MB + Indeks: 0.00MB + Silnik InnoDB wp_wc_tax_rate_classes: Dane: 0.02MB + Indeks: 0.02MB + Silnik InnoDB wp_wc_webhooks: Dane: 0.02MB + Indeks: 0.02MB + Silnik InnoDB wp_wpfm_backup: Dane: 0.00MB + Indeks: 0.00MB + Silnik MyISAM ### Post Type Counts ### attachment: 685 elementor_library: 24 elementskit_template: 2 envato_tk_import: 2 nav_menu_item: 22 page: 12 post: 3 product: 45 product_variation: 178 revision: 706 tablepress_table: 31 wp_global_styles: 1 ### Security ### Secure connection (HTTPS): ?</img> Hide errors from visitors: ?</img> ### Active Plugins (27) ### CartPops: przez CartPops.com – 1.4.23 Classic Widgets: przez WordPress Contributors – 0.3 Duplicator Pro: przez Snap Creek – 4.5.9.1 Duplicator Pro: przez Snap Creek – 4.5.9.1 Elementor Pro: przez Elementor.com – 3.7.2 Elementor: przez Elementor.com – 3.7.4 ElementsKit Lite: przez Wpmet – 2.7.0 ElementsKit Pro: przez Wpmet – 2.7.0 Envato Elements: przez Envato – 2.0.11 Error Log Viewer by BestWebSoft: przez BestWebSoft – 1.1.2 Essential Addons for Elementor - Pro: przez WPDeveloper – 5.2.1 Essential Addons for Elementor: przez WPDeveloper – 5.2.4 Gallery Slider for WooCommerce: przez ShapedPlugin – 1.1.11 Loco Translate: przez Tim Whitlock – 2.6.2 Omnibus: przez Marcin Pietrzak – 2.2.3 TablePress: przez Tobias B?thge – 1.14 The Plus Addons for Elementor: przez POSIMYTH – 5.1.13 The Plus Addons for Elementor - Pro: przez POSIMYTH – 5.1.1 Under Construction: przez WebFactory Ltd – 3.93 UpdraftPlus - Backup/Restore: przez UpdraftPlus.Com DavidAnderson – 2.22.23.25 YellowPencil Pro: przez WaspThemes – 7.4.1 Converter for Media: przez Mateusz Gbiorczyk - Optimize Images by convert AVIF & WebP – 5.2.1 WooCommerce Multiple Currencies: przez Lagudi Domenico – 5.5 WooCommerce: przez Automattic – 6.8.2 WP Call Button: przez Syed Balkhi – 1.3.1 WP File Manager: przez mndpsingh287 – 7.1.7 WP Rocket: przez WP Media – 3.8.8 ### Inactive Plugins (1) ### Duplicator: przez Snap Creek – 1.5.2.1 ### Dropin Plugins (1) ### advanced-cache.php: advanced-cache.php ### Settings ### API Enabled: – Force SSL: – Currency: PLN (z?) Currency Position: right Thousand Separator: , Decimal Separator: . Number of Decimals: 2 Taxonomies: Product Types: external (external) grouped (grouped) simple (simple) variable (variable) Taxonomies: Product Visibility: exclude-from-catalog (exclude-from-catalog) exclude-from-search (exclude-from-search) featured (featured) outofstock (outofstock) rated-1 (rated-1) rated-2 (rated-2) rated-3 (rated-3) rated-4 (rated-4) rated-5 (rated-5) Connected to WooCommerce.com: – Enforce Approved Product Download Directories: ?</img> ### WC Pages ### Strona sklepu: #764 - /bodykity/ Koszyk: ?</img> Strona nie zawiera shortcode [woocommerce_cart] ani bloku woocommerce/cart. Zamówienie: #766 - /zamowienie/ Moje konto: #767 - /moje-konto/ Regulamin: ?</img> Strona nie ustawiona ### Theme ### Name: Hello Elementor Version: 2.6.1 Author URL: https://elementor.com/?utm_source=wp-themes&utm_campaign=author-uri&utm_medium=wp-dash Child Theme: ?</img> – Je?li modyfikujesz WooCommerce lub motyw nadrz?dny którego nie jeste? autorem polecamy u?ywanie motywu potomnego. Zobacz: Jak tworzy? motywy potomne WooCommerce Support: ?</img> ### Templates ### Overrides: – ### Admin ### Enabled Features: activity-panels analytics coupons customer-effort-score-tracks experimental-products-task experimental-import-products-task experimental-fashion-sample-products experimental-product-tour shipping-smart-defaults shipping-setting-tour homescreen marketing mobile-app-banner navigation onboarding onboarding-tasks remote-inbox-notifications remote-free-extensions payment-gateway-suggestions shipping-label-banner subscriptions store-alerts transient-notices wc-pay-promotion wc-pay-welcome-page wc-pay-subscriptions-page Disabled Features: minified-js settings Daily Cron: ?</img> Next scheduled: 2023-02-08 15:05:39 +01:00 Options: ?</img> Notes: 71 Onboarding: skipped ### Action Scheduler ### Zakończ: 36 Oldest: 2023-01-08 08:46:07 +0100 Newest: 2023-02-07 22:52:38 +0100 Oczekuj?ce: 1 Oldest: 2023-02-07 23:44:15 +0100 Newest: 2023-02-07 23:44:15 +0100 ### Status report information ### Generated at: 2023-02-07 22:52:40 +01:00 `
Next, error log:
fatal-errors-2023-02-07-d2cb2b0c5ea3d682f6825622d39674da.log
2023-02-07T01:29:56+00:00 CRITICAL Uncaught Error: Call to a member function get_allowed_countries() on null in /home4/benzfami/benzfamilia.com/wp-content/plugins/woocommerce/includes/wc-core-functions.php:1353 Stack trace: #0 /home4/benzfami/benzfamilia.com/wp-content/plugins/woocommerce/includes/data-stores/class-wc-customer-data-store-session.php(129): wc_get_customer_default_location() #1 /home4/benzfami/benzfamilia.com/wp-content/plugins/woocommerce/includes/data-stores/class-wc-customer-data-store-session.php(118): WC_Customer_Data_Store_Session->set_defaults(Object(WC_Customer)) #2 /home4/benzfami/benzfamilia.com/wp-content/plugins/woocommerce/includes/class-wc-data-store.php(159): WC_Customer_Data_Store_Session->read(Object(WC_Customer)) #3 /home4/benzfami/benzfamilia.com/wp-content/plugins/woocommerce/includes/class-wc-customer.php(125): WC_Data_Store->read(Object(WC_Customer)) #4 /home4/benzfami/benzfamilia.com/wp-content/plugins/woocommerce/includes/class-woocommerce.php(830): WC_Customer->__construct(0, true) #5 /home4/benzfami/ben w /home4/benzfami/benzfamilia.com/wp-content/plugins/woocommerce/includes/wc-core-functions.php w linii 1353
Hi @andrzej13
Thanks for sharing the requested information above.
WC Version: 6.8.2
Please update WooCommerce to the latest version, as we only offer support when your site is using the latest release of the core WooCommerce plugin (and the main WordPress software), and the previous two before that. See more of our Support Policy here.
If this did not resolve the issue, please try to switch to the default Storefront theme and only WooCommerce plugin is enabled and see if this works?
If so, then this kind of problem is usually caused by your theme or a third-party plugin present on your site. We can run a conflict test to verify this. I’d recommend cloning your site to a staging environment and performing the tests described on this guide without modifying your live site or impacting customers. Many hosts provide staging facilities, so it’s worth checking in with them. It’s also possible to do it using the free WP Staging plugin.
If this was caused by a third-party plugin present on your site, it would be best to reach out to the developers for further assistance here.
Let us know how it goes!
- The topic ‘Error /wp-content/plugins/woocommerce/includes/wc-core-functions.php:1353’ is closed to new replies.