Title: E_ERROR: get_allowed_countries() on null
Last modified: May 7, 2023

---

# E_ERROR: get_allowed_countries() on null

 *  Resolved [asma062273](https://wordpress.org/support/users/asma062273/)
 * (@asma062273)
 * [3 years ago](https://wordpress.org/support/topic/e_error-get_allowed_countries-on-null/)
 *     ```wp-block-code
       WordPress Environment
   
       WordPress address (URL): https://nahrawess.tn
       Site address (URL): https://nahrawess.tn
       WC Version: 7.6.1
       REST API Version: ✔ 7.6.1
       WC Blocks Version: ✔ 9.8.5
       Action Scheduler Version: ✔ 3.5.4
       Log Directory Writable: ✔
       WP Version: 6.2
       WP Multisite: –
       WP Memory Limit: 256 Mo
       WP Debug Mode: –
       WP Cron: ✔
       Language: fr_FR
       External object cache: –
   
       Server Environment
   
       Server Info: Apache
       PHP Version: 8.0.25
       PHP Post Max Size: 8 Mo
       PHP Time Limit: 30
       PHP Max Input Vars: 1000
       cURL Version: 7.29.0
       NSS/3.53.1
   
       SUHOSIN Installed: –
       MySQL Version: 5.5.68-MariaDB
       Max Upload Size: 8 Mo
       Default Timezone is UTC: ✔
       fsockopen/cURL: ✔
       SoapClient: ✔
       DOMDocument: ✔
       GZip: ✔
       Multibyte String: ✔
       Remote Post: ✔
       Remote Get: ✔
   
       Database
   
       WC Database Version: 7.6.1
       WC Database Prefix: wp_
       Taille totale de la base de données: 57.47MB
       Taille de la base de données: 51.42MB
       Taille de l’index: 6.05MB
       wp_woocommerce_sessions: Données : 0.02MB + Index : 0.02MB + Moteur InnoDB
       wp_woocommerce_api_keys: Données : 0.02MB + Index : 0.03MB + Moteur InnoDB
       wp_woocommerce_attribute_taxonomies: Données : 0.02MB + Index : 0.02MB + Moteur InnoDB
       wp_woocommerce_downloadable_product_permissions: Données : 0.02MB + Index : 0.06MB + Moteur InnoDB
       wp_woocommerce_order_items: Données : 0.02MB + Index : 0.02MB + Moteur InnoDB
       wp_woocommerce_order_itemmeta: Données : 0.02MB + Index : 0.03MB + Moteur InnoDB
       wp_woocommerce_tax_rates: Données : 0.02MB + Index : 0.06MB + Moteur InnoDB
       wp_woocommerce_tax_rate_locations: Données : 0.02MB + Index : 0.03MB + Moteur InnoDB
       wp_woocommerce_shipping_zones: Données : 0.02MB + Index : 0.00MB + Moteur InnoDB
       wp_woocommerce_shipping_zone_locations: Données : 0.02MB + Index : 0.03MB + Moteur InnoDB
       wp_woocommerce_shipping_zone_methods: Données : 0.02MB + Index : 0.00MB + Moteur InnoDB
       wp_woocommerce_payment_tokens: Données : 0.02MB + Index : 0.02MB + Moteur InnoDB
       wp_woocommerce_payment_tokenmeta: Données : 0.02MB + Index : 0.03MB + Moteur InnoDB
       wp_woocommerce_log: Données : 0.02MB + Index : 0.02MB + Moteur InnoDB
       wp_actionscheduler_actions: Données : 2.11MB + Index : 0.75MB + Moteur InnoDB
       wp_actionscheduler_claims: Données : 0.02MB + Index : 0.02MB + Moteur InnoDB
       wp_actionscheduler_groups: Données : 0.02MB + Index : 0.02MB + Moteur InnoDB
       wp_actionscheduler_logs: Données : 1.31MB + Index : 0.47MB + Moteur InnoDB
       wp_commentmeta: Données : 0.02MB + Index : 0.03MB + Moteur InnoDB
       wp_comments: Données : 0.02MB + Index : 0.09MB + Moteur InnoDB
       wp_e_events: Données : 0.02MB + Index : 0.02MB + Moteur InnoDB
       wp_gla_attribute_mapping_rules: Données : 0.02MB + Index : 0.00MB + Moteur InnoDB
       wp_gla_budget_recommendations: Données : 0.22MB + Index : 0.14MB + Moteur InnoDB
       wp_gla_merchant_issues: Données : 0.02MB + Index : 0.00MB + Moteur InnoDB
       wp_gla_shipping_rates: Données : 0.02MB + Index : 0.03MB + Moteur InnoDB
       wp_gla_shipping_times: Données : 0.02MB + Index : 0.02MB + Moteur InnoDB
       wp_hotel_booking_order_itemmeta: Données : 0.02MB + Index : 0.03MB + Moteur InnoDB
       wp_hotel_booking_order_items: Données : 0.02MB + Index : 0.02MB + Moteur InnoDB
       wp_hotel_booking_plans: Données : 0.02MB + Index : 0.02MB + Moteur InnoDB
       wp_layerslider: Données : 0.02MB + Index : 0.00MB + Moteur InnoDB
       wp_layerslider_drafts: Données : 0.02MB + Index : 0.02MB + Moteur InnoDB
       wp_layerslider_revisions: Données : 0.02MB + Index : 0.00MB + Moteur InnoDB
       wp_links: Données : 0.02MB + Index : 0.02MB + Moteur InnoDB
       wp_mailpoet_automations: Données : 0.02MB + Index : 0.00MB + Moteur InnoDB
       wp_mailpoet_automation_runs: Données : 0.02MB + Index : 0.02MB + Moteur InnoDB
       wp_mailpoet_automation_run_logs: Données : 0.02MB + Index : 0.02MB + Moteur InnoDB
       wp_mailpoet_automation_run_subjects: Données : 0.02MB + Index : 0.03MB + Moteur InnoDB
       wp_mailpoet_automation_triggers: Données : 0.02MB + Index : 0.00MB + Moteur InnoDB
       wp_mailpoet_automation_versions: Données : 0.02MB + Index : 0.02MB + Moteur InnoDB
       wp_mailpoet_custom_fields: Données : 0.02MB + Index : 0.02MB + Moteur InnoDB
       wp_mailpoet_dynamic_segment_filters: Données : 0.02MB + Index : 0.02MB + Moteur InnoDB
       wp_mailpoet_feature_flags: Données : 0.02MB + Index : 0.02MB + Moteur InnoDB
       wp_mailpoet_forms: Données : 0.02MB + Index : 0.00MB + Moteur InnoDB
       wp_mailpoet_log: Données : 0.02MB + Index : 0.00MB + Moteur InnoDB
       wp_mailpoet_migrations: Données : 0.02MB + Index : 0.02MB + Moteur InnoDB
       wp_mailpoet_newsletters: Données : 0.05MB + Index : 0.03MB + Moteur InnoDB
       wp_mailpoet_newsletter_links: Données : 0.02MB + Index : 0.05MB + Moteur InnoDB
       wp_mailpoet_newsletter_option: Données : 0.02MB + Index : 0.02MB + Moteur InnoDB
       wp_mailpoet_newsletter_option_fields: Données : 0.02MB + Index : 0.02MB + Moteur InnoDB
       wp_mailpoet_newsletter_posts: Données : 0.02MB + Index : 0.02MB + Moteur InnoDB
       wp_mailpoet_newsletter_segment: Données : 0.02MB + Index : 0.02MB + Moteur InnoDB
       wp_mailpoet_newsletter_templates: Données : 3.09MB + Index : 0.00MB + Moteur InnoDB
       wp_mailpoet_scheduled_tasks: Données : 0.08MB + Index : 0.03MB + Moteur InnoDB
       wp_mailpoet_scheduled_task_subscribers: Données : 0.02MB + Index : 0.02MB + Moteur InnoDB
       wp_mailpoet_segments: Données : 0.02MB + Index : 0.03MB + Moteur InnoDB
       wp_mailpoet_sending_queues: Données : 0.02MB + Index : 0.03MB + Moteur InnoDB
       wp_mailpoet_settings: Données : 0.02MB + Index : 0.02MB + Moteur InnoDB
       wp_mailpoet_statistics_bounces: Données : 0.02MB + Index : 0.00MB + Moteur InnoDB
       wp_mailpoet_statistics_clicks: Données : 0.02MB + Index : 0.05MB + Moteur InnoDB
       wp_mailpoet_statistics_forms: Données : 0.02MB + Index : 0.02MB + Moteur InnoDB
       wp_mailpoet_statistics_newsletters: Données : 0.02MB + Index : 0.03MB + Moteur InnoDB
       wp_mailpoet_statistics_opens: Données : 0.02MB + Index : 0.08MB + Moteur InnoDB
       wp_mailpoet_statistics_unsubscribes: Données : 0.02MB + Index : 0.05MB + Moteur InnoDB
       wp_mailpoet_statistics_woocommerce_purchases: Données : 0.02MB + Index : 0.06MB + Moteur InnoDB
       wp_mailpoet_stats_notifications: Données : 0.02MB + Index : 0.03MB + Moteur InnoDB
       wp_mailpoet_subscribers: Données : 0.02MB + Index : 0.13MB + Moteur InnoDB
       wp_mailpoet_subscriber_custom_field: Données : 0.02MB + Index : 0.02MB + Moteur InnoDB
       wp_mailpoet_subscriber_ips: Données : 0.02MB + Index : 0.02MB + Moteur InnoDB
       wp_mailpoet_subscriber_segment: Données : 0.02MB + Index : 0.03MB + Moteur InnoDB
       wp_mailpoet_subscriber_tag: Données : 0.02MB + Index : 0.03MB + Moteur InnoDB
       wp_mailpoet_tags: Données : 0.02MB + Index : 0.02MB + Moteur InnoDB
       wp_mailpoet_user_agents: Données : 0.02MB + Index : 0.02MB + Moteur InnoDB
       wp_mailpoet_user_flags: Données : 0.02MB + Index : 0.02MB + Moteur InnoDB
       wp_mphb_api_keys: Données : 0.02MB + Index : 0.03MB + Moteur InnoDB
       wp_mphb_customers: Données : 0.02MB + Index : 0.03MB + Moteur InnoDB
       wp_mphb_customers_meta: Données : 0.02MB + Index : 0.02MB + Moteur InnoDB
       wp_mphb_sync_logs: Données : 0.02MB + Index : 0.02MB + Moteur InnoDB
       wp_mphb_sync_queue: Données : 0.02MB + Index : 0.00MB + Moteur InnoDB
       wp_mphb_sync_stats: Données : 0.02MB + Index : 0.02MB + Moteur InnoDB
       wp_mphb_sync_urls: Données : 0.02MB + Index : 0.00MB + Moteur InnoDB
       wp_options: Données : 6.06MB + Index : 0.09MB + Moteur InnoDB
       wp_postmeta: Données : 18.13MB + Index : 1.77MB + Moteur InnoDB
       wp_posts: Données : 18.27MB + Index : 0.22MB + Moteur InnoDB
       wp_termmeta: Données : 0.02MB + Index : 0.03MB + Moteur InnoDB
       wp_terms: Données : 0.02MB + Index : 0.03MB + Moteur InnoDB
       wp_term_relationships: Données : 0.02MB + Index : 0.02MB + Moteur InnoDB
       wp_term_taxonomy: Données : 0.02MB + Index : 0.03MB + Moteur InnoDB
       wp_usermeta: Données : 0.06MB + Index : 0.03MB + Moteur InnoDB
       wp_users: Données : 0.02MB + Index : 0.05MB + Moteur InnoDB
       wp_wc_admin_notes: Données : 0.06MB + Index : 0.00MB + Moteur InnoDB
       wp_wc_admin_note_actions: Données : 0.06MB + Index : 0.02MB + Moteur InnoDB
       wp_wc_bookings_availability: Données : 0.02MB + Index : 0.02MB + Moteur InnoDB
       wp_wc_bookings_availabilitymeta: Données : 0.02MB + Index : 0.03MB + Moteur InnoDB
       wp_wc_booking_relationships: Données : 0.02MB + Index : 0.03MB + Moteur InnoDB
       wp_wc_category_lookup: Données : 0.02MB + Index : 0.00MB + Moteur InnoDB
       wp_wc_customer_lookup: Données : 0.02MB + Index : 0.03MB + Moteur InnoDB
       wp_wc_download_log: Données : 0.02MB + Index : 0.03MB + Moteur InnoDB
       wp_wc_order_coupon_lookup: Données : 0.02MB + Index : 0.03MB + Moteur InnoDB
       wp_wc_order_product_lookup: Données : 0.02MB + Index : 0.06MB + Moteur InnoDB
       wp_wc_order_stats: Données : 0.02MB + Index : 0.05MB + Moteur InnoDB
       wp_wc_order_tax_lookup: Données : 0.02MB + Index : 0.03MB + Moteur InnoDB
       wp_wc_product_attributes_lookup: Données : 0.02MB + Index : 0.02MB + Moteur InnoDB
       wp_wc_product_download_directories: Données : 0.02MB + Index : 0.02MB + Moteur InnoDB
       wp_wc_product_meta_lookup: Données : 0.02MB + Index : 0.09MB + Moteur InnoDB
       wp_wc_rate_limits: Données : 0.02MB + Index : 0.02MB + Moteur InnoDB
       wp_wc_reserved_stock: Données : 0.02MB + Index : 0.00MB + Moteur InnoDB
       wp_wc_tax_rate_classes: Données : 0.02MB + Index : 0.02MB + Moteur InnoDB
       wp_wc_webhooks: Données : 0.02MB + Index : 0.02MB + Moteur InnoDB
   
       Post Type Counts
   
       attachment: 200
       avia_framework_post: 38
       bookable_person: 31
       bookable_resource: 8
       elementor_library: 1
       hb_room: 1
       mailpoet_page: 1
       mphb_room: 1
       mphb_room_type: 1
       mphb_season: 1
       nav_menu_item: 18
       page: 18
       post: 9
       product: 83
       revision: 427
       shop_order: 11
       wc_booking: 10
       wp_global_styles: 1
   
       Security
   
       Secure connection (HTTPS): ✔
       Hide errors from visitors: ✔
   
       Active Plugins (9)
   
       Cookie Notice & Compliance for GDPR / CCPA: par Hu-manity.co – 2.4.8
       Duplicate Page: par mndpsingh287 – 4.5.2
       MailPoet: par MailPoet – 4.14.0
       Konnect Payment Gateway for WooCommerce: par Konnect – 2.6
       WooCommerce Accommodation Bookings: par WooCommerce – 1.1.39
       WooCommerce Bookings: par Woocommerce – 1.15.75
       WooCommerce Multiple Currencies: par Lagudi Domenico – 5.3
       WooCommerce: par Automattic – 7.6.1
       WP Super Cache: par Automattic – 1.9.4
   
       Inactive Plugins (0)
   
       Dropin Plugins (1)
   
       advanced-cache.php: advanced-cache.php
   
       Settings
   
       API Enabled: –
       Force SSL: –
       Currency: EUR (€)
       Currency Position: left_space
       Thousand Separator: .
       Decimal Separator: ,
       Number of Decimals: 0
       Taxonomies: Product Types: accommodation-booking (accommodation-booking)
       booking (booking)
       external (external)
       fme_bookable_product (fme_bookable_product)
       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: ✔
       Order datastore: WC_Order_Data_Store_CPT
   
       WC Pages
   
       Base de la boutique: ❌ Page non définie
       Panier: #41 - /cart/
       Commander: #42 - /checkout/
       Mon compte: ❌ L’ID de page est définie
       mais la page n’existe pas
   
       Conditions générales de vente et d’utilisation: ❌ Page non définie
   
       Theme
   
       Name: Enfold Child
       Version: 1.0
       Author URL: http://www.kriesi.at
       Child Theme: ✔
       Parent Theme Name: Enfold
       Parent Theme Version: 5.3.1.1
       Parent Theme Author URL: https://kriesi.at
       WooCommerce Support: ✔
   
       Templates
   
       Overrides: –
   
       Admin
   
       Enabled Features: activity-panels
       analytics
       coupons
       customer-effort-score-tracks
       import-products-task
       experimental-fashion-sample-products
       shipping-smart-defaults
       shipping-setting-tour
       homescreen
       marketing
       multichannel-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
       woo-mobile-welcome
       wc-pay-promotion
       wc-pay-welcome-page
   
       Disabled Features: block-editor-feature-enabled
       minified-js
       new-product-management-experience
       product-variation-management
       settings
   
       Daily Cron: ✔ Next scheduled: 2023-05-07 16:50:19 +00:00
       Options: ✔
       Notes: 74
       Onboarding: completed
   
       Action Scheduler
   
       Complete: 2 345
       Oldest: 2023-04-06 17:25:16 +0000
       Newest: 2023-05-07 14:26:58 +0000
   
       Failed: 10
       Oldest: 2023-02-20 08:46:49 +0000
       Newest: 2023-04-26 19:13:09 +0000
   
       Pending: 3
       Oldest: 2023-05-07 14:28:58 +0000
       Newest: 2023-05-14 14:39:59 +0000
   
       Status report information
   
       Generated at: 2023-05-07 14:37:44 +00:00
       `
       ```
   
 * I have this error on my website ” Uncaught Error: Call to a member function get_allowed_countries()
   on null in /var/www/vhosts/nahrawess.tn/httpdocs/wp-content/plugins/woocommerce/
   includes/wc-core-functions.php:1353″ but it disappear after refresh
 * Can you help me please !

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Thread Starter [asma062273](https://wordpress.org/support/users/asma062273/)
 * (@asma062273)
 * [3 years ago](https://wordpress.org/support/topic/e_error-get_allowed_countries-on-null/#post-16720425)
 * Any response please !!
 *  Thread Starter [asma062273](https://wordpress.org/support/users/asma062273/)
 * (@asma062273)
 * [3 years ago](https://wordpress.org/support/topic/e_error-get_allowed_countries-on-null/#post-16722191)
 * I have this error on my website ” Uncaught Error: Call to a member function get_allowed_countries()
   on null in /var/www/vhosts/nahrawess.tn/httpdocs/wp-content/plugins/woocommerce/
   includes/wc-core-functions.php:1353″ but it disappear after refresh
 * Can you help me please !
 *  [xue28 (woo-hc)](https://wordpress.org/support/users/xue28/)
 * (@xue28)
 * [3 years ago](https://wordpress.org/support/topic/e_error-get_allowed_countries-on-null/#post-16725040)
 * Hi [@asma062273](https://wordpress.org/support/users/asma062273/)
 * Thanks for reaching out!
 * I understand that there is an issue with the `get_allowed_countries()` function
   within the WooCommerce plugin.
 * It looks like a third-party plugin or your theme might be causing the conflict
   here.
 * For us to investigate this further, can you please try to switch to the [default Storefront theme](https://woocommerce.com/storefront/)
   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](https://woocommerce.com/document/how-to-test-for-conflicts/) 
   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](https://wordpress.org/plugins/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.
 * If this did not resolve the issue, please provide the **fatal error logs** (if
   any) under `WooCommerce > Status > Logs`.
 * You could copy and paste your reply here or paste it via [https://gist.github.com/](https://gist.github.com/)
   and send the link here.
 * Let us know how it goes!

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘E_ERROR: get_allowed_countries() on null’ is closed to new replies.

 * ![](https://ps.w.org/woocommerce/assets/icon.svg?rev=3234504)
 * [WooCommerce](https://wordpress.org/plugins/woocommerce/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce/reviews/)

## Tags

 * [woocommerce wordpress](https://wordpress.org/support/topic-tag/woocommerce-wordpress/)

 * 3 replies
 * 2 participants
 * Last reply from: [xue28 (woo-hc)](https://wordpress.org/support/users/xue28/)
 * Last activity: [3 years ago](https://wordpress.org/support/topic/e_error-get_allowed_countries-on-null/#post-16725040)
 * Status: resolved