Forum Replies Created

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter aerial2022

    (@aerial2022)

    I’ve been trying all sorts of things to try to fix this issue and I think I’ve finally found a work around, I added the following code into my functions.php file and it seems to have done the trick:

    function wc_remove_state_field($fields) {
    
        unset($fields['state']);
        return $fields;
    }
    
    add_filter('woocommerce_default_address_fields', 'wc_remove_state_field');
    

    This simply removes the “state” (or county) field from the checkout, but it also seems to have removed the requirement for that field to be completed too, which is great, as I have successfully made a purchase on my site using ApplePay.

    I found this suggestion here: https://stackoverflow.com/questions/71829739/how-to-remove-the-state-field-and-make-them-not-required-for-every-country-in

    • This reply was modified 1 year, 11 months ago by aerial2022.
    Thread Starter aerial2022

    (@aerial2022)

    Thanks, although when I took the system log all the systems were up to date. And this problem has been around for months, so it’s not new, I don’t expect an update to fix the issue, but I’ll give it a try.

    I actually think one of the things it has to do with the user not having the billing/shipping county set up in their details? – I tried to put a payment through myself on ApplePay, but it errored and when I returned back to the basket then went through to the checkout page I could see that (after attempting to pay with ApplePay) the system had automatically filled in all my address details but the county was missing, and even though this is an optional field WooCommerce seemed to error when I tried to pay via ApplePay.

    • This reply was modified 2 years ago by aerial2022.
    Thread Starter aerial2022

    (@aerial2022)

    Ok, here is our system log:

    `
    ### WordPress Environment ###
    
    WordPress address (URL): https://*doman-path*
    Site address (URL): https://*doman-path*
    WC Version: 7.4.0
    REST API Version: ?</img> 7.4.0
    WC Blocks Version: ?</img> 9.4.3
    Action Scheduler Version: ?</img> 3.5.4
    Log Directory Writable: ?</img>
    WP Version: 6.1.1
    WP Multisite: –
    WP Memory Limit: 256 MB
    WP Debug Mode: –
    WP Cron: ?</img>
    Language: en_GB
    External object cache: –
    
    ### Server Environment ###
    
    Server Info: Apache
    PHP Version: 8.2.3
    PHP Post Max Size: 16 MB
    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: 16 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.5.0
    WC Database Prefix: wS55N_
    Total Database Size: 488.13MB
    Database Data Size: 432.38MB
    Database Index Size: 55.75MB
    wS55N_woocommerce_sessions: Data: 1.02MB + Index: 0.02MB + Engine InnoDB
    wS55N_woocommerce_api_keys: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wS55N_woocommerce_attribute_taxonomies: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wS55N_woocommerce_downloadable_product_permissions: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
    wS55N_woocommerce_order_items: Data: 2.52MB + Index: 0.44MB + Engine InnoDB
    wS55N_woocommerce_order_itemmeta: Data: 12.52MB + Index: 12.98MB + Engine InnoDB
    wS55N_woocommerce_tax_rates: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
    wS55N_woocommerce_tax_rate_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wS55N_woocommerce_shipping_zones: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wS55N_woocommerce_shipping_zone_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wS55N_woocommerce_shipping_zone_methods: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wS55N_woocommerce_payment_tokens: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wS55N_woocommerce_payment_tokenmeta: Data: 0.05MB + Index: 0.03MB + Engine InnoDB
    wS55N_woocommerce_log: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wS55N_actionscheduler_actions: Data: 0.22MB + Index: 0.22MB + Engine InnoDB
    wS55N_actionscheduler_claims: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wS55N_actionscheduler_groups: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wS55N_actionscheduler_logs: Data: 0.17MB + Index: 0.16MB + Engine InnoDB
    wS55N_commentmeta: Data: 0.25MB + Index: 0.27MB + Engine InnoDB
    wS55N_comments: Data: 7.52MB + Index: 7.09MB + Engine InnoDB
    wS55N_grp_google_place: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wS55N_grp_google_review: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wS55N_grp_google_stats: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wS55N_links: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wS55N_ms_snippets: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wS55N_ninja_table_items: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wS55N_options: Data: 4.02MB + Index: 1.09MB + Engine InnoDB
    wS55N_pimwick_gift_card: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wS55N_pimwick_gift_card_activity: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wS55N_postmeta: Data: 27.33MB + Index: 23.39MB + Engine InnoDB
    wS55N_posts: Data: 12.27MB + Index: 1.20MB + Engine InnoDB
    wS55N_redirection_404: Data: 1.02MB + Index: 0.16MB + Engine InnoDB
    wS55N_redirection_groups: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wS55N_redirection_items: Data: 0.13MB + Index: 0.19MB + Engine InnoDB
    wS55N_redirection_logs: Data: 0.05MB + Index: 0.05MB + Engine InnoDB
    wS55N_snippets: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wS55N_termmeta: Data: 0.06MB + Index: 0.06MB + Engine InnoDB
    wS55N_terms: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wS55N_term_relationships: Data: 0.11MB + Index: 0.06MB + Engine InnoDB
    wS55N_term_taxonomy: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wS55N_usermeta: Data: 3.52MB + Index: 3.97MB + Engine InnoDB
    wS55N_users: Data: 0.17MB + Index: 0.17MB + Engine InnoDB
    wS55N_wc_admin_notes: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wS55N_wc_admin_note_actions: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wS55N_wc_category_lookup: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wS55N_wc_customer_lookup: Data: 0.28MB + Index: 0.22MB + Engine InnoDB
    wS55N_wc_download_log: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wS55N_wc_order_coupon_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wS55N_wc_order_product_lookup: Data: 1.52MB + Index: 0.94MB + Engine InnoDB
    wS55N_wc_order_stats: Data: 0.38MB + Index: 0.39MB + Engine InnoDB
    wS55N_wc_order_tax_lookup: Data: 0.23MB + Index: 0.22MB + Engine InnoDB
    wS55N_wc_product_attributes_lookup: Data: 0.08MB + Index: 0.05MB + Engine InnoDB
    wS55N_wc_product_download_directories: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wS55N_wc_product_meta_lookup: Data: 0.17MB + Index: 0.30MB + Engine InnoDB
    wS55N_wc_rate_limits: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wS55N_wc_reserved_stock: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wS55N_wc_tax_rate_classes: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wS55N_wc_webhooks: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wS55N_wdp_orders: Data: 0.34MB + Index: 0.17MB + Engine InnoDB
    wS55N_wdp_order_items: Data: 0.17MB + Index: 0.22MB + Engine InnoDB
    wS55N_wdp_persistent_rules_cache: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wS55N_wdp_product_collections: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wS55N_wdp_rules: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wS55N_wfblockediplog: Data: 0.23MB + Index: 0.00MB + Engine InnoDB
    wS55N_wfblocks7: Data: 0.05MB + Index: 0.05MB + Engine InnoDB
    wS55N_wfconfig: Data: 3.25MB + Index: 0.00MB + Engine InnoDB
    wS55N_wfcrawlers: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wS55N_wffilechanges: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wS55N_wffilemods: Data: 10.52MB + Index: 0.00MB + Engine InnoDB
    wS55N_wfhits: Data: 1.02MB + Index: 0.19MB + Engine InnoDB
    wS55N_wfhoover: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wS55N_wfissues: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
    wS55N_wfknownfilelist: Data: 4.52MB + Index: 0.00MB + Engine InnoDB
    wS55N_wflivetraffichuman: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wS55N_wflocs: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wS55N_wflogins: Data: 0.42MB + Index: 0.13MB + Engine InnoDB
    wS55N_wfls_2fa_secrets: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wS55N_wfls_settings: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wS55N_wfnotifications: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wS55N_wfpendingissues: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
    wS55N_wfreversecache: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wS55N_wfsnipcache: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    wS55N_wfstatus: Data: 0.14MB + Index: 0.09MB + Engine InnoDB
    wS55N_wftrafficrates: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wS55N_wpmailsmtp_debug_events: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wS55N_wpmailsmtp_tasks_meta: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wS55N_wpmelon_advbedit_temp: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wS55N_wpml_mails: Data: 333.55MB + Index: 0.00MB + Engine InnoDB
    wS55N_yoast_indexable: Data: 1.25MB + Index: 0.13MB + Engine InnoDB
    wS55N_yoast_indexable_hierarchy: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    wS55N_yoast_migrations: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wS55N_yoast_primary_term: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wS55N_yoast_seo_links: Data: 0.06MB + Index: 0.03MB + Engine InnoDB
    wS55N_yoast_seo_meta: Data: 0.13MB + Index: 0.00MB + Engine InnoDB
    
    ### Post Type Counts ###
    
    attachment: 570
    custom_css: 2
    et_pb_layout: 16
    nav_menu_item: 32
    ninja-table: 1
    oembed_cache: 9
    page: 22
    post: 1
    product: 35
    product_variation: 536
    revision: 830
    shop_coupon: 15
    shop_order: 4379
    shop_order_refund: 93
    was: 23
    wc_afrsm: 64
    wc_afrsm_zone: 12
    wp_global_styles: 1
    wpsl_stores: 96
    
    ### Security ###
    
    Secure connection (HTTPS): ?</img>
    Hide errors from visitors: ?</img>
    
    ### Active Plugins (36) ###
    
    Advanced Dynamic Pricing for WooCommerce (Pro): by AlgolPlus – 4.1.2
    FiboSearch - AJAX Search for WooCommerce: by FiboSearch Team – 1.22.3
    PublishPress Capabilities: by PublishPress – 2.6.1
    Code Snippets: by Code Snippets Pro – 3.2.2
    EU/UK VAT for WooCommerce: by WPWhale – 2.9.2
    Social Reviews & Recommendations: by Trust.reviews  – 1.7.8
    Google XML Sitemaps: by Auctollo – 4.1.7
    Order Export for WooCommerce: by JEM Plugins – 3.2
    Product Sales Report for WooCommerce: by WP Zone – 1.5.2
    PW WooCommerce Gift Cards Pro: by Pimwick
    LLC – 1.373
    
    Redirection: by John Godley – 5.3.9
    Shortcode in Menus: by Gagan Deep Singh – 3.5.1
    Trustpilot-reviews: by Trustpilot – 2.5.914
    Termly | GDPR/CCPA Cookie Consent Banner: by Termly – 3.0.3
    WC Hide Shipping Methods: by Rynaldo Stoltz – 1.5
    Plugin for Google Reviews: by RichPlugins  – 2.2.6
    Woo Custom Stock Status: by Softound Solutions – 1.3.5
    WooCommerce Locations Pack: by dangoodman – 1.9.0
    Advanced Order Export For WooCommerce: by AlgolPlus – 3.3.3
    Additional Variation Images Gallery for WooCommerce: by Emran Ahmed – 1.3.13
    Variation Swatches for WooCommerce - Pro: by Emran Ahmed – 1.1.18
    Variation Swatches for WooCommerce: by Emran Ahmed – 1.1.19
    WooCommerce Advanced Bulk Edit: by George Iron – 4.4.3
    WooCommerce Advanced Shipping - Advanced Pricing: by Jeroen Sormani – 2.2.1
    WooCommerce Advanced Shipping: by Jeroen Sormani – 1.1.0
    WooCommerce Stripe Gateway: by WooCommerce – 7.1.0
    WooCommerce PayPal Payments: by WooCommerce – 1.8.1 (update to version 2.0.2 is available)
    WooCommerce Shipping & Tax: by WooCommerce – 2.2.3
    WooCommerce: by Automattic – 7.4.0
    Wordfence Security: by Wordfence – 7.9.0
    Yoast SEO: by Team Yoast – 20.1
    WP Mail Logging: by SendLayer – 1.10.5
    WP Mail SMTP: by WPForms – 3.7.0
    WP Rollback: by GiveWP.com – 1.7.3
    WP Store Locator: by Tijmen Smit – 2.2.236
    Custom Product Tabs for WooCommerce: by YIKES
    Inc. – 1.8.2
    
    
    ### Inactive Plugins (6) ###
    
    Additional Variation Images Gallery for WooCommerce - Pro: by Emran Ahmed – 1.1.21
    Advanced Flat Rate Shipping For WooCommerce: by theDotstore – 4.1.0
    Advanced Flat Rate Shipping For WooCommerce (Premium): by theDotstore – 4.0.0
    Akismet Anti-Spam: by Automattic – 5.0.2
    Divi Coming Soon: by Divi Life — Tim Strifler – 1.0.1
    WooCommerce PayPal Checkout Gateway: by WooCommerce – 2.1.3
    
    ### Dropin Plugins (1) ###
    
    maintenance.php: maintenance.php
    
    ### Settings ###
    
    API Enabled: –
    Force SSL: –
    Currency: GBP (£)
    Currency Position: left
    Thousand Separator: ,
    Decimal Separator: .
    Number of Decimals: 2
    Taxonomies: Product Types: external (external)
    grouped (grouped)
    pw gift card (pw-gift-card)
    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 ###
    
    Shop base: #324 - /shop/
    Basket: #325 - /basket/
    Checkout: #326 - /checkout/
    My account: #327 - /my-account/
    Terms and conditions: #188 - /terms-and-conditions/
    
    ### Theme ###
    
    Name: Divi Child
    Version: 1.0.0
    Author URL: https://*doman-path*
    Child Theme: ?</img>
    Parent Theme Name: Divi
    Parent Theme Version: 4.19.5
    Parent Theme Author URL: https://www.elegantthemes.com
    WooCommerce Support: ?</img>
    
    ### Templates ###
    
    Overrides: divi-child/woocommerce/emails/customer-invoice.php
    divi-child/woocommerce/emails/customer-processing-order.php
    *doman-path*/httpdocs/wp-content/plugins/woo-variation-gallery/templates/product-images.php
    *doman-path*/httpdocs/wp-content/plugins/woo-variation-gallery/templates/product-thumbnails.php
    
    
    ### WooCommerce PayPal Payments ###
    
    Onboarded: ?</img>
    Shop country code: GB
    WooCommerce currency supported: ?</img>
    PayPal card processing available in country: ?</img>
    Pay Later messaging available in country: ?</img>
    Webhook status: ?</img>
    Vault enabled: ?</img>
    Logging enabled: –
    Reference Transactions: –
    Used PayPal Checkout plugin: ?</img>
    
    ### 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
    new-product-management-experience
    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: minified-js
    product-variation-management
    settings
    
    Daily Cron: ?</img> Next scheduled: 2023-02-28 13:06:27 +00:00
    Options: ?</img>
    Notes: 35
    Onboarding: completed
    
    ### Action Scheduler ###
    
    Complete: 600
    Oldest: 2023-01-30 11:44:43 +0000
    Newest: 2023-02-28 08:01:03 +0000
    
    Pending: 1
    Oldest: 2023-02-28 21:18:32 +0000
    Newest: 2023-02-28 21:18:32 +0000
    
    
    ### Status report information ###
    
    Generated at: 2023-02-28 08:07:04 +00:00
    `

    And here is the fatal error log:

    2023-02-15T12:55:14+00:00 CRITICAL Uncaught Error: Call to a member function get() on null in *domain-path*/httpdocs/wp-content/themes/Divi/includes/builder/feature/woocommerce-modules.php:1095
    Stack trace:
    #0 *domain-path*/httpdocs/wp-content/themes/Divi/includes/builder/module/woocommerce/CartNotice.php(1011): et_builder_wc_render_module_template()
    #1 *domain-path*/httpdocs/wp-content/themes/Divi/includes/builder/module/woocommerce/CartNotice.php(1158): ET_Builder_Module_Woocommerce_Cart_Notice::get_cart_notice()
    #2 *domain-path*/httpdocs/wp-content/themes/Divi/includes/builder/class-et-builder-element.php(3331): ET_Builder_Module_Woocommerce_Cart_Notice->render()
    #3 *domain-path*/httpdocs/wp-includes/shortcodes.php(356): ET_Builder_Element->_render()
    #4 [internal function]: do_shortcode_tag()
    #5 *domain-path*/httpdocs/wp-includes/shortcodes.php(228): preg_replace_callback()
    #6 *domain-path*/httpdocs/wp- in *domain-path*/httpdocs/wp-content/themes/Divi/includes/builder/feature/woocommerce-modules.php on line 1095
    Thread Starter aerial2022

    (@aerial2022)

    Thanks for your quick reply. I have the system log and a fatal error log too. Is there a way I can send this to you privately please? I’d rather that our logs and data are not on a public forum. ??

    Thread Starter aerial2022

    (@aerial2022)

    Thanks Niklas, I’ll give this a go on my staging site with PayPal sandbox.

    Thread Starter aerial2022

    (@aerial2022)

    Thanks Kevin, do you know if 1.9.1 also fixes the separate “Could not retrieve order” issue too?

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