• Resolved amadzafar

    (@amadzafar)


    I’m making a site where I need users logged in when the account is created during checkout completion. One of my sites auto logs the user and my other site doesn’t auto log but shows only thank you page without logging in. Not sure why is this behavior happening! Guest checkout is disabled too. These are my account settings in woocommerce https://i.imgur.com/KVpkamE.png.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Mirko P.

    (@rainfallnixfig)

    Hi @amadzafar!

    Thanks for reaching out.

    I was unable to replicate what you describe – once the customer creates an account during checkout and places an order, the customer is successfully created in WP Dashboard > Users and remains logged into the site.

    Does it work if you disable all plugins except WooCommerce and enable a default theme like Storefront or Twenty Twenty-Two? Can you also try using a different browser and/or navigating in private mode?

    If it doesn’t help, please share a copy of your site’s System Status. You can find it via WooCommerce > Status. Select “Get system report” and then “Copy for support”. Once you’ve done that, paste it here in your response.

    Can you also share a copy of any fatal error log found under WooCommerce > Status > Logs (if available)?

    Cheers.

    Thread Starter amadzafar

    (@amadzafar)

    Here is the system report. I’m using the same theme and plugins on other site where user auto logs in successfully after placing order.

    
    ### WordPress Environment ###
    
    WordPress address (URL): https://aiinviteonly.com
    Site address (URL): https://aiinviteonly.com
    WC Version: 6.7.0
    REST API Version: ? 6.7.0
    WC Blocks Version: ? 7.8.3
    Action Scheduler Version: ? 3.4.0
    Log Directory Writable: ?
    WP Version: 6.0.1
    WP Multisite: –
    WP Memory Limit: 256 MB
    WP Debug Mode: –
    WP Cron: ?
    Language: en_US
    External object cache: –
    
    ### Server Environment ###
    
    Server Info: Apache
    PHP Version: 7.4.30
    PHP Post Max Size: 128 MB
    PHP Time Limit: 30
    PHP Max Input Vars: 1000
    cURL Version: 7.61.1
    OpenSSL/1.1.1k
    
    SUHOSIN Installed: –
    MySQL Version: 8.0.29-cll-lve
    Max Upload Size: 128 MB
    Default Timezone is UTC: ?
    fsockopen/cURL: ?
    SoapClient: ?
    DOMDocument: ?
    GZip: ?
    Multibyte String: ?
    Remote Post: ?
    Remote Get: ?
    
    ### Database ###
    
    WC Database Version: 6.7.0
    WC Database Prefix: wp_
    Total Database Size: 9.19MB
    Database Data Size: 6.56MB
    Database Index Size: 2.63MB
    wp_woocommerce_sessions: Data: 0.05MB + 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.06MB + Index: 0.03MB + 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.03MB + 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.05MB + Index: 0.11MB + Engine InnoDB
    wp_actionscheduler_claims: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_actionscheduler_groups: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_actionscheduler_logs: Data: 0.05MB + Index: 0.03MB + Engine InnoDB
    wp_commentmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_comments: Data: 0.02MB + Index: 0.09MB + Engine InnoDB
    wp_e_events: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_e_submissions: Data: 0.02MB + Index: 0.23MB + Engine InnoDB
    wp_e_submissions_actions_log: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_e_submissions_values: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_links: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_mylisting_events: Data: 0.02MB + Index: 0.08MB + Engine InnoDB
    wp_mylisting_locations: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    wp_mylisting_relations: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
    wp_mylisting_visits: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_mylisting_workhours: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    wp_options: Data: 3.02MB + Index: 0.08MB + Engine InnoDB
    wp_postmeta: Data: 1.52MB + Index: 0.27MB + Engine InnoDB
    wp_posts: Data: 0.28MB + Index: 0.06MB + Engine InnoDB
    wp_term_relationships: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_term_taxonomy: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_termmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_terms: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_usermeta: Data: 0.05MB + Index: 0.03MB + Engine InnoDB
    wp_users: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    wp_wc_admin_note_actions: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_wc_admin_notes: Data: 0.05MB + Index: 0.00MB + Engine InnoDB
    wp_wc_category_lookup: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_wc_customer_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_wc_download_log: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_wc_order_coupon_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_wc_order_product_lookup: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
    wp_wc_order_stats: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    wp_wc_order_tax_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_wc_product_attributes_lookup: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_wc_product_download_directories: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_wc_product_meta_lookup: Data: 0.02MB + Index: 0.09MB + Engine InnoDB
    wp_wc_rate_limits: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_wc_reserved_stock: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_wc_tax_rate_classes: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_wc_webhooks: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_wfblockediplog: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_wfblocks7: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    wp_wfconfig: Data: 0.09MB + Index: 0.00MB + Engine InnoDB
    wp_wfcrawlers: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_wffilechanges: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_wffilemods: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_wfhits: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    wp_wfhoover: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_wfissues: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
    wp_wfknownfilelist: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_wflivetraffichuman: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_wflocs: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_wflogins: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    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.02MB + Index: 0.00MB + Engine InnoDB
    wp_wfpendingissues: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
    wp_wfreversecache: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_wfsnipcache: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    wp_wfstatus: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_wftrafficrates: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_wpforms_tasks_meta: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    
    ### Post Type Counts ###
    
    attachment: 5
    customize_changeset: 3
    elementor_library: 1
    nav_menu_item: 4
    page: 15
    post: 2
    product: 1
    revision: 282
    shop_coupon: 1
    shop_order: 32
    wc_membership_plan: 1
    wc_user_membership: 3
    wpcf7_contact_form: 1
    
    ### Security ###
    
    Secure connection (HTTPS): ?
    Hide errors from visitors: ?
    
    ### Active Plugins (12) ###
    
    Place Order Without Payment for WooCommerce: by Nitin Prakash – 2.2
    404page - your smart custom 404 error page: by Peter Raschendorfer – 11.3.1
    Classic Editor: by WordPress Contributors – 1.6.2
    Contact Form 7: by Takayuki Miyoshi – 5.6
    Duplicate Page: by mndpsingh287 – 4.4.8
    Elementor Pro: by Elementor.com – 3.6.5
    Elementor: by Elementor.com – 3.6.7
    Limit Login Attempts Reloaded: by Limit Login Attempts Reloaded – 2.24.1
    Checkout Field Editor for WooCommerce: by ThemeHigh – 1.6.1
    WooCommerce Memberships: by SkyVerge – 1.22.11
    WooCommerce: by Automattic – 6.7.0
    Wordfence Security: by Wordfence – 7.5.11
    
    ### Inactive Plugins (3) ###
    
    Akismet Anti-Spam: by Automattic – 4.2.2
    Hello Dolly: by Matt Mullenweg – 1.7.2
    WPForms Lite: by WPForms – 1.7.5.1
    
    ### Must Use Plugins (1) ###
    
    WordPress automation by App: by  –
    
    ### Settings ###
    
    API Enabled: –
    Force SSL: –
    Currency: USD ($)
    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: ?
    
    ### WC Pages ###
    
    Shop base: ? Page not set
    Cart: ? Page does not contain the [woocommerce_cart] shortcode or the woocommerce/cart block.
    Checkout: #319 - /application-form/
    My account: ? Page does not contain the [woocommerce_my_account] shortcode.
    Terms and conditions: ? Page not set
    
    ### Theme ###
    
    Name: My Listing Child
    Version: 1.1
    Author URL: https://27collective.net/
    Child Theme: ?
    Parent Theme Name: My Listing
    Parent Theme Version: 2.9.2
    Parent Theme Author URL: https://27collective.net/
    WooCommerce Support: ?
    
    ### Templates ###
    
    Archive Template: Your theme has a woocommerce.php file
    you will not be able to override the woocommerce/archive-product.php custom template since woocommerce.php has priority over archive-product.php. This is intended to prevent display issues.
    
    Overrides: –
    
    ### Memberships ###
    
    Restriction mode:: Redirect to page
    Public content:: –
    Excluded from discounts:: –
    Membership plans:: 1
    Registration Success:: Members: 3Access method: Product(s) purchaseAccess length: Specific length (1 days)
    
    ### 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
    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: ? Not scheduled
    Options: ?
    Notes: 33
    Onboarding: skipped
    
    ### Action Scheduler ###
    
    Complete: 142
    Oldest: 2022-07-14 15:59:08 +0000
    Newest: 2022-07-19 02:03:59 +0000
    
    Pending: 8
    Oldest: 2022-07-19 11:30:32 +0000
    Newest: 2022-07-24 22:33:11 +0000
    
    ### Status report information ###
    
    Generated at: 2022-07-19 02:47:09 +00:00
    

    Here is the log, these errors are from filters I’m using in function.php

    2022-07-19T00:00:34+00:00 CRITICAL Uncaught Error: Class name must be a valid object or a string in /home/amal1538/aiinviteonly.com/wp-content/themes/my-listing-child/functions.php:121
    Stack trace:
    #0 /home/amal1538/aiinviteonly.com/wp-includes/class-wp-hook.php(307): coupon_error_message_change('Please enter a ...', 111, NULL)
    #1 /home/amal1538/aiinviteonly.com/wp-includes/plugin.php(189): WP_Hook->apply_filters('Please enter a ...', Array)
    #2 /home/amal1538/aiinviteonly.com/wp-content/plugins/woocommerce/includes/class-wc-coupon.php(1097): apply_filters('woocommerce_cou...', 'Please enter a ...', 111, NULL)
    #3 /home/amal1538/aiinviteonly.com/wp-content/plugins/woocommerce/includes/class-wc-ajax.php(210): WC_Coupon::get_generic_coupon_error(111)
    #4 /home/amal1538/aiinviteonly.com/wp-includes/class-wp-hook.php(307): WC_AJAX::apply_coupon('')
    #5 /home/amal1538/aiinviteonly.com/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters('', Array)
    #6 /home/amal1538/aiinviteonly.com/wp-includes/plugin.php(474): WP_Hook->do_action(Array)
    #7 /home/a in /home/amal1538/aiinviteonly.com/wp-content/themes/my-listing-child/functions.php on line 121
    Plugin Support Sandip Mondal – a11n

    (@sandipmondal)

    Hi @amadzafar,

    Thanks for sharing the details.

    To address the fatal error, can you please remove that filter from functions.phpand check if the user is auto-logged in after checkout as expected?

    If the user is still not auto-logged in, please disable all the plugins except WooCommerce and switch to Storefront Theme and check.

    Let us know how it goes! ??

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Woocommerce new user not auto logging in after checkout.’ is closed to new replies.