• Resolved simonwandc

    (@simonwandc)


    Hi, I’m having a problem with sessions expiring.

    What happens is if a required field is left empty (postcode for example) I get the “one or more fields is required” message and then a couple of seconds after that I get the “Session expired” message.

    This clears out the basket and the order process has to be redone. Does anybody know what may be causing this?

    I’m hoping it’s just a matter of updating settings in the php.ini?

    System report posted below.

    Thanks in advance for any help ??



    ### WordPress Environment ###

    WordPress address (URL): https://www.boardmansdesign.com/wp

    Site address (URL): https://www.boardmansdesign.com

    WC Version: 9.1.2

    Legacy REST API Package Version: The Legacy REST API plugin is not installed on this site.

    Action Scheduler Version: ? 3.7.4

    Log Directory Writable: ?

    WP Version: 6.6.1

    WP Multisite: –

    WP Memory Limit: 1 GB

    WP Debug Mode: –

    WP Cron: ?

    Language: en_GB

    External object cache: –

    ### Server Environment ###

    Server Info: Apache/2

    PHP Version: 7.4.33

    PHP Post Max Size: 128 MB

    PHP Time Limit: 120

    PHP Max Input Vars: 1000

    cURL Version: 7.29.0

    NSS/3.90

    SUHOSIN Installed: –

    MySQL Version: 5.5.5-10.4.27-MariaDB

    Max Upload Size: 128 MB

    Default Timezone is UTC: ?

    fsockopen/cURL: ?

    SoapClient: ?

    DOMDocument: ?

    GZip: ?

    Multibyte String: ?

    Remote Post: ?

    Remote Get: ?

    ### Database ###

    WC Database Version: 8.8.3

    WC Database Prefix: wp_

    Total Database Size: 161.60MB

    Database Data Size: 105.85MB

    Database Index Size: 55.75MB

    wp_woocommerce_sessions: Data: 0.02MB + Index: 0.02MB + Engine InnoDB

    wp_woocommerce_api_keys: Data: 0.02MB + Index: 0.03MB + Engine InnoDB

    wp_woocommerce_attribute_taxonomies: Data: 0.02MB + Index: 0.02MB + Engine InnoDB

    wp_woocommerce_downloadable_product_permissions: Data: 0.02MB + Index: 0.06MB + Engine InnoDB

    wp_woocommerce_order_items: Data: 0.02MB + Index: 0.02MB + Engine InnoDB

    wp_woocommerce_order_itemmeta: Data: 0.16MB + Index: 0.14MB + Engine InnoDB

    wp_woocommerce_tax_rates: Data: 0.02MB + Index: 0.06MB + Engine InnoDB

    wp_woocommerce_tax_rate_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB

    wp_woocommerce_shipping_zones: Data: 0.02MB + Index: 0.00MB + Engine InnoDB

    wp_woocommerce_shipping_zone_locations: Data: 0.02MB + Index: 0.05MB + Engine InnoDB

    wp_woocommerce_shipping_zone_methods: Data: 0.02MB + Index: 0.00MB + Engine InnoDB

    wp_woocommerce_payment_tokens: Data: 0.02MB + Index: 0.02MB + Engine InnoDB

    wp_woocommerce_payment_tokenmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB

    wp_woocommerce_log: Data: 0.02MB + Index: 0.02MB + Engine InnoDB

    wp_actionscheduler_actions: Data: 0.35MB + Index: 0.17MB + Engine MyISAM

    wp_actionscheduler_claims: Data: 0.00MB + Index: 0.00MB + Engine MyISAM

    wp_actionscheduler_groups: Data: 0.00MB + Index: 0.01MB + Engine MyISAM

    wp_actionscheduler_logs: Data: 0.22MB + Index: 0.19MB + Engine MyISAM

    wp_commentmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB

    wp_comments: Data: 0.02MB + Index: 0.09MB + Engine InnoDB

    wp_groups_capability: Data: 0.00MB + Index: 0.02MB + Engine MyISAM

    wp_groups_group: Data: 0.00MB + Index: 0.00MB + Engine MyISAM

    wp_groups_group_capability: Data: 0.00MB + Index: 0.00MB + Engine MyISAM

    wp_groups_user_capability: Data: 0.00MB + Index: 0.00MB + Engine MyISAM

    wp_groups_user_group: Data: 0.01MB + Index: 0.03MB + Engine MyISAM

    wp_iwp_backup_status: Data: 0.03MB + Index: 0.00MB + Engine MyISAM

    wp_iwp_file_list: Data: 0.02MB + Index: 0.02MB + Engine InnoDB

    wp_iwp_processed_iterator: Data: 0.00MB + Index: 0.00MB + Engine MyISAM

    wp_links: Data: 0.02MB + Index: 0.02MB + Engine InnoDB

    wp_mailchimp_carts: Data: 0.03MB + Index: 0.00MB + Engine InnoDB

    wp_mailchimp_jobs: Data: 0.02MB + Index: 0.00MB + Engine InnoDB

    wp_options: Data: 4.22MB + Index: 1.14MB + Engine InnoDB

    wp_postmeta: Data: 52.59MB + Index: 13.03MB + Engine InnoDB

    wp_posts: Data: 5.52MB + Index: 3.52MB + Engine InnoDB

    wp_smush_dir_images: Data: 0.00MB + Index: 0.00MB + Engine MyISAM

    wp_termmeta: Data: 0.06MB + Index: 0.06MB + Engine InnoDB

    wp_terms: Data: 0.08MB + Index: 0.09MB + Engine InnoDB

    wp_term_relationships: Data: 0.25MB + Index: 0.17MB + Engine InnoDB

    wp_term_taxonomy: Data: 0.08MB + Index: 0.09MB + Engine InnoDB

    wp_usermeta: Data: 1.36MB + Index: 1.44MB + Engine InnoDB

    wp_users: Data: 0.08MB + Index: 0.05MB + Engine InnoDB

    wp_wcsp_global_discount_rule_mapping: Data: 0.02MB + Index: 0.05MB + Engine InnoDB

    wp_wcsp_group_category_pricing_mapping: Data: 0.00MB + Index: 0.00MB + Engine MyISAM

    wp_wcsp_role_category_pricing_mapping: Data: 0.00MB + Index: 0.00MB + Engine MyISAM

    wp_wcsp_user_category_pricing_mapping: Data: 0.00MB + Index: 0.00MB + Engine MyISAM

    wp_wc_admin_notes: Data: 0.09MB + Index: 0.01MB + Engine MyISAM

    wp_wc_admin_note_actions: Data: 0.05MB + Index: 0.01MB + Engine MyISAM

    wp_wc_category_lookup: Data: 0.00MB + Index: 0.00MB + Engine MyISAM

    wp_wc_customer_lookup: Data: 0.02MB + Index: 0.03MB + Engine MyISAM

    wp_wc_download_log: Data: 0.02MB + Index: 0.03MB + Engine InnoDB

    wp_wc_orders: Data: 0.02MB + Index: 0.11MB + Engine InnoDB

    wp_wc_orders_meta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB

    wp_wc_order_addresses: Data: 0.02MB + Index: 0.06MB + Engine InnoDB

    wp_wc_order_coupon_lookup: Data: 0.00MB + Index: 0.00MB + Engine MyISAM

    wp_wc_order_operational_data: Data: 0.02MB + Index: 0.03MB + Engine InnoDB

    wp_wc_order_product_lookup: Data: 0.02MB + Index: 0.03MB + Engine MyISAM

    wp_wc_order_stats: Data: 0.00MB + Index: 0.01MB + Engine MyISAM

    wp_wc_order_tax_lookup: Data: 0.00MB + Index: 0.00MB + Engine MyISAM

    wp_wc_product_attributes_lookup: Data: 0.16MB + Index: 0.13MB + Engine InnoDB

    wp_wc_product_download_directories: Data: 0.02MB + Index: 0.02MB + Engine InnoDB

    wp_wc_product_meta_lookup: Data: 0.28MB + Index: 0.69MB + Engine InnoDB

    wp_wc_rate_limits: Data: 0.02MB + Index: 0.02MB + Engine InnoDB

    wp_wc_reserved_stock: Data: 0.00MB + Index: 0.00MB + Engine MyISAM

    wp_wc_tax_rate_classes: Data: 0.00MB + Index: 0.01MB + Engine MyISAM

    wp_wc_webhooks: Data: 0.02MB + Index: 0.02MB + Engine InnoDB

    wp_wfblockediplog: Data: 0.12MB + Index: 0.08MB + Engine MyISAM

    wp_wfblocks7: Data: 0.00MB + Index: 0.00MB + Engine MyISAM

    wp_wfconfig: Data: 0.40MB + Index: 0.02MB + Engine MyISAM

    wp_wfcrawlers: Data: 0.00MB + Index: 0.00MB + Engine MyISAM

    wp_wffilechanges: Data: 0.00MB + Index: 0.00MB + Engine MyISAM

    wp_wffilemods: Data: 0.28MB + Index: 0.08MB + Engine MyISAM

    wp_wfhits: Data: 0.49MB + Index: 0.10MB + Engine MyISAM

    wp_wfhoover: Data: 0.00MB + Index: 0.00MB + Engine MyISAM

    wp_wfissues: Data: 0.01MB + Index: 0.01MB + Engine MyISAM

    wp_wfknownfilelist: Data: 0.71MB + Index: 0.09MB + Engine MyISAM

    wp_wflivetraffichuman: Data: 0.00MB + Index: 0.00MB + Engine MyISAM

    wp_wflocs: Data: 0.00MB + Index: 0.00MB + Engine MyISAM

    wp_wflogins: Data: 0.31MB + Index: 0.07MB + Engine MyISAM

    wp_wfls_2fa_secrets: Data: 0.02MB + Index: 0.02MB + Engine InnoDB

    wp_wfls_settings: Data: 0.02MB + Index: 0.00MB + Engine InnoDB

    wp_wfnotifications: Data: 0.00MB + Index: 0.00MB + Engine MyISAM

    wp_wfpendingissues: Data: 0.00MB + Index: 0.01MB + Engine MyISAM

    wp_wfreversecache: Data: 0.00MB + Index: 0.00MB + Engine MyISAM

    wp_wfsnipcache: Data: 0.00MB + Index: 0.00MB + Engine MyISAM

    wp_wfstatus: Data: 0.07MB + Index: 0.04MB + Engine MyISAM

    wp_wftrafficrates: Data: 0.00MB + Index: 0.00MB + Engine MyISAM

    wp_wsal_metadata: Data: 17.55MB + Index: 24.08MB + Engine InnoDB

    wp_wsal_occurrences: Data: 19.55MB + Index: 9.02MB + Engine InnoDB

    wp_wt_iew_action_history: Data: 0.02MB + Index: 0.00MB + Engine MyISAM

    wp_wt_iew_cron: Data: 0.00MB + Index: 0.00MB + Engine MyISAM

    wp_wt_iew_ftp: Data: 0.00MB + Index: 0.00MB + Engine MyISAM

    wp_wt_iew_mapping_template: Data: 0.01MB + Index: 0.00MB + Engine MyISAM

    wp_wusp_group_product_price_mapping: Data: 0.09MB + Index: 0.17MB + Engine MyISAM

    wp_wusp_role_pricing_mapping: Data: 0.00MB + Index: 0.00MB + Engine MyISAM

    wp_wusp_rules: Data: 0.00MB + Index: 0.00MB + Engine MyISAM

    wp_wusp_subrules: Data: 0.00MB + Index: 0.00MB + Engine MyISAM

    wp_wusp_user_pricing_mapping: Data: 0.00MB + Index: 0.00MB + Engine MyISAM

    ### Post Type Counts ###

    acf-field: 95

    acf-field-group: 12

    attachment: 7038

    custom_css: 1

    faq: 17

    flamingo_contact: 944

    flamingo_inbound: 1366

    iwp_log: 940

    nav_menu_item: 34

    page: 29

    post: 194

    product: 379

    product_variation: 281

    revision: 538

    shop_order: 15

    wp_global_styles: 1

    wp_template: 2

    wpcf7_contact_form: 9

    ### Security ###

    Secure connection (HTTPS): ?

    Hide errors from visitors: ?

    ### Active Plugins (25) ###

    InfiniteWP - Client: by Revmakx – 1.13.0

    Advanced Custom Fields: Font Awesome: by Matt Keys – 4.0.9

    Advanced Custom Fields PRO: by WP Engine – 6.3.4

    Akismet Anti-spam: Spam Protection: by Automattic - Anti-spam Team – 5.3.3

    Contact Form 7: by Takayuki Miyoshi – 5.9.7

    Customer Specific Pricing for WooCommerce: by WisdmLabs – 4.6.14

    Yoast Duplicate Post: by Enrico Battocchi and Team Yoast – 4.5

    Messages: by Takayuki Miyoshi – 2.5

    Groups: by itthinx – 3.2.1

    Mailchimp for WooCommerce: by Mailchimp – 4.2.1

    MC4WP: Mailchimp for WordPress: by ibericode – 4.9.14

    Max Mega Menu: by megamenu.com – 3.3.2

    Order Delivery Date for WooCommerce (Lite version): by Tyche Softwares – 3.21.1

    Order Export & Order Import for WooCommerce: by WebToffee – 2.5.5

    Post Types Order: by Nsp Code – 2.2.3

    Import Export WordPress Users and WooCommerce Customers: by WebToffee – 2.5.6

    Williams & Crosby Custom Posts: by Andy Smith – 1.0.1

    W&C Design WordPress: by? –

    Widget Logic: by WPChef – 5.10.4

    Google Analytics for WooCommerce: by WooCommerce – 2.1.5

    WooPayments: by WooCommerce – 7.9.2 (update to version 8.0.1 is available)

    WooCommerce: by Automattic – 9.1.2 (update to version 9.1.4 is available)

    WordPress Importer: by wordpressdotorg – 0.8.2

    WP Migrate Lite: by WP Engine – 2.6.11

    WP Activity Log: by Melapress – 5.1.0

    ### Inactive Plugins (1) ###

    Smush: by WPMU DEV – 3.16.5

    ### Must Use Plugins (3) ###

    Bedrock Autoloader: by Roots – 1.0.3

    InfiniteWP - Client Loader: by Revmakx – 1.0.1

    Register Theme Directory: by Roots – 1.0.0

    ### 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)

    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: –

    HPOS feature enabled: –

    Order datastore: WC_Order_Data_Store_CPT

    HPOS data sync enabled: –

    ### Logging ###

    Enabled: ?

    Handler: Automattic\WooCommerce\Internal\Admin\Logging\LogHandlerFileV2

    Retention period: 30 days

    Level threshold: –

    Log directory size: 163 KB

    ### WC Pages ###

    Shop base: #100 - /collection/

    Basket: #101 - /cart/ -? Contains the [woocommerce_cart] shortcode

    Checkout: #102 - /checkout/ -? Contains the [woocommerce_checkout] shortcode

    My account: #103 - /my-account/

    Terms and conditions: ? Page not set

    ### Theme ###

    Name: Boardmans

    Version: 1.0.0

    Author URL: https://www.wandc.com

    Child Theme: ? – If you are modifying WooCommerce on a parent theme that you did not build

    personally we recommend using a child theme. See: How to create a child theme

    WooCommerce Support: ?

    ### Templates ###

    Overrides: boardmans-design/resources/views/woocommerce/archive-product.blade.php version 3.4.0 is out of date. The core version is 8.6.0

    boardmans-design/resources/views/woocommerce/cart/cart.php version 3.8.0 is out of date. The core version is 7.9.0

    boardmans-design/resources/views/woocommerce/checkout/form-billing.php version 3.0.9 is out of date. The core version is 3.6.0

    boardmans-design/resources/views/woocommerce/content-single-product.php version 3.4.0 is out of date. The core version is 3.6.0

    boardmans-design/resources/views/woocommerce/global/quantity-input.php version 3.6.0 is out of date. The core version is 7.8.0

    boardmans-design/resources/views/woocommerce/myaccount/dashboard.php version 2.6.0 is out of date. The core version is 4.4.0

    boardmans-design/resources/views/woocommerce/order/order-details-customer.php version 3.4.4 is out of date. The core version is 8.7.0

    boardmans-design/resources/views/woocommerce/single-product/add-to-cart/simple.php version 3.4.0 is out of date. The core version is 7.0.1

    boardmans-design/resources/views/woocommerce/single-product/add-to-cart/variable.php version 3.5.5 is out of date. The core version is 6.1.0

    boardmans-design/resources/views/woocommerce/single-product/product-attributes.php version 3.1.0 is out of date. The core version is 3.6.0

    boardmans-design/resources/views/woocommerce/single-product/short-description.php

    boardmans-design/resources/views/woocommerce/single-product.blade.php

    boardmans-design/resources/views/woocommerce/content-product_cat.php version 2.6.1 is out of date. The core version is 4.7.0

    Outdated Templates: ?

    Learn how to update

    ### WooPayments ###

    Version: 7.9.2

    Connected to WPCOM: ? No

    Logging: Disabled

    ### Admin ###

    Enabled Features: activity-panels

    analytics

    product-block-editor

    coupons

    core-profiler

    customize-store

    customer-effort-score-tracks

    import-products-task

    experimental-fashion-sample-products

    shipping-smart-defaults

    shipping-setting-tour

    homescreen

    marketing

    mobile-app-banner

    navigation

    onboarding

    onboarding-tasks

    product-custom-fields

    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

    launch-your-store

    Disabled Features: experimental-blocks

    minified-js

    pattern-toolkit-full-composability

    product-pre-publish-modal

    printful

    settings

    async-product-editor-category-field

    product-editor-template-system

    Daily Cron: ? Next scheduled: 2024-08-01 10:57:43 +01:00

    Options: ?

    Notes: 212

    Onboarding: completed

    ### Action Scheduler ###

    Canceled: 2

    Oldest: 2024-07-18 11:29:20 +0100

    Newest: 2024-07-19 14:06:19 +0100

    Complete: 1,108

    Oldest: 2024-07-01 13:02:23 +0100

    Newest: 2024-08-01 10:10:21 +0100

    Failed: 58

    Oldest: 2023-02-22 10:23:27 +0000

    Newest: 2024-02-27 11:45:23 +0000

    Pending: 1

    Oldest: 2024-08-02 01:54:18 +0100

    Newest: 2024-08-02 01:54:18 +0100

    ### Status report information ###

    Generated at: 2024-08-01 11:11:57 +01:00

    • This topic was modified 8 months ago by simonwandc.
    • This topic was modified 8 months ago by simonwandc.
    • This topic was modified 8 months ago by simonwandc.

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hey there, @simonwandc! Thanks for contacting us. I’m happy to help you.

    This clears out the basket and the order process has to be redone. Does anybody know what may be causing this?

    That is not good! Let’s investigate to figure out what is happening as this is not expected behavior.

    I see you are using the checkout shortcode, I checked on my website while using it and I was not able to replicate this issue.

    I also tried to check the issue on your website, but even after creating a test account it still said “login to see the prices” so I couldn’t add anything to the cart.

    Are you able to see the prices and add products to the cart if you are logged in with a regular customer account instead of yours?

    Furthermore, can you please share the Fatal error logs (if any) under WooCommerce > Status > Logs. Then you can use the selector to search for Fatal Errors.
    You could copy and paste your reply here or paste it via https://gist.github.com/ and send the link here.

    I don’t think this is related to the issue, but your SSR shows that your database is outdated. This can cause a lot of issues on the website.

    Please update it by either following the warning message a the top of the page on WooCommerce area of the dashboard or going to WooCommerce > Status > Tools > Update Database.

    Be sure you have a good backup in place of your full site and database. You can ask your host for backup functionality or you can consider using a service like Jetpack. If something goes wrong, you will be able to restore it.

    And I see you have outdated versions of WooCommerce and WooPayments.

    We recommend keeping everything updated. Regularly updating everything helps maintain your site’s security, performance, and compatibility while ensuring you benefit from the latest features and improvements.

    So please update WooCommerce, WooPayments, your theme, as well as any other plugin that has a newer version. ??

    Looking forward to your reply.

    Have a wonderful day!

    Thread Starter simonwandc

    (@simonwandc)

    Hi,

    Thanks for getting back to me, much appreciated! I’ve updated Woo Commerce and all other plugins as you suggested, and I’ve also run the update on the database.

    Could you tell me the name of the test account you setup? I think I will need to add you to some groups for you to be able to see the pricing and go through the order process.

    There is fatal error log below, this error appears multiple times in the log area –

    2024-07-31T00:58:24+00:00Critical Uncaught Symfony\Component\Debug\Exception\FatalThrowableError: Call to a member function get_cart() on null in /home/boardmansdesign/domains/boardmansdesign.com/public_html/app/uploads/cache/427a2bcc24d27fab490080aec2dc1d949dbb18d5.php:133 Additional context{ “error”: { “type”: 1, “file”: “/home/boardmansdesign/domains/boardmansdesign.com/public_html/app/uploads/cache/427a2bcc24d27fab490080aec2dc1d949dbb18d5.php”, “line”: 133 }, “backtrace”: [ “”, “#0 /home/boardmansdesign/domains/boardmansdesign.com/public_html/app/themes/boardmans-design/vendor/illuminate/view/Engines/PhpEngine.php(43): include()”, “#1 /home/boardmansdesign/domains/boardmansdesign.com/public_html/app/themes/boardmans-design/vendor/illuminate/view/Engines/CompilerEngine.php(59): Illuminate\View\Engines\PhpEngine->evaluatePath()”, “#2 /home/boardmansdesign/domains/boardmansdesign.com/public_html/app/themes/boardmans-design/vendor/illuminate/view/View.php(142): Illuminate\View\Engines\CompilerEngine->get()”, “#3 /home/boardmansdesign/domains/boardmansdesign.com/public_html/app/themes/boardmans-design/vendor/illuminate/view/View.php(125): Illuminate\View\View->getContents()”, “#4 /home/boardmansdesign/domains/boardmansdesign.com/public_html/app/themes” ] }

    Thanks for your help ??

    Hey, @simonwandc!

    Thanks for the information!

    Could you tell me the name of the test account you setup? I think I will need to add you to some groups for you to be able to see the pricing and go through the order process.

    It was Woo Test ??

    The critical error you are encountering typically means that the WooCommerce cart is not being properly initialized before it’s being accessed. This may be related to the issue.

    This can usually be cause by a conflict.

    Can you please run a conflict test to check if the issue persists?

    To test, you’ll first want to change the theme on your site to Storefront, then check to see if the issue is still present. If that resolves the issue, you’ll want to get in touch with your theme’s developer and see if they have an update or fix for you.

    If changing the theme doesn’t help, you’ll want to deactivate all plugins except for WooCommerce and take a look. If that fixes the problem, re-enable the other plugins one by one (gradually), checking after each, to see where the issue is coming from.

    — Be sure you have a good backup in place of your full site and database. You can ask your host for backup functionality or you can consider using a service like Jetpack. If something goes wrong, you will be able to restore it.

    — It is important to consider as well a staging functionality in case you would not like to touch your production site (you can ask your host if they offer this service), or you can use WP Staging for quickly spinning up a new test site.

    You can find more about this in this guide.

    Please let us know about your findings.

    Have a wonderful day!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Session expires if a required field is empty in the checkout form’ is closed to new replies.