• Resolved ahmedselim

    (@ahmedselim)


    I am trying to resolve an issue I am having and noticed the following error in the fatal errors log. Can anyone help me decipher the issue?

    2023-01-02T03:08:34+00:00 CRITICAL Uncaught Error: Call to a member function get_id() on bool in /home2/kmemfitness/public_html/wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-products-v2-controller.php:1516
    Stack trace:
    #0 /home2/kmemfitness/public_html/wp-includes/class-wp-hook.php(310): WC_REST_Products_V2_Controller->clear_transients(false)
    #1 /home2/kmemfitness/public_html/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters('', Array)
    #2 /home2/kmemfitness/public_html/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
    #3 /home2/kmemfitness/public_html/wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-crud-controller.php(254): do_action('woocommerce_res...', false, Object(WP_REST_Request), false)
    #4 /home2/kmemfitness/public_html/wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-controller.php(269): WC_REST_CRUD_Controller->update_item(Object(WP_REST_Request))
    #5 /home2/kmemfitness/public_html/wp-includes/rest-api/class-wp-res in /home2/kmemfitness/public_html/wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-products-v2-controller.php on line 1516

    I am seeing this when trying to import products via printful and am aware that there are other people seeing similar issues, just trying to see if there is any other way to figure out what is happening.

    Thanks in advance!

    `
    ### WordPress Environment ###
    
    WordPress address (URL): https://kmemfitness.com
    Site address (URL): https://kmemfitness.com
    WC Version: 7.2.2
    REST API Version: ?</img> 7.2.2
    WC Blocks Version: ?</img> 8.9.2
    Action Scheduler Version: ?</img> 3.4.0
    Log Directory Writable: ?</img>
    WP Version: 6.1.1
    WP Multisite: –
    WP Memory Limit: 512 MB
    WP Debug Mode: –
    WP Cron: ?</img>
    Language: en_US
    External object cache: –
    
    ### Server Environment ###
    
    Server Info: Apache
    PHP Version: 8.1.13
    PHP Post Max Size: 516 MB
    PHP Time Limit: 300
    PHP Max Input Vars: 1000
    cURL Version: 7.86.0
    OpenSSL/1.1.1s
    
    SUHOSIN Installed: –
    MySQL Version: 5.7.23-23
    Max Upload Size: 512 MB
    Default Timezone is UTC: ?</img>
    fsockopen/cURL: ?</img>
    SoapClient: ?</img>
    DOMDocument: ?</img>
    GZip: ?</img>
    Multibyte String: ?</img>
    Remote Post: ?</img>
    Remote Get: ?</img>
    
    ### Database ###
    
    WC Database Version: 7.2.2
    WC Database Prefix: wp_
    Total Database Size: 82.70MB
    Database Data Size: 62.40MB
    Database Index Size: 20.30MB
    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.02MB + 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
    cerber_acl: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    cerber_blocks: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    cerber_countries: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    cerber_lab: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    cerber_lab_ip: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    cerber_lab_net: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    cerber_log: Data: 0.25MB + Index: 0.19MB + Engine InnoDB
    cerber_qmem: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    cerber_traffic: Data: 0.34MB + Index: 0.02MB + Engine InnoDB
    wp_actionscheduler_actions: Data: 6.52MB + Index: 7.88MB + 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: 3.52MB + Index: 4.03MB + Engine InnoDB
    wp_cerber_files: Data: 5.55MB + Index: 0.00MB + Engine InnoDB
    wp_cerber_sets: Data: 0.14MB + Index: 0.00MB + Engine InnoDB
    wp_cerber_uss: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_commentmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_comments: Data: 0.02MB + Index: 0.09MB + Engine InnoDB
    wp_ewwwio_images: Data: 0.38MB + Index: 0.20MB + Engine InnoDB
    wp_ewwwio_queue: Data: 0.06MB + Index: 0.02MB + Engine InnoDB
    wp_fusion_forms: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_fusion_form_entries: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_fusion_form_fields: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_fusion_form_submissions: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_links: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_options: Data: 10.41MB + Index: 2.20MB + Engine InnoDB
    wp_postmeta: Data: 2.38MB + Index: 3.36MB + Engine InnoDB
    wp_posts: Data: 16.02MB + Index: 0.27MB + Engine InnoDB
    wp_sib_model_forms: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_sib_model_users: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_tec_events: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_tec_occurrences: 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_term_relationships: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_term_taxonomy: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_tm_taskmeta: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_tm_tasks: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_usermeta: Data: 0.50MB + Index: 0.27MB + Engine InnoDB
    wp_users: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    wp_wc_admin_notes: Data: 0.05MB + Index: 0.00MB + Engine InnoDB
    wp_wc_admin_note_actions: Data: 0.02MB + Index: 0.02MB + 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.47MB + 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: 9.52MB + Index: 0.00MB + Engine InnoDB
    wp_wfhits: Data: 0.05MB + 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: 4.52MB + 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.13MB + Index: 0.11MB + Engine InnoDB
    wp_wftrafficrates: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_wpvivid_options: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_wpvivid_scan_result: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_wpvivid_unused_uploads_files: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_xyz_ips_short_code: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_yay_smtp_sendinblue_email_logs: Data: 0.09MB + Index: 0.00MB + Engine InnoDB
    
    ### Post Type Counts ###
    
    attachment: 96
    avada_portfolio: 9
    condition_group: 2
    fusion_element: 1
    fusion_tb_section: 1
    nav_menu_item: 12
    page: 46
    post: 6
    product: 4
    product_variation: 43
    restriction: 2
    revision: 842
    slide: 7
    tribe_events: 123
    tribe-ea-record: 16
    wpcode: 3
    ytplayer: 1
    
    ### Security ###
    
    Secure connection (HTTPS): ?</img>
    Hide errors from visitors: ?</img>
    
    ### Active Plugins (29) ###
    
    Async JavaScript: by Frank Goossens (futtta) – 2.21.08.31
    Autoptimize: by Frank Goossens (futtta) – 3.1.4
    Conflict Finder - WP Fix It: by WP Fix It – 3.3
    Connects - SendinBlue Addon: by Brainstorm Force – 2.1.6
    Convert Plus: by Brainstorm Force – 3.5.24
    Yoast Duplicate Post: by Enrico Battocchi & Team Yoast – 4.5
    EWWW Image Optimizer: by Exactly WWW – 6.9.3
    Avada Builder: by ThemeFusion – 3.9.1
    Avada Core: by ThemeFusion – 5.9.1
    Easy HTTPS (SSL) Redirection: by Tips and Tricks HQ – 1.9.1
    Insert PHP Code Snippet: by xyzscripts.com – 1.3.3
    Jetpack: by Automattic – 11.6
    Newsletter, SMTP, Email marketing and Subscribe forms by Sendinblue: by Sendinblue – 3.1.55
    Mu Manager: by Jose Mortellaro – 0.0.1
    Pages with category and tag: by YAHMAN – 0.9.0
    Printful Integration for WooCommerce: by Printful – 2.1.34
    PublishPress Revisions: by PublishPress – 3.1.10
    s2Member Pro: by WP Sharks – 220421
    s2Member Framework: by WP Sharks – 221103
    SMTP for SendinBlue - YaySMTP: by YayCommerce – 1.1
    The Events Calendar: by The Events Calendar – 6.0.6.2
    Theme My Login: by Theme My Login – 7.1.5
    User Switching: by John Blackbourn & contributors – 1.7.0
    W3 Total Cache: by BoldGrid – 2.2.9
    WooCommerce: by Automattic – 7.2.2
    WP Fastest Cache: by Emre Vona – 1.0.9
    Wp Theme plugin Download: by Abhay Yadav – 1.3
    WPvivid Backup Plugin: by WPvivid Team – 0.9.81
    Embed Plus YouTube WordPress Plugin Pro: by Embed Plus for YouTube Team – 14.1.4.1
    
    ### Inactive Plugins (9) ###
    
    Check Conflicts: by ioannup – 1.1.4
    ezPHP: by WebSharks
    Inc. (Jason Caldwell) – 160128
    
    Google Analytics for WordPress by MonsterInsights: by MonsterInsights – 8.11.0
    PHP Everywhere: by Alexander Fuchs – 3.0.0
    Plugin Detective - Troubleshooting: by NSquared – 1.2.3
    Video Player for YouTube: by bplugins – 1.5.2
    Wordfence Security: by Wordfence – 7.8.2
    WP Cerber Security, Anti-spam & Malware Scan: by Cerber Tech Inc. – 8.9.6
    YouTube Embed: by dartiss – 5.2.3
    
    ### Dropin Plugins (1) ###
    
    advanced-cache.php: advanced-cache.php
    
    ### Must Use Plugins (2) ###
    
    Endurance Page Cache: by Mike Hansen – 2.2
    s2-payment-notification.php: by  –
    
    ### Settings ###
    
    API Enabled: ?</img>
    Force SSL: –
    Currency: USD ($)
    Currency Position: left
    Thousand Separator: ,
    Decimal Separator: .
    Number of Decimals: 2
    Taxonomies: Product Types: external (external)
    grouped (grouped)
    simple (simple)
    subscription (subscription)
    variable (variable)
    variable subscription (variable-subscription)
    
    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: ?</img>
    Order datastore: WC_Order_Data_Store_CPT
    
    ### WC Pages ###
    
    Shop base: #3195 - /shop/
    Cart: ?</img> Page not set
    Checkout: ?</img> Page not set
    My account: ?</img> Page not set
    Terms and conditions: ?</img> Page not set
    
    ### Theme ###
    
    Name: Avada
    Version: 7.9.1
    Author URL: https://themeforest.net/user/ThemeFusion
    Child Theme: ?</img> – 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: ?</img>
    
    ### Templates ###
    
    Overrides: Avada/woocommerce/cart/cart.php
    Avada/woocommerce/checkout/form-pay.php
    Avada/woocommerce/checkout/review-order.php
    Avada/woocommerce/checkout/thankyou.php
    Avada/woocommerce/loop/loop-start.php
    Avada/woocommerce/single-product/add-to-cart/variable.php
    Avada/woocommerce/single-product/short-description.php
    Avada/woocommerce/single-product/tabs/additional-information.php
    Avada/woocommerce/single-product/tabs/description.php
    
    
    ### Admin ###
    
    Enabled Features: activity-panels
    analytics
    coupons
    customer-effort-score-tracks
    experimental-products-task
    experimental-import-products-task
    experimental-fashion-sample-products
    shipping-smart-defaults
    shipping-setting-tour
    homescreen
    marketing
    multichannel-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
    woo-mobile-welcome
    wc-pay-promotion
    wc-pay-welcome-page
    
    Disabled Features: minified-js
    new-product-management-experience
    settings
    
    Daily Cron: ?</img> Next scheduled: 2023-01-04 01:24:13 -05:00
    Options: ?</img>
    Notes: 41
    Onboarding: completed
    
    ### Action Scheduler ###
    
    Complete: 19,836
    Oldest: 2022-12-03 18:23:15 -0500
    Newest: 2023-01-03 17:26:12 -0500
    
    Failed: 2
    Oldest: 2022-10-01 12:48:57 -0400
    Newest: 2022-12-03 18:34:57 -0500
    
    Pending: 1
    Oldest: 2023-01-04 16:35:41 -0500
    Newest: 2023-01-04 16:35:41 -0500
    
    
    ### Status report information ###
    
    Generated at: 2023-01-03 17:34:05 -05:00
    `

Viewing 1 replies (of 1 total)
  • Hi,

    Are you using the Rest-API to import the products? If so, can you share the code that it’s been used to make the call?

    If not, please describe the steps made on the site in order to receive that error. This is to get a better idea.

    Thank you.

Viewing 1 replies (of 1 total)
  • The topic ‘Uncaught Error’ is closed to new replies.