• Resolved nic0net

    (@nic0net)


    Hi everyone,

    I’m trying to solve an annoying problem that affects my site (and others as well, see below). The visible effect of the problem is that, in the checkout page of the woocommerce plugin, the field of the form are pre-filled with old customer’s data.

    I think the problem is similar to these post’s:
    Same problem but I don’t have that plugin (form editor)
    Seems similar but I don’t have Gravity
    Like this one but happens also to logged in users

    To prevent everyone from loosing their time I clarify which causes I would exclude (because already checked):
    1. Caching problem
    2. Browser problem
    3. Mobile or desktop site is the same
    4. Different languages don’t change anything
    5. The woocommerce database and plugin versions are the same
    6. The error occurs also with default theme with all other plugins disabled

    I noticed a weird behaviour in the table “wp_woocommerce_sessions”: sometime, for example when a guest user goes to the checkout page, aside the real session, magically appears another session with “session_key” value 1 (should be 7 if it was a real new request) and the information are exactly those displayed (the wrong ones). Other times the session is perfect (holds the right info) however the filled values are the old ones.

    For completeness here I append the woocommerce status, feel free to ask for details, I’ll provide the needed information as much as I can.

    Thanks

    Woocommerce status:

    
    ### WordPress Environment ###
    
    Home URL: <em>siteurl</em>
    Site URL: <em>siteurl</em>
    WC Version: 3.5.7
    Log Directory Writable: ?
    WP Version: 5.1.1
    WP Multisite: –
    WP Memory Limit: 768 MB
    WP Debug Mode: ?
    WP Cron: ?
    Language: it_IT
    External object cache: –
    
    ### Server Environment ###
    
    Server Info: Apache
    PHP Version: 7.2.16
    PHP Post Max Size: 128 MB
    PHP Time Limit: 120
    PHP Max Input Vars: 1000
    cURL Version: 7.59.0
    OpenSSL/1.0.2q
    
    SUHOSIN Installed: –
    MySQL Version: 5.6.40-84.0-log
    Max Upload Size: 128 MB
    Default Timezone is UTC: ?
    fsockopen/cURL: ?
    SoapClient: ?
    DOMDocument: ?
    GZip: ?
    Multibyte String: ?
    Remote Post: ?
    Remote Get: ?
    
    ### Database ###
    
    WC Database Version: 3.5.7
    WC Database Prefix: wp_
    MaxMind GeoIP Database: ?
    Dimensione totale database: 60.66MB
    Dimensione dati database: 49.59MB
    Dimensione indice database: 11.07MB
    wp_woocommerce_sessions: Dati: 0.02MB + Indice: 0.02MB
    wp_woocommerce_api_keys: Dati: 0.02MB + Indice: 0.03MB
    wp_woocommerce_attribute_taxonomies: Dati: 0.02MB + Indice: 0.02MB
    wp_woocommerce_downloadable_product_permissions: Dati: 0.02MB + Indice: 0.05MB
    wp_woocommerce_order_items: Dati: 0.02MB + Indice: 0.02MB
    wp_woocommerce_order_itemmeta: Dati: 0.02MB + Indice: 0.03MB
    wp_woocommerce_tax_rates: Dati: 0.02MB + Indice: 0.06MB
    wp_woocommerce_tax_rate_locations: Dati: 0.02MB + Indice: 0.03MB
    wp_woocommerce_shipping_zones: Dati: 0.02MB + Indice: 0.00MB
    wp_woocommerce_shipping_zone_locations: Dati: 0.02MB + Indice: 0.03MB
    wp_woocommerce_shipping_zone_methods: Dati: 0.02MB + Indice: 0.00MB
    wp_woocommerce_payment_tokens: Dati: 0.02MB + Indice: 0.02MB
    wp_woocommerce_payment_tokenmeta: Dati: 0.02MB + Indice: 0.03MB
    wp_woocommerce_log: Dati: 0.02MB + Indice: 0.02MB
    wp_commentmeta: Dati: 0.02MB + Indice: 0.03MB
    wp_comments: Dati: 0.02MB + Indice: 0.09MB
    wp_cuteslider: Dati: 0.00MB + Indice: 0.00MB
    wp_failed_jobs: Dati: 0.02MB + Indice: 0.00MB
    wp_icl_cms_nav_cache: Dati: 0.02MB + Indice: 0.00MB
    wp_icl_content_status: Dati: 0.02MB + Indice: 0.02MB
    wp_icl_core_status: Dati: 0.02MB + Indice: 0.02MB
    wp_icl_flags: Dati: 0.02MB + Indice: 0.02MB
    wp_icl_languages: Dati: 0.02MB + Indice: 0.03MB
    wp_icl_languages_translations: Dati: 0.19MB + Indice: 0.11MB
    wp_icl_locale_map: Dati: 0.02MB + Indice: 0.00MB
    wp_icl_message_status: Dati: 0.02MB + Indice: 0.03MB
    wp_icl_mo_files_domains: Dati: 0.02MB + Indice: 0.02MB
    wp_icl_node: Dati: 0.02MB + Indice: 0.00MB
    wp_icl_reminders: Dati: 0.02MB + Indice: 0.00MB
    wp_icl_strings: Dati: 3.52MB + Indice: 4.81MB
    wp_icl_string_packages: Dati: 0.02MB + Indice: 0.00MB
    wp_icl_string_pages: Dati: 0.08MB + Indice: 0.05MB
    wp_icl_string_positions: Dati: 0.02MB + Indice: 0.02MB
    wp_icl_string_status: Dati: 0.02MB + Indice: 0.02MB
    wp_icl_string_translations: Dati: 1.52MB + Indice: 0.39MB
    wp_icl_string_urls: Dati: 0.02MB + Indice: 0.02MB
    wp_icl_translate: Dati: 9.52MB + Indice: 1.52MB
    wp_icl_translate_job: Dati: 0.02MB + Indice: 0.02MB
    wp_icl_translations: Dati: 0.13MB + Indice: 0.33MB
    wp_icl_translation_batches: Dati: 0.02MB + Indice: 0.00MB
    wp_icl_translation_status: Dati: 12.52MB + Indice: 0.02MB
    wp_links: Dati: 0.02MB + Indice: 0.02MB
    wp_mailchimp_carts: Dati: 0.02MB + Indice: 0.00MB
    wp_options: Dati: 3.02MB + Indice: 0.06MB
    wp_postmeta: Dati: 15.06MB + Indice: 2.42MB
    wp_posts: Dati: 1.16MB + Indice: 0.31MB
    wp_queue: Dati: 0.02MB + Indice: 0.00MB
    wp_revslider_css: Dati: 0.13MB + Indice: 0.00MB
    wp_revslider_layer_animations: Dati: 0.02MB + Indice: 0.00MB
    wp_revslider_navigations: Dati: 0.02MB + Indice: 0.00MB
    wp_revslider_sliders: Dati: 0.05MB + Indice: 0.00MB
    wp_revslider_slides: Dati: 1.52MB + Indice: 0.00MB
    wp_revslider_static_slides: Dati: 0.02MB + Indice: 0.00MB
    wp_sib_model_forms: Dati: 0.02MB + Indice: 0.00MB
    wp_sib_model_lang: Dati: 0.02MB + Indice: 0.00MB
    wp_sib_model_users: Dati: 0.02MB + Indice: 0.00MB
    wp_termmeta: Dati: 0.02MB + Indice: 0.03MB
    wp_terms: Dati: 0.02MB + Indice: 0.03MB
    wp_term_relationships: Dati: 0.06MB + Indice: 0.05MB
    wp_term_taxonomy: Dati: 0.02MB + Indice: 0.03MB
    wp_usermeta: Dati: 0.05MB + Indice: 0.03MB
    wp_users: Dati: 0.02MB + Indice: 0.05MB
    wp_wcpdf_invoice_number: Dati: 0.02MB + Indice: 0.00MB
    wp_wc_download_log: Dati: 0.02MB + Indice: 0.03MB
    wp_wc_webhooks: Dati: 0.02MB + Indice: 0.02MB
    wp_wdi_feeds: Dati: 0.02MB + Indice: 0.02MB
    wp_wdi_themes: Dati: 0.02MB + Indice: 0.02MB
    wp_yoast_seo_links: Dati: 0.02MB + Indice: 0.02MB
    wp_yoast_seo_meta: Dati: 0.02MB + Indice: 0.00MB
    
    ### Post Type Counts ###
    
    attachment: 1120
    custom_css: 2
    customize_changeset: 3
    nav_menu_item: 107
    page: 26
    post: 6
    product: 226
    revision: 172
    shop_order: 3
    wpforms: 2
    zn_layout: 3
    zn_pb_templates: 2
    znpb_template_mngr: 4
    
    ### Security ###
    
    Secure connection (HTTPS): ?
    Hide errors from visitors: ?I messaggi di errore non saranno mostrati ai visitatori.
    
    ### Active Plugins (8) ###
    
    WPML Multilingual CMS: by OnTheGoSystems – 4.2.4.1
    Duplicate Post: by Enrico Battocchi – 3.2.2
    WooCommerce Multilingual: by OnTheGoSystems – 4.4.2.1
    WooCommerce: by Automattic – 3.5.7
    WPML CMS Nav: by OnTheGoSystems – 1.5.0
    WPML Media: by OnTheGoSystems – 2.5.1
    WPML String Translation: by OnTheGoSystems – 2.10.2
    WPML Translation Management: by OnTheGoSystems – 2.8.3
    
    ### Settings ###
    
    API Enabled: ?
    Force SSL: –
    Currency: EUR (€)
    Currency Position: left
    Thousand Separator: .
    Decimal Separator: ,
    Number of Decimals: 0
    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)
    exclude-from-search (exclude-from-search-en)
    exclude-from-search (exclude-from-search-es)
    featured (featured)
    featured (featured-en)
    featured (featured-es)
    outofstock (outofstock)
    outofstock (outofstock-es)
    rated-1 (rated-1)
    rated-2 (rated-2)
    rated-3 (rated-3)
    rated-4 (rated-4)
    rated-5 (rated-5)
    
    ### WC Pages ###
    
    Shop base: #4699 - shop/
    Carrello: #4662 - shopping-cart/
    Cassa: #4680 - checkout/
    Il mio account: #4661 - my-account/
    Termini e condizioni: #4702 - terms-and-conditions/
    
    ### Theme ###
    
    Name: Kallyas Child Theme
    Version: 4.0.0
    Author URL: https://themeforest.net/user/hogash
    Child Theme: ?
    Parent Theme Name: Kallyas
    Parent Theme Version: 4.17.0
    Parent Theme Author URL: https://themeforest.net/user/hogash
    WooCommerce Support: ?
    
    ### Templates ###
    
    Overrides: kallyas/woocommerce/product-searchform.php
    
    • This topic was modified 5 years, 11 months ago by nic0net. Reason: added status
