• Resolved kees78

    (@kees78)


    Hi,
    On a website we use woocommerce. I noticed the following recurring error:
    Argument 4 passed to Automattic\WooCommerce\Internal\ProductAttributesLookup\LookupDataStore::insert_lookup_table_data() must be of the type int, null given

    So i used the woocommerce tools section to regenerate Product lookup tables.
    Then i tried to update the Regenerate the product attributes lookup table as well.
    However, this regeneration is stuck. I can abort the process and restart it, but that doesnt work. The filling is stuck at zero.

    Hereby my system report:

    
    ### WordPress Environment ###
    
    WordPress address (URL): https://spanje.heemborgh.nl
    Site address (URL): https://spanje.heemborgh.nl
    WC Version: 6.8.2
    REST API Version: ✔ 6.8.2
    WC Blocks Version: ✔ 8.0.0
    Action Scheduler Version: ✔ 3.4.0
    Log Directory Writable: ✔
    WP Version: 6.0.1
    WP Multisite: –
    WP Memory Limit: 1 GB
    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: 64 MB
    PHP Time Limit: 300
    PHP Max Input Vars: 1000
    cURL Version: 7.61.1
    OpenSSL/1.1.1k
    
    SUHOSIN Installed: –
    MySQL Version: 5.5.5-10.3.32-MariaDB
    Max Upload Size: 64 MB
    Default Timezone is UTC: ✔
    fsockopen/cURL: ✔
    SoapClient: ✔
    DOMDocument: ✔
    GZip: ✔
    Multibyte String: ✔
    Remote Post: ✔
    Remote Get: ✔
    
    ### Database ###
    
    WC Database Version: 6.8.2
    WC Database Prefix: k4OlkG6VC_
    Total Database Size: 459.03MB
    Database Data Size: 373.60MB
    Database Index Size: 85.43MB
    k4OlkG6VC_woocommerce_sessions: Data: 1.02MB + Index: 0.02MB + Engine InnoDB
    k4OlkG6VC_woocommerce_api_keys: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    k4OlkG6VC_woocommerce_attribute_taxonomies: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    k4OlkG6VC_woocommerce_downloadable_product_permissions: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
    k4OlkG6VC_woocommerce_order_items: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    k4OlkG6VC_woocommerce_order_itemmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    k4OlkG6VC_woocommerce_tax_rates: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
    k4OlkG6VC_woocommerce_tax_rate_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    k4OlkG6VC_woocommerce_shipping_zones: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    k4OlkG6VC_woocommerce_shipping_zone_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    k4OlkG6VC_woocommerce_shipping_zone_methods: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    k4OlkG6VC_woocommerce_payment_tokens: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    k4OlkG6VC_woocommerce_payment_tokenmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    k4OlkG6VC_woocommerce_log: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    k4OlkG6VC_actionscheduler_actions: Data: 9.02MB + Index: 12.33MB + Engine InnoDB
    k4OlkG6VC_actionscheduler_claims: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    k4OlkG6VC_actionscheduler_groups: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    k4OlkG6VC_actionscheduler_logs: Data: 12.02MB + Index: 2.27MB + Engine InnoDB
    k4OlkG6VC_cmplz_cookiebanners: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    k4OlkG6VC_cmplz_cookies: Data: 0.06MB + Index: 0.00MB + Engine InnoDB
    k4OlkG6VC_cmplz_services: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    k4OlkG6VC_commentmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    k4OlkG6VC_comments: Data: 0.02MB + Index: 0.09MB + Engine InnoDB
    k4OlkG6VC_e_events: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    k4OlkG6VC_e_notes: Data: 0.02MB + Index: 0.17MB + Engine InnoDB
    k4OlkG6VC_e_notes_users_relations: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    k4OlkG6VC_e_submissions: Data: 0.05MB + Index: 0.27MB + Engine InnoDB
    k4OlkG6VC_e_submissions_actions_log: Data: 0.02MB + Index: 0.11MB + Engine InnoDB
    k4OlkG6VC_e_submissions_values: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    k4OlkG6VC_icl_content_status: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    k4OlkG6VC_icl_core_status: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    k4OlkG6VC_icl_flags: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    k4OlkG6VC_icl_languages: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    k4OlkG6VC_icl_languages_translations: Data: 0.20MB + Index: 0.17MB + Engine InnoDB
    k4OlkG6VC_icl_locale_map: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    k4OlkG6VC_icl_message_status: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    k4OlkG6VC_icl_mo_files_domains: Data: 0.05MB + Index: 0.02MB + Engine InnoDB
    k4OlkG6VC_icl_node: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    k4OlkG6VC_icl_reminders: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    k4OlkG6VC_icl_strings: Data: 0.09MB + Index: 0.09MB + Engine InnoDB
    k4OlkG6VC_icl_string_batches: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    k4OlkG6VC_icl_string_packages: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    k4OlkG6VC_icl_string_pages: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    k4OlkG6VC_icl_string_positions: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    k4OlkG6VC_icl_string_status: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    k4OlkG6VC_icl_string_translations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    k4OlkG6VC_icl_string_urls: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    k4OlkG6VC_icl_translate: Data: 6.20MB + Index: 1.27MB + Engine InnoDB
    k4OlkG6VC_icl_translate_job: Data: 0.08MB + Index: 0.02MB + Engine InnoDB
    k4OlkG6VC_icl_translations: Data: 7.52MB + Index: 19.64MB + Engine InnoDB
    k4OlkG6VC_icl_translation_batches: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    k4OlkG6VC_icl_translation_downloads: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    k4OlkG6VC_icl_translation_status: Data: 15.39MB + Index: 2.52MB + Engine InnoDB
    k4OlkG6VC_links: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    k4OlkG6VC_live_weather_station_background_process: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    k4OlkG6VC_live_weather_station_datas: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    k4OlkG6VC_live_weather_station_datas_day: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    k4OlkG6VC_live_weather_station_datas_year: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    k4OlkG6VC_live_weather_station_data_year: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    k4OlkG6VC_live_weather_station_log: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    k4OlkG6VC_live_weather_station_maps: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    k4OlkG6VC_live_weather_station_medias: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    k4OlkG6VC_live_weather_station_module_detail: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    k4OlkG6VC_live_weather_station_notifications: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    k4OlkG6VC_live_weather_station_performance_cache: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    k4OlkG6VC_live_weather_station_performance_cron: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    k4OlkG6VC_live_weather_station_quota_day: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    k4OlkG6VC_live_weather_station_quota_year: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    k4OlkG6VC_live_weather_station_stations: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    k4OlkG6VC_options: Data: 5.05MB + Index: 0.19MB + Engine InnoDB
    k4OlkG6VC_pmxi_files: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    k4OlkG6VC_pmxi_hash: Data: 0.05MB + Index: 0.00MB + Engine InnoDB
    k4OlkG6VC_pmxi_history: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    k4OlkG6VC_pmxi_images: Data: 1.52MB + Index: 0.00MB + Engine InnoDB
    k4OlkG6VC_pmxi_imports: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    k4OlkG6VC_pmxi_posts: Data: 0.06MB + Index: 0.00MB + Engine InnoDB
    k4OlkG6VC_pmxi_templates: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    k4OlkG6VC_postmeta: Data: 278.75MB + Index: 27.91MB + Engine InnoDB
    k4OlkG6VC_posts: Data: 32.53MB + Index: 14.45MB + Engine InnoDB
    k4OlkG6VC_prli_clicks: Data: 0.02MB + Index: 0.19MB + Engine InnoDB
    k4OlkG6VC_prli_links: Data: 0.02MB + Index: 0.17MB + Engine InnoDB
    k4OlkG6VC_prli_link_metas: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    k4OlkG6VC_termmeta: Data: 0.17MB + Index: 0.22MB + Engine InnoDB
    k4OlkG6VC_terms: Data: 0.27MB + Index: 0.25MB + Engine InnoDB
    k4OlkG6VC_term_relationships: Data: 0.48MB + Index: 0.36MB + Engine InnoDB
    k4OlkG6VC_term_taxonomy: Data: 0.31MB + Index: 0.34MB + Engine InnoDB
    k4OlkG6VC_trp_dictionary_en_us_nl_nl: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    k4OlkG6VC_trp_gettext_en_us: Data: 0.22MB + Index: 0.31MB + Engine InnoDB
    k4OlkG6VC_trp_gettext_nl_nl: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    k4OlkG6VC_trp_original_meta: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    k4OlkG6VC_trp_original_strings: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    k4OlkG6VC_usermeta: Data: 0.09MB + Index: 0.03MB + Engine InnoDB
    k4OlkG6VC_users: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    k4OlkG6VC_wc_admin_notes: Data: 0.06MB + Index: 0.00MB + Engine InnoDB
    k4OlkG6VC_wc_admin_note_actions: Data: 0.05MB + Index: 0.02MB + Engine InnoDB
    k4OlkG6VC_wc_category_lookup: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    k4OlkG6VC_wc_customer_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    k4OlkG6VC_wc_download_log: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    k4OlkG6VC_wc_order_coupon_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    k4OlkG6VC_wc_order_product_lookup: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
    k4OlkG6VC_wc_order_stats: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    k4OlkG6VC_wc_order_tax_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    k4OlkG6VC_wc_product_attributes_lookup: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    k4OlkG6VC_wc_product_download_directories: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    k4OlkG6VC_wc_product_meta_lookup: Data: 0.09MB + Index: 0.16MB + Engine InnoDB
    k4OlkG6VC_wc_rate_limits: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    k4OlkG6VC_wc_reserved_stock: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    k4OlkG6VC_wc_tax_rate_classes: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    k4OlkG6VC_wc_webhooks: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    k4OlkG6VC_woof_query_cache: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    k4OlkG6VC_wpf_filters: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    k4OlkG6VC_wpr_rucss_resources: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
    k4OlkG6VC_wpr_rucss_used_css: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    k4OlkG6VC_wp_phpmyadmin_extension__errors_log: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    k4OlkG6VC_yith_wcwl: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    k4OlkG6VC_yith_wcwl_lists: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    k4OlkG6VC_yoast_indexable: Data: 0.31MB + Index: 0.11MB + Engine InnoDB
    k4OlkG6VC_yoast_indexable_hierarchy: Data: 0.05MB + Index: 0.05MB + Engine InnoDB
    k4OlkG6VC_yoast_migrations: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    k4OlkG6VC_yoast_primary_term: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    k4OlkG6VC_yoast_seo_links: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    
    ### Post Type Counts ###
    
    attachment: 100398
    custom_css: 1
    elementor_font: 2
    elementor_library: 14
    elementor_snippet: 1
    language_switcher: 3
    location_weather: 2
    nav_menu_item: 3
    page: 18
    post: 3
    postman_sent_mail: 26
    pretty-link: 1
    product: 730
    revision: 777
    wpc-weather: 3
    wp_global_styles: 1
    yith_wcan_preset: 2
    
    ### Security ###
    
    Secure connection (HTTPS): ✔
    Hide errors from visitors: ✔
    
    ### Active Plugins (17) ###
    
    WPML Multilingual CMS: by OnTheGoSystems – 4.5.8
    All-in-One WP Migration: by ServMask – 7.64
    Child Theme Configurator: by Lilaea Media – 2.5.9
    Complianz | GDPR/CCPA Cookie Consent: by Really Simple Plugins – 6.3.1
    Elementor Pro: by Elementor.com – 3.7.3
    Elementor: by Elementor.com – 3.7.2
    Post SMTP: by Post SMTP – 2.1.5
    Ultimate Addons for Elementor: by Brainstorm Force – 1.36.10
    WooCommerce Multilingual & Multicurrency: by OnTheGoSystems – 5.0.2
    WOOF - WooCommerce Products Filter: by realmag777 – 2.2.6.3
    WooCommerce: by Automattic – 6.8.2
    WP All Import Pro: by Soflyy – 4.7.6
    WP All Import - WooCommerce Import Add-On Pro: by Soflyy – 3.3.3
    WPML All Import: by OnTheGoSystems – 2.3.0
    WPML Media: by OnTheGoSystems – 2.7.0
    WPML String Translation: by OnTheGoSystems – 3.2.1
    YITH WooCommerce Wishlist: by YITH – 3.12.0
    
    ### Inactive Plugins (2) ###
    
    OTGS Installer: by OnTheGoSystems – 3.0.3
    WP Rocket: by WP Media – 3.10.7
    
    ### Dropin Plugins (2) ###
    
    advanced-cache.php: advanced-cache.php
    maintenance.php: maintenance.php
    
    ### Settings ###
    
    API Enabled: –
    Force SSL: –
    Currency: EUR (€)
    Currency Position: left
    Thousand Separator: .
    Decimal Separator: ,
    Number of Decimals: 0
    Taxonomies: Product Types: eenvoudig (simple)
    external (external)
    grouped (grouped)
    simple (simple-2)
    variable (variable)
    
    Taxonomies: Product Visibility: exclude-from-catalog (exclude-from-catalog-2)
    exclude-from-search (exclude-from-search-2)
    featured (featured-2)
    outofstock (outofstock-2)
    rated-1 (rated-1-2)
    rated-2 (rated-2-2)
    rated-3 (rated-3-2)
    rated-4 (rated-4-2)
    rated-5 (rated-5-2)
    
    Connected to WooCommerce.com: –
    Enforce Approved Product Download Directories: –
    
    ### WC Pages ###
    
    Shop base: #14189 - /shop/
    Cart: #14190 - /cart/
    Checkout: #14191 - /checkout/
    My account: #6244 - /my-account-2/
    Terms and conditions: ❌ Page not set
    
    ### Theme ###
    
    Name: Hello Elementor
    Version: 2.6.1
    Author URL: https://elementor.com/?utm_source=wp-themes&utm_campaign=author-uri&utm_medium=wp-dash
    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: –
    
    ### 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
    shipping-smart-defaults
    shipping-setting-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: ✔ Next scheduled: 2022-08-29 13:21:59 +00:00
    Options: ✔
    Notes: 88
    Onboarding: completed
    
    ### Action Scheduler ###
    
    Complete: 954
    Oldest: 2022-07-29 15:22:42 +0000
    Newest: 2022-08-29 12:14:41 +0000
    
    Failed: 24,238
    Oldest: 2022-05-24 14:58:51 +0000
    Newest: 2022-08-29 12:36:37 +0000
    
    Pending: 1
    Oldest: 2022-08-30 12:14:41 +0000
    Newest: 2022-08-30 12:14:41 +0000
    
    ### Status report information ###
    
    Generated at: 2022-08-29 12:38:53 +00:00
    
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support Kaushik S. a11n

    (@kaushiksomaiya)

    Hi there!

    Thank you for contacting us! 🙂

    I understand the product attribute lookup table regeneration isn’t working for you.

    Can you share the full error log along with the file path information?

    Thread Starter kees78

    (@kees78)

    Here it is:

    AH01071: Got error 'PHP message: PHP Fatal error: Uncaught TypeError: Argument 4 passed to Automattic\\WooCommerce\\Internal\\ProductAttributesLookup\\LookupDataStore::insert_lookup_table_data() must be of the type int, null given, called in /var/www/vhosts/xxxxx/httpdocs/wp-content/plugins/woocommerce/src/Internal/ProductAttributesLookup/LookupDataStore.php on line 400 and defined in /var/www/vhosts/xxxxxx/httpdocs/wp-content/plugins/woocommerce/src/Internal/ProductAttributesLookup/LookupDataStore.php:620\nStack trace:\n#0 /var/www/vhosts/xxxxx/httpdocs/wp-content/plugins/woocommerce/src/Internal/ProductAttributesLookup/LookupDataStore.php(400): Automattic\\WooCommerce\\Internal\\ProductAttributesLookup\\LookupDataStore->insert_lookup_table_data()\n#1 /var/www/vhosts/xxxxx/httpdocs/wp-content/plugins/woocommerce/src/Internal/ProductAttributesLookup/LookupDataStore.php(363): Automattic\\WooCommerce\\Internal\\ProductAttributesLookup\\LookupDataStore->create_data_for_simple_product()\n#...', referer: https://xxxxx/wp-admin/admin-ajax.php?action=as_async_request_queue_runner&nonce=5ca60b5e27

    Plugin Support Tamirat B. (a11n)

    (@tamirat22)

    Hello @kees78!

    Thanks for the reply!

    There seems to be a recently resolved and related thread here: https://wordpress.org/support/topic/critical-uncaught-typeerror-2/

    Could you please consult the suggestions laid on the thread and see if they help?

    Let us know how it turns out- we will be here.

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

The topic ‘Error updating product lookup table’ is closed to new replies.