• Resolved dominmax

    (@dominmax)


    Hello,
    When I go to Analytics > VARIATIONS and when I set more than 3-5 days (different dates react differently) – data loading… and everything (in the section) disappears but h1 Variations.
    The last day report working and e.g. 3 last days but more days is not possible to report.
    (I updated everything, I turned off all plugins but woocommerce but nothing has changed.)

    In the console there is such a bug reported:

    TypeError: Cannot read property 'indexOf' of undefined
        at v (analytics-report-variations.js?ver=2.1.5:1)
        at D (analytics-report-variations.js?ver=2.1.5:1)
        at analytics-report-variations.js?ver=2.1.5:1
        at c (lodash.min.js?ver=4.17.19:10)
        at vf (lodash.min.js?ver=4.17.19:84)
        at r.value (analytics-report-variations.js?ver=2.1.5:1)
        at X (0.js?ver=2.1.5:1)
        at A (0.js?ver=2.1.5:1)
        at we (react-dom.min.js?ver=16.13.1:84)
        at He (react-dom.min.js?ver=16.13.1:97)
    Me @ react-dom.min.js?ver=16.13.1:125
    analytics-report.js?ver=2.1.5:1 TypeError: Cannot read property 'indexOf' of undefined
        at v (analytics-report-variations.js?ver=2.1.5:1)
        at D (analytics-report-variations.js?ver=2.1.5:1)
        at analytics-report-variations.js?ver=2.1.5:1
        at c (lodash.min.js?ver=4.17.19:10)
        at vf (lodash.min.js?ver=4.17.19:84)
        at r.value (analytics-report-variations.js?ver=2.1.5:1)
        at X (0.js?ver=2.1.5:1)
        at A (0.js?ver=2.1.5:1)
        at we (react-dom.min.js?ver=16.13.1:84)
        at He (react-dom.min.js?ver=16.13.1:97)
    
    The status system is:
    
    ### WordPress Environment ###
    
    WordPress address (URL): https://cx.neodirect.pl
    Site address (URL): https://cx.neodirect.pl
    WC Version: 5.2.2
    REST API Version: ? 5.2.2
    WC Blocks Version: ? 4.7.2
    Action Scheduler Version: ? 3.1.6
    WC Admin Version: ? 2.1.5
    Log Directory Writable: ?
    WP Version: 5.7.1
    WP Multisite: –
    WP Memory Limit: 256 MB
    WP Debug Mode: –
    WP Cron: ?
    Language: pl_PL
    External object cache: –
    
    ### Server Environment ###
    
    Server Info: LiteSpeed
    PHP Version: 7.4.15
    PHP Post Max Size: 128 MB
    PHP Time Limit: 180
    PHP Max Input Vars: 10000
    cURL Version: 7.71.0
    OpenSSL/1.1.1d
    
    SUHOSIN Installed: –
    MySQL Version: 10.3.27-MariaDB-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: 5.0.0
    WC Database Prefix: wp_
    Ca?kowity rozmiar bazy danych: 32.93MB
    Rozmiar bazy danych: 25.68MB
    Rozmiar indeksu bazy danych: 7.25MB
    wp_woocommerce_sessions: Dane: 0.08MB + Indeks: 0.02MB + Silnik InnoDB
    wp_woocommerce_api_keys: Dane: 0.02MB + Indeks: 0.03MB + Silnik InnoDB
    wp_woocommerce_attribute_taxonomies: Dane: 0.02MB + Indeks: 0.02MB + Silnik InnoDB
    wp_woocommerce_downloadable_product_permissions: Dane: 0.02MB + Indeks: 0.06MB + Silnik InnoDB
    wp_woocommerce_order_items: Dane: 0.08MB + Indeks: 0.02MB + Silnik InnoDB
    wp_woocommerce_order_itemmeta: Dane: 0.31MB + Indeks: 0.39MB + Silnik InnoDB
    wp_woocommerce_tax_rates: Dane: 0.02MB + Indeks: 0.06MB + Silnik InnoDB
    wp_woocommerce_tax_rate_locations: Dane: 0.02MB + Indeks: 0.03MB + Silnik InnoDB
    wp_woocommerce_shipping_zones: Dane: 0.02MB + Indeks: 0.00MB + Silnik InnoDB
    wp_woocommerce_shipping_zone_locations: Dane: 0.02MB + Indeks: 0.03MB + Silnik InnoDB
    wp_woocommerce_shipping_zone_methods: Dane: 0.02MB + Indeks: 0.00MB + Silnik InnoDB
    wp_woocommerce_payment_tokens: Dane: 0.02MB + Indeks: 0.02MB + Silnik InnoDB
    wp_woocommerce_payment_tokenmeta: Dane: 0.02MB + Indeks: 0.03MB + Silnik InnoDB
    wp_woocommerce_log: Dane: 0.02MB + Indeks: 0.02MB + Silnik InnoDB
    wp_actionscheduler_actions: Dane: 0.08MB + Indeks: 0.11MB + Silnik InnoDB
    wp_actionscheduler_claims: Dane: 0.02MB + Indeks: 0.02MB + Silnik InnoDB
    wp_actionscheduler_groups: Dane: 0.02MB + Indeks: 0.02MB + Silnik InnoDB
    wp_actionscheduler_logs: Dane: 0.06MB + Indeks: 0.03MB + Silnik InnoDB
    wp_commentmeta: Dane: 0.02MB + Indeks: 0.03MB + Silnik InnoDB
    wp_comments: Dane: 0.20MB + Indeks: 0.22MB + Silnik InnoDB
    wp_links: Dane: 0.02MB + Indeks: 0.02MB + Silnik InnoDB
    wp_mailpoet_custom_fields: Dane: 0.02MB + Indeks: 0.02MB + Silnik InnoDB
    wp_mailpoet_dynamic_segment_filters: Dane: 0.02MB + Indeks: 0.02MB + Silnik InnoDB
    wp_mailpoet_feature_flags: Dane: 0.02MB + Indeks: 0.02MB + Silnik InnoDB
    wp_mailpoet_forms: Dane: 0.02MB + Indeks: 0.00MB + Silnik InnoDB
    wp_mailpoet_log: Dane: 0.02MB + Indeks: 0.00MB + Silnik InnoDB
    wp_mailpoet_mapping_to_external_entities: Dane: 0.02MB + Indeks: 0.02MB + Silnik InnoDB
    wp_mailpoet_newsletters: Dane: 0.02MB + Indeks: 0.03MB + Silnik InnoDB
    wp_mailpoet_newsletter_links: Dane: 0.02MB + Indeks: 0.05MB + Silnik InnoDB
    wp_mailpoet_newsletter_option: Dane: 0.02MB + Indeks: 0.02MB + Silnik InnoDB
    wp_mailpoet_newsletter_option_fields: Dane: 0.02MB + Indeks: 0.02MB + Silnik InnoDB
    wp_mailpoet_newsletter_posts: Dane: 0.02MB + Indeks: 0.02MB + Silnik InnoDB
    wp_mailpoet_newsletter_segment: Dane: 0.02MB + Indeks: 0.02MB + Silnik InnoDB
    wp_mailpoet_newsletter_templates: Dane: 2.52MB + Indeks: 0.00MB + Silnik InnoDB
    wp_mailpoet_scheduled_tasks: Dane: 0.02MB + Indeks: 0.03MB + Silnik InnoDB
    wp_mailpoet_scheduled_task_subscribers: Dane: 0.02MB + Indeks: 0.02MB + Silnik InnoDB
    wp_mailpoet_segments: Dane: 0.02MB + Indeks: 0.02MB + Silnik InnoDB
    wp_mailpoet_sending_queues: Dane: 0.02MB + Indeks: 0.03MB + Silnik InnoDB
    wp_mailpoet_settings: Dane: 0.02MB + Indeks: 0.02MB + Silnik InnoDB
    wp_mailpoet_statistics_clicks: Dane: 0.02MB + Indeks: 0.05MB + Silnik InnoDB
    wp_mailpoet_statistics_forms: Dane: 0.02MB + Indeks: 0.02MB + Silnik InnoDB
    wp_mailpoet_statistics_newsletters: Dane: 0.02MB + Indeks: 0.03MB + Silnik InnoDB
    wp_mailpoet_statistics_opens: Dane: 0.02MB + Indeks: 0.08MB + Silnik InnoDB
    wp_mailpoet_statistics_unsubscribes: Dane: 0.02MB + Indeks: 0.05MB + Silnik InnoDB
    wp_mailpoet_statistics_woocommerce_purchases: Dane: 0.02MB + Indeks: 0.06MB + Silnik InnoDB
    wp_mailpoet_stats_notifications: Dane: 0.02MB + Indeks: 0.03MB + Silnik InnoDB
    wp_mailpoet_subscribers: Dane: 0.09MB + Indeks: 0.11MB + Silnik InnoDB
    wp_mailpoet_subscriber_custom_field: Dane: 0.02MB + Indeks: 0.02MB + Silnik InnoDB
    wp_mailpoet_subscriber_ips: Dane: 0.02MB + Indeks: 0.02MB + Silnik InnoDB
    wp_mailpoet_subscriber_segment: Dane: 0.06MB + Indeks: 0.03MB + Silnik InnoDB
    wp_mailpoet_user_flags: Dane: 0.02MB + Indeks: 0.02MB + Silnik InnoDB
    wp_options: Dane: 4.39MB + Indeks: 0.16MB + Silnik InnoDB
    wp_postmeta: Dane: 9.52MB + Indeks: 3.03MB + Silnik InnoDB
    wp_posts: Dane: 4.52MB + Indeks: 0.36MB + Silnik InnoDB
    wp_remindmedb: Dane: 0.02MB + Indeks: 0.00MB + Silnik InnoDB
    wp_social_users: Dane: 0.02MB + Indeks: 0.03MB + Silnik InnoDB
    wp_termmeta: Dane: 0.02MB + Indeks: 0.03MB + Silnik InnoDB
    wp_terms: Dane: 0.06MB + Indeks: 0.03MB + Silnik InnoDB
    wp_term_relationships: Dane: 0.11MB + Indeks: 0.06MB + Silnik InnoDB
    wp_term_taxonomy: Dane: 0.06MB + Indeks: 0.03MB + Silnik InnoDB
    wp_usermeta: Dane: 0.34MB + Indeks: 0.31MB + Silnik InnoDB
    wp_users: Dane: 0.05MB + Indeks: 0.05MB + Silnik InnoDB
    wp_wc_admin_notes: Dane: 0.02MB + Indeks: 0.00MB + Silnik InnoDB
    wp_wc_admin_note_actions: Dane: 0.02MB + Indeks: 0.02MB + Silnik InnoDB
    wp_wc_category_lookup: Dane: 0.02MB + Indeks: 0.00MB + Silnik InnoDB
    wp_wc_customer_lookup: Dane: 0.06MB + Indeks: 0.03MB + Silnik InnoDB
    wp_wc_download_log: Dane: 0.02MB + Indeks: 0.03MB + Silnik InnoDB
    wp_wc_order_coupon_lookup: Dane: 0.02MB + Indeks: 0.03MB + Silnik InnoDB
    wp_wc_order_product_lookup: Dane: 0.06MB + Indeks: 0.06MB + Silnik InnoDB
    wp_wc_order_stats: Dane: 0.06MB + Indeks: 0.05MB + Silnik InnoDB
    wp_wc_order_tax_lookup: Dane: 0.02MB + Indeks: 0.03MB + Silnik InnoDB
    wp_wc_product_meta_lookup: Dane: 0.06MB + Indeks: 0.09MB + Silnik InnoDB
    wp_wc_reserved_stock: Dane: 0.02MB + Indeks: 0.00MB + Silnik InnoDB
    wp_wc_tax_rate_classes: Dane: 0.02MB + Indeks: 0.02MB + Silnik InnoDB
    wp_wc_webhooks: Dane: 0.02MB + Indeks: 0.02MB + Silnik InnoDB
    wp_woobe_history: Dane: 0.09MB + Indeks: 0.05MB + Silnik InnoDB
    wp_woobe_history_bulk: Dane: 0.02MB + Indeks: 0.03MB + Silnik InnoDB
    wp_woocommerce_p24_data: Dane: 0.00MB + Indeks: 0.01MB + Silnik MyISAM
    wp_yith_wcwl: Dane: 0.02MB + Indeks: 0.02MB + Silnik InnoDB
    wp_yith_wcwl_lists: Dane: 0.02MB + Indeks: 0.03MB + Silnik InnoDB
    wp_yoast_indexable: Dane: 1.52MB + Indeks: 0.45MB + Silnik InnoDB
    wp_yoast_indexable_hierarchy: Dane: 0.06MB + Indeks: 0.05MB + Silnik InnoDB
    wp_yoast_migrations: Dane: 0.02MB + Indeks: 0.02MB + Silnik InnoDB
    wp_yoast_primary_term: Dane: 0.02MB + Indeks: 0.03MB + Silnik InnoDB
    wp_yoast_seo_links: Dane: 0.06MB + Indeks: 0.03MB + Silnik InnoDB
    
    ### Post Type Counts ###
    
    attachment: 286
    br_sale_report: 1
    custom_css: 2
    customize_changeset: 10
    mailpoet_page: 1
    nav_menu_item: 39
    oembed_cache: 2
    page: 27
    polylang_mo: 2
    popup: 5
    popup_theme: 8
    post: 2
    postman_sent_mail: 250
    product: 42
    product_variation: 220
    revision: 232
    shop_coupon: 1
    shop_order: 255
    ux_template: 1
    wpcf7_contact_form: 3
    
    ### Security ###
    
    Secure connection (HTTPS): ?
    Hide errors from visitors: ?
    
    ### Active Plugins (1) ###
    
    WooCommerce: przez Automattic – 5.2.2
    
    ### Inactive Plugins (33) ###
    
    Add-on Contact Form 7 - Mailpoet 3: przez Tikweb – 1.3.16
    Advanced Order Export For WooCommerce: przez AlgolPlus – 3.1.8
    Apaczka.pl Mapa Punktów: przez Inspire Labs – 1.1.3
    BEAR - Bulk Editor and Products Manager: przez realmag777 – 2.0.7
    Classic Editor: przez WordPress Contributors – 1.6
    Contact Form 7: przez Takayuki Miyoshi – 5.4
    Flexible Checkout Fields: przez WP Desk – 3.0.8
    Flexible Shipping: przez WP Desk – 4.3.1
    GDPR Cookie Consent: przez WebToffee – 2.0.1
    Google Tag Manager for WordPress: przez Thomas Geiger – 1.12.3
    Image Regenerate & Select Crop: przez Iulia Cazan – 5.5
    InPost for WooCommerce: przez Inspire Labs – 1.3.7
    Limit Login Attempts Reloaded: przez Limit Login Attempts Reloaded – 2.21.1
    Loco Translate: przez Tim Whitlock – 2.5.2
    MailPoet 3 (New): przez MailPoet – 3.60.9
    Nextend Social Login: przez Nextendweb – 3.0.27
    Polylang for WooCommerce: przez WP SYNTEX – 1.5
    Polylang Pro: przez WP SYNTEX – 2.8.4
    Popup Maker: przez Popup Maker – 1.16.1
    Post SMTP: przez Yehuda Hassine – 2.0.23
    Remind Me: przez Ozibal – 1.0.9
    Safe SVG: przez Daryll Doyle – 1.9.9
    Sales Report for WooCommerce: przez BeRocket – 3.5.4
    UpdraftPlus - Backup/Restore: przez UpdraftPlus.Com
    DavidAnderson – 1.16.53
    
    Widget Shortcode: przez Hassan Derakhshandeh – 0.3.5
    WooCommerce Active Payments: przez WP Desk – 3.5.3
    WooCommerce Admin: przez WooCommerce – 2.2.1
    WooCommerce Multi Currency Premium: przez VillaTheme – 2.1.11
    WooCommerce Product Variations Swatches Premium: przez VillaTheme – 1.0.2.6
    WooCommerce Przelewy24 Payment Gateway: przez DialCom24 Sp. z o.o. – 1.0.8
    YITH WooCommerce Wishlist: przez YITH – 3.0.21
    Yoast Duplicate Post: przez Enrico Battocchi & Team Yoast – 4.1.1
    Yoast SEO: przez Team Yoast – 15.9.2
    
    ### Must Use Plugins (1) ###
    
    installatron_hide_status_test.php: przez  –
    
    ### Settings ###
    
    API Enabled: –
    Force SSL: –
    Currency: PLN (z?)
    Currency Position: right_space
    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)
    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: –
    
    ### WC Pages ###
    
    Strona sklepu: #148 - /sklep/
    Koszyk: #149 - /koszyk/
    Zamówienie: #150 - /zamowienie/
    Moje konto: #151 - /moje-konto/
    Regulamin: #152 - /regulamin/
    
    ### Theme ###
    
    Name: Flatsome Child
    Version: 3.0
    Author URL: 
    Child Theme: ?
    Parent Theme Name: Flatsome
    Parent Theme Version: 3.13.1
    Parent Theme Author URL: https://www.uxthemes.com/
    WooCommerce Support: ?
    
    ### Templates ###
    
    Overrides: flatsome/woocommerce/archive-product.php
    flatsome/woocommerce/cart/cart-empty.php
    flatsome/woocommerce/cart/cart-shipping.php
    flatsome/woocommerce/cart/cart.php
    flatsome/woocommerce/checkout/form-checkout.php
    flatsome/woocommerce/checkout/form-coupon.php
    flatsome/woocommerce/checkout/terms.php
    flatsome/woocommerce/checkout/thankyou.php
    flatsome/woocommerce/content-product-cat.php
    flatsome/woocommerce/content-product.php
    flatsome/woocommerce/content-single-product.php
    flatsome/woocommerce/content-widget-product.php
    flatsome/woocommerce/global/breadcrumb.php
    flatsome/woocommerce/global/quantity-input.php
    flatsome/woocommerce/global/wrapper-end.php
    flatsome/woocommerce/global/wrapper-start.php
    flatsome/woocommerce/loop/loop-end.php
    flatsome/woocommerce/loop/loop-start.php
    flatsome/woocommerce/loop/pagination.php
    flatsome/woocommerce/loop/result-count.php
    flatsome/woocommerce/loop/sale-flash.php
    flatsome/woocommerce/myaccount/form-login.php
    flatsome/woocommerce/myaccount/navigation.php
    flatsome/woocommerce/notices/error.php
    flatsome/woocommerce/notices/notice.php
    flatsome/woocommerce/notices/success.php
    flatsome/woocommerce/product-searchform.php
    flatsome/woocommerce/single-product/photoswipe.php
    flatsome/woocommerce/single-product/price.php
    flatsome/woocommerce/single-product/product-image.php
    flatsome/woocommerce/single-product/product-thumbnails.php
    flatsome/woocommerce/single-product/rating.php
    flatsome/woocommerce/single-product/related.php
    flatsome/woocommerce/single-product/review.php
    flatsome/woocommerce/single-product/sale-flash.php
    flatsome/woocommerce/single-product/share.php
    flatsome/woocommerce/single-product/short-description.php
    flatsome/woocommerce/single-product/tabs/tabs.php
    flatsome/woocommerce/single-product/title.php
    flatsome/woocommerce/single-product/up-sells.php
    flatsome/woocommerce/single-product-reviews.php
    flatsome/woocommerce/single-product.php
    flatsome/woocommerce/content-product_cat.php
    
    ### Action Scheduler ###
    
    Zrealizowane: 154
    Oldest: 2021-03-22 15:54:34 +0000
    Newest: 2021-04-22 15:02:02 +0000
    
    ### Status report information ###
    
    Generated at: 2021-04-22 16:03:20 +01:00
    

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

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Support Jess – a11n

    (@jlundie)

    Hi @dominmax,

    Thanks for reaching out to us on this issue, and for providing details about the error you are seeing in your console.

    Could you please let us know if any of your product variations have “Any [attribute]” as shown here?


    Link to image: https://d.pr/i/O7iybV

    If so, we currently have a small bug in Analytics with regard to displaying reports for these types of variations. You can see more information and follow the progress on that here: https://github.com/woocommerce/woocommerce-admin/issues/6722

    Please let us know what you find!

    Thread Starter dominmax

    (@dominmax)

    Hi @jlundie,
    Thank you for your reply.
    I think we are closer to the truth ??

    I’ve checked twice and every variation has size and color defined.
    BUT I’ve found something interesting. Analyzing all datas day by day (trying on the Variation report) I’ve noticed that the Variation screen disapperas e.g. on April,16. So I checked the orders of the day and found that in one of the orders – there is a missing product.
    The product was removed by accident and added later again. But this was enough for creating the bug I guess.
    On the product list of the order – there is no ID of the Variation:
    https://snipboard.io/JEHId5.jpg

    It can be also the missing information for creating the report, maybe?

    By the way – how to repair the missing ID in the order? Can I overwrite the correct product (the new one), edit or complete missing ID in a database record? Or should I recover the old product from database backup?
    Even when the product is removed it should not have an effect on the report, right?

    Best regards,
    Dominik

    Plugin Support dougaitken

    (@dougaitken)

    Automattic Happiness Engineer

    Hi Dominik!

    So sorry we missed your reply here! I’ve reached out to the team to ask for their thoughts on this one!

    Thanks,

    Plugin Support dougaitken

    (@dougaitken)

    Automattic Happiness Engineer

    Hi again @dominmax

    The product was removed by accident and added later again.

    Can you confirm if the product was Trashed and then moved out of the trash, or was it completely remade?

    When discussing this, the developers said

    The one way I can think of is to reimport the historical data. If the product/post ID is the same, that should work.

    Can you look at reimporting the historical data as this would be the only way for WooCommerce Analytics to “find” the lost product – https://docs.woocommerce.com/document/woocommerce-analytics/#analytics-settings__starting-imports

    Let me know how you get on!

    Thanks,

    Thread Starter dominmax

    (@dominmax)

    Hi @dougaitken
    I confirm that the product was trushed and then deleted permanently.

    When discussing this, the developers said

    The one way I can think of is to reimport the historical data. If the product/post ID is the same, that should work.

    The product ID is not the same (I compared with the backup database). After removing one product and adding the same one – it has the new ID, hasn’t it?

    Will reimporting the historical data have sense then?

    Maybe I could:
    1. create a today-backup
    2. revert backup-moth-back
    3. export products from Products > export
    4. revert today-backup
    5. import the deleted product and set it invisible?

    It wouldn’t be perfect as there would be 2 same products but maybe it would work properly without the error?

    Regards,
    Dominik

    Plugin Support Adam Heckler

    (@adamkheckler)

    It wouldn’t be perfect as there would be 2 same products but maybe it would work properly without the error?

    That might work, but it’s hard to tell without actually trying it. If you want to test it, I’d just be sure to take a complete backup of the site beforehand to be extra safe.

    Let us know what you find out! ??

    Plugin Support Hannah S.L.

    (@fernashes)

    Automattic Happiness Engineer

    We haven’t heard back from you in a while, so I’m going to mark this as resolved – if you have any further questions, you can start a new thread.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘TypeError: Cannot read property ‘indexOf’ of undefined’ is closed to new replies.