Viewing 11 replies - 1 through 11 (of 11 total)
  • jessepearson

    (@jessepearson)

    Automattic Happiness Engineer

    @nic0net Were you able to get this resolved on your end? From the sound of it, you have looked over caching and the information stored in browsers. The only other thing I can think of in this instance would be that the sessions table is not auto incrementing as it should, causing sessions to be passed from user to user. You could get your host to help you with seeing if the table is set to auto increment.

    Hi, What was the solution to this. I have exactly the same issue??

    Thanks

    Hi, I am also having this issue. I have found others with this issue but no solution yet even though they are marked resolved. Anyone have any thoughts?

    I am having the same issue. Is it sessions related? This is a crazy error. I could only replicate it once and now I can’t do it again but customers are reporting that other peoples private data is displayed on their screen. : (

    So frustrated with this!

    • This reply was modified 4 years, 8 months ago by vastdesign.

    Was this resolved? We are still experiencing this issue …

    This is not resolved for me. I am still having this issue.

    I have also submitted a new post on this. Sorry.

    We had the same issue and narrowed it down to Sucuri Caching. Once I disabled Sucuri Cache it solved the issue. We already had WP Fastest Cache running which may have caused a conflict?

    I just encountered this issue with a client today. Hope this helps someone out.

    If you haven’t already temporarily disabled caching plugins on your site, then I recommend doing so.

    Also visit the server host (Bluehost, Siteground, HostGator, etc.) and temporarily disable any server-side caching like NGINX.

    If the issue still exists, try adding this line of code to the site’s functions.php in the theme editor as a permanent solution:

    // Custom functions
    add_filter('woocommerce_checkout_get_value','__return_empty_string', 1, 1);

    This will remove any pre-filled data on the checkout page.

    The last step should solve your problem but is more of a last resort option if you’ll never need pre-fill info on the checkout.

    A third option is to clear any Woocommerce caching. Go to WooCommerce -> Status -> Tools and you can find all the caching options here. I recommend you backup the site with All-in-One WP or another plugin to prevent any issues before clearing these options.

    For more information and resources check this Stack Exchange Post:
    https://stackoverflow.com/questions/43314610/remove-woocommerce-checkout-fields-values

    This issue is definitely a caching problem so I recommend narrowing down which plugin (client-side) or if it’s your server (server-side) and go from there.

    Best of luck!

    vastdesign

    (@vastdesign)

    @meerkhatdesign we just had this happen again. Our host enabled NGINX on the server and we were running WP Fastest Cache and it leaked previous customers data again!

    This is horrible from a customers perspective. I wish Woocommerce would do something about it.

    Do you know If we should not run any type of Server-side cache? Our host wants to enable Cachewall instead of NGINX.

    marketingbeaver

    (@marketingbeaver)

    We have the same issue we disabled all the cache and flushed it… couldn’t replicate on desktop but it was intermittent on mobile.. Still not resolved used the code up top thank you for that. But you would think this is a woocommerce issue and should be updated by them.

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Checkout form pre-filled with old visitor’s data’ is closed to new replies.