CRITICAL Uncaught Error: Call to a member function get_attributes()
-
Hello!
I keep getting the following error and I am unable to fix it. Any help would be appreciated. Thanks! (I am running WC 7.8.0?on WP 6.2.2)
CRITICAL Uncaught Error: Call to a member function get_attributes() on bool in /home/egl/public_html/wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-products-v2-controller.php:465
Stack trace:
0 /home/egl/public_html/wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-products-v2-controller.php(574): WC_REST_Products_V2_Controller->get_attribute_taxonomy_name(‘a’, false)
1 /home/egl/public_html/wp-content/plugins/woocommerce/src/Admin/API/ProductsLowInStock.php(66): WC_REST_Products_V2_Controller->get_attributes(Object(WC_Product_Variation))
2 [internal function]: Automattic\WooCommerce\Admin\API\ProductsLowInStock->Automattic\WooCommerce\Admin\API{closure}(Object(stdClass))
3 /home/egl/public_html/wp-content/plugins/woocommerce/src/Admin/API/ProductsLowInStock.php(69): array_map(Object(Closure), Array)
4 /home/egl/public_html/wp-includes/rest-api/class-wp-rest-server.php(1181): Automattic\WooCommerce\Admin\API\ProductsL in /home/egl/public_html/wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-products-v2-controller.php on line 465
-
Hello @egletiere
Based on the error message you provided, it appears that the issue is related to the WooCommerce REST API v2 and the handling of product attributes. To help you troubleshoot and resolve this issue, please follow the steps below:
- Update your plugins and themes: Ensure that you’re running the latest versions of WooCommerce, WordPress, and all other plugins and themes installed on your site. Outdated plugins or themes may cause compatibility issues or conflicts with the latest version of WooCommerce.
- Check for plugin conflicts: Temporarily disable all other plugins except for WooCommerce and see if the error persists. If the error is resolved, you can enable the plugins one by one to identify which plugin is causing the issue. Once you’ve identified the conflicting plugin, you can either update it to the latest version or contact the plugin developer for support.
- Switch to a default theme: Temporarily switch your theme to a default Storefront theme to check if the issue is related to your current theme. If the error is resolved, you may need to update your theme or contact the theme developer for support.
- Check your product attributes: Ensure that all of your product attributes are correctly set up and assigned to your products. In some cases, this error may occur if there are missing or improperly configured attributes.
- Enable debug mode: If the issue persists, enable WordPress debug mode by adding the following lines to your
wp-config.php
file:
define( 'WP_DEBUG', true ); define( 'WP_DEBUG_LOG', true ); define( 'WP_DEBUG_DISPLAY', false );
This will generate a debug.log file in your
wp-content
or in the root folder, which may provide additional information about the error. You can share this log with us or a developer for further assistance.If none of the above steps resolve the issue, please share your System Status Report, which you can find via WooCommerce > Status. Select Get system report and then Copy for support. Once you’ve done that, paste it into your reply here. This will help us investigate further and provide you with a more accurate solution.
Thanks!
Hello!
I created a site clone on which I enabled debugging, switched to Storefront theme, deactivated all plugins except Woocommerce, rechecked the product attributes and resaved the products, but I still get the same error in the Woocommerce logs and in debug.log.
Please see below the system report.
Appreciate your help
WordPress Environment WordPress address (URL): https://st062.**.com Site address (URL): https://st062.**.com WC Version: 7.8.0 REST API Version: ? 7.8.0 WC Blocks Version: ? 10.2.3 Action Scheduler Version: ? 3.5.4 Log Directory Writable: ? WP Version: 6.2.2 WP Multisite: – WP Memory Limit: 1 GB WP Debug Mode: ? WP Cron: ? Language: en_US External object cache: – Server Environment Server Info: LiteSpeed PHP Version: 7.4.33 PHP Post Max Size: 1 GB PHP Time Limit: 600 PHP Max Input Vars: 15000 cURL Version: 7.87.0 OpenSSL/1.1.1p SUHOSIN Installed: – MySQL Version: 8.0.33 Max Upload Size: 512 MB Default Timezone is UTC: ? fsockopen/cURL: ? SoapClient: ? DOMDocument: ? GZip: ? Multibyte String: ? Remote Post: ? Remote Get: ? Database WC Database Version: 7.8.0 WC Database Prefix: P1CdoL_ Total Database Size: 365.28MB Database Data Size: 274.73MB Database Index Size: 90.55MB P1CdoL_woocommerce_sessions: Data: 0.20MB + Index: 0.02MB + Engine InnoDB P1CdoL_woocommerce_api_keys: Data: 0.02MB + Index: 0.03MB + Engine InnoDB P1CdoL_woocommerce_attribute_taxonomies: Data: 0.02MB + Index: 0.02MB + Engine InnoDB P1CdoL_woocommerce_downloadable_product_permissions: Data: 0.02MB + Index: 0.06MB + Engine InnoDB P1CdoL_woocommerce_order_items: Data: 1.52MB + Index: 0.16MB + Engine InnoDB P1CdoL_woocommerce_order_itemmeta: Data: 6.52MB + Index: 5.03MB + Engine InnoDB P1CdoL_woocommerce_tax_rates: Data: 0.02MB + Index: 0.06MB + Engine InnoDB P1CdoL_woocommerce_tax_rate_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB P1CdoL_woocommerce_shipping_zones: Data: 0.02MB + Index: 0.00MB + Engine InnoDB P1CdoL_woocommerce_shipping_zone_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB P1CdoL_woocommerce_shipping_zone_methods: Data: 0.02MB + Index: 0.00MB + Engine InnoDB P1CdoL_woocommerce_payment_tokens: Data: 0.02MB + Index: 0.02MB + Engine InnoDB P1CdoL_woocommerce_payment_tokenmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB P1CdoL_woocommerce_log: Data: 0.02MB + Index: 0.02MB + Engine InnoDB P1CdoL_actionscheduler_actions: Data: 7.52MB + Index: 7.22MB + Engine InnoDB P1CdoL_actionscheduler_claims: Data: 0.02MB + Index: 0.02MB + Engine InnoDB P1CdoL_actionscheduler_groups: Data: 0.02MB + Index: 0.02MB + Engine InnoDB P1CdoL_actionscheduler_logs: Data: 5.52MB + Index: 4.03MB + Engine InnoDB P1CdoL_adtribes_my_conversions: Data: 0.02MB + Index: 0.02MB + Engine InnoDB P1CdoL_aiowps_audit_log: Data: 5.52MB + Index: 0.06MB + Engine InnoDB P1CdoL_aiowps_debug_log: Data: 0.02MB + Index: 0.00MB + Engine InnoDB P1CdoL_aiowps_events: Data: 0.02MB + Index: 0.00MB + Engine InnoDB P1CdoL_aiowps_global_meta: Data: 0.02MB + Index: 0.00MB + Engine InnoDB P1CdoL_aiowps_login_activity: Data: 0.02MB + Index: 0.00MB + Engine InnoDB P1CdoL_aiowps_login_lockdown: Data: 0.02MB + Index: 0.05MB + Engine InnoDB P1CdoL_aiowps_permanent_block: Data: 0.02MB + Index: 0.02MB + Engine InnoDB P1CdoL_automatewoo_abandoned_carts: Data: 0.02MB + Index: 0.08MB + Engine InnoDB P1CdoL_automatewoo_customer_meta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB P1CdoL_automatewoo_customers: Data: 0.25MB + Index: 0.66MB + Engine InnoDB P1CdoL_automatewoo_events: Data: 0.02MB + Index: 0.05MB + Engine InnoDB P1CdoL_automatewoo_guest_meta: Data: 0.52MB + Index: 0.69MB + Engine InnoDB P1CdoL_automatewoo_guests: Data: 0.13MB + Index: 0.23MB + Engine InnoDB P1CdoL_automatewoo_log_meta: Data: 0.13MB + Index: 0.14MB + Engine InnoDB P1CdoL_automatewoo_logs: Data: 0.06MB + Index: 0.05MB + Engine InnoDB P1CdoL_automatewoo_queue: Data: 0.02MB + Index: 0.05MB + Engine InnoDB P1CdoL_automatewoo_queue_meta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB P1CdoL_categorymeta: Data: 0.02MB + Index: 0.00MB + Engine InnoDB P1CdoL_chaty_contact_form_leads: Data: 0.02MB + Index: 0.00MB + Engine InnoDB P1CdoL_cli_cookie_scan: Data: 0.02MB + Index: 0.00MB + Engine InnoDB P1CdoL_cli_cookie_scan_categories: Data: 0.02MB + Index: 0.02MB + Engine InnoDB P1CdoL_cli_cookie_scan_cookies: Data: 0.02MB + Index: 0.03MB + Engine InnoDB P1CdoL_cli_cookie_scan_url: Data: 0.02MB + Index: 0.00MB + Engine InnoDB P1CdoL_cli_scripts: Data: 0.02MB + Index: 0.00MB + Engine InnoDB P1CdoL_cmplz_cookiebanners: Data: 0.02MB + Index: 0.00MB + Engine InnoDB P1CdoL_cmplz_cookies: Data: 0.11MB + Index: 0.00MB + Engine InnoDB P1CdoL_cmplz_services: Data: 0.02MB + Index: 0.00MB + Engine InnoDB P1CdoL_commentmeta: Data: 0.08MB + Index: 0.09MB + Engine InnoDB P1CdoL_comments: Data: 3.52MB + Index: 1.78MB + Engine InnoDB P1CdoL_e_events: Data: 0.02MB + Index: 0.02MB + Engine InnoDB P1CdoL_eg_grids: Data: 0.02MB + Index: 0.02MB + Engine InnoDB P1CdoL_eg_item_elements: Data: 0.02MB + Index: 0.02MB + Engine InnoDB P1CdoL_eg_item_skins: Data: 0.08MB + Index: 0.03MB + Engine InnoDB P1CdoL_eg_navigation_skins: Data: 0.14MB + Index: 0.02MB + Engine InnoDB P1CdoL_gdpr_consent: Data: 0.02MB + Index: 0.00MB + Engine InnoDB P1CdoL_gdpr_userlogs: Data: 0.02MB + Index: 0.00MB + Engine InnoDB P1CdoL_gglcptch_allowlist: Data: 0.02MB + Index: 0.02MB + Engine InnoDB P1CdoL_gla_budget_recommendations: Data: 0.22MB + Index: 0.14MB + Engine InnoDB P1CdoL_gla_merchant_issues: Data: 0.02MB + Index: 0.00MB + Engine InnoDB P1CdoL_gla_shipping_rates: Data: 0.02MB + Index: 0.03MB + Engine InnoDB P1CdoL_gla_shipping_times: Data: 0.02MB + Index: 0.02MB + Engine InnoDB P1CdoL_icl_background_task: Data: 0.02MB + Index: 0.00MB + Engine InnoDB P1CdoL_icl_cms_nav_cache: Data: 0.02MB + Index: 0.00MB + Engine InnoDB P1CdoL_icl_content_status: Data: 0.02MB + Index: 0.02MB + Engine InnoDB P1CdoL_icl_core_status: Data: 0.02MB + Index: 0.02MB + Engine InnoDB P1CdoL_icl_flags: Data: 0.02MB + Index: 0.02MB + Engine InnoDB P1CdoL_icl_languages: Data: 0.02MB + Index: 0.03MB + Engine InnoDB P1CdoL_icl_languages_translations: Data: 0.20MB + Index: 0.17MB + Engine InnoDB P1CdoL_icl_locale_map: Data: 0.02MB + Index: 0.00MB + Engine InnoDB P1CdoL_icl_message_status: Data: 0.02MB + Index: 0.03MB + Engine InnoDB P1CdoL_icl_mo_files_domains: Data: 0.16MB + Index: 0.05MB + Engine InnoDB P1CdoL_icl_node: Data: 0.02MB + Index: 0.00MB + Engine InnoDB P1CdoL_icl_reminders: Data: 0.02MB + Index: 0.00MB + Engine InnoDB P1CdoL_icl_string_batches: Data: 0.05MB + Index: 0.00MB + Engine InnoDB P1CdoL_icl_string_packages: Data: 0.02MB + Index: 0.00MB + Engine InnoDB P1CdoL_icl_string_positions: Data: 3.52MB + Index: 1.52MB + Engine InnoDB P1CdoL_icl_string_status: Data: 0.02MB + Index: 0.02MB + Engine InnoDB P1CdoL_icl_string_translations: Data: 2.52MB + Index: 1.81MB + Engine InnoDB P1CdoL_icl_strings: Data: 4.52MB + Index: 9.02MB + Engine InnoDB P1CdoL_icl_translate: Data: 47.56MB + Index: 2.52MB + Engine InnoDB P1CdoL_icl_translate_job: Data: 0.36MB + Index: 0.11MB + Engine InnoDB P1CdoL_icl_translation_batches: Data: 0.05MB + Index: 0.00MB + Engine InnoDB P1CdoL_icl_translation_downloads: Data: 0.02MB + Index: 0.00MB + Engine InnoDB P1CdoL_icl_translation_status: Data: 14.52MB + Index: 0.16MB + Engine InnoDB P1CdoL_icl_translations: Data: 1.52MB + Index: 1.56MB + Engine InnoDB P1CdoL_learnpress_order_itemmeta: Data: 0.02MB + Index: 0.05MB + Engine InnoDB P1CdoL_learnpress_order_items: Data: 0.02MB + Index: 0.05MB + Engine InnoDB P1CdoL_learnpress_question_answermeta: Data: 0.02MB + Index: 0.02MB + Engine InnoDB P1CdoL_learnpress_question_answers: Data: 0.02MB + Index: 0.02MB + Engine InnoDB P1CdoL_learnpress_quiz_questions: Data: 0.02MB + Index: 0.03MB + Engine InnoDB P1CdoL_learnpress_review_logs: Data: 0.02MB + Index: 0.03MB + Engine InnoDB P1CdoL_learnpress_section_items: Data: 0.02MB + Index: 0.02MB + Engine InnoDB P1CdoL_learnpress_sections: Data: 0.02MB + Index: 0.02MB + Engine InnoDB P1CdoL_learnpress_sessions: Data: 0.02MB + Index: 0.02MB + Engine InnoDB P1CdoL_learnpress_user_item_results: Data: 0.02MB + Index: 0.02MB + Engine InnoDB P1CdoL_learnpress_user_itemmeta: Data: 0.02MB + Index: 0.05MB + Engine InnoDB P1CdoL_learnpress_user_items: Data: 0.02MB + Index: 0.11MB + Engine InnoDB P1CdoL_links: Data: 0.02MB + Index: 0.02MB + Engine InnoDB P1CdoL_litespeed_avatar: Data: 0.06MB + Index: 0.03MB + Engine InnoDB P1CdoL_litespeed_crawler: Data: 0.02MB + Index: 0.03MB + Engine InnoDB P1CdoL_litespeed_crawler_blacklist: Data: 0.02MB + Index: 0.03MB + Engine InnoDB P1CdoL_litespeed_img_optm: Data: 7.52MB + Index: 5.03MB + Engine InnoDB P1CdoL_litespeed_img_optming: Data: 0.02MB + Index: 0.05MB + Engine InnoDB P1CdoL_litespeed_url: Data: 0.17MB + Index: 0.27MB + Engine InnoDB P1CdoL_litespeed_url_file: Data: 1.52MB + Index: 1.53MB + Engine InnoDB P1CdoL_mailchimp_carts: Data: 0.02MB + Index: 0.00MB + Engine InnoDB P1CdoL_mailchimp_jobs: Data: 0.02MB + Index: 0.00MB + Engine InnoDB P1CdoL_mo_openid_linked_user: Data: 0.02MB + Index: 0.00MB + Engine InnoDB P1CdoL_newsletter: Data: 1.52MB + Index: 0.20MB + Engine InnoDB P1CdoL_newsletter_automated: Data: 0.02MB + Index: 0.00MB + Engine InnoDB P1CdoL_newsletter_emails: Data: 0.44MB + Index: 0.00MB + Engine InnoDB P1CdoL_newsletter_sent: Data: 0.17MB + Index: 0.19MB + Engine InnoDB P1CdoL_newsletter_stats: Data: 0.16MB + Index: 0.13MB + Engine InnoDB P1CdoL_newsletter_user_logs: Data: 0.13MB + Index: 0.00MB + Engine InnoDB P1CdoL_newsletter_webhooks: Data: 0.02MB + Index: 0.00MB + Engine InnoDB P1CdoL_options: Data: 14.52MB + Index: 1.67MB + Engine InnoDB P1CdoL_pmlca_links: Data: 0.02MB + Index: 0.00MB + Engine InnoDB P1CdoL_pmxe_exports: Data: 0.02MB + Index: 0.00MB + Engine InnoDB P1CdoL_pmxe_google_cats: Data: 0.39MB + Index: 0.00MB + Engine InnoDB P1CdoL_pmxe_posts: Data: 0.09MB + Index: 0.00MB + Engine InnoDB P1CdoL_pmxe_templates: Data: 0.02MB + Index: 0.00MB + Engine InnoDB P1CdoL_pmxi_files: Data: 0.02MB + Index: 0.00MB + Engine InnoDB P1CdoL_pmxi_hash: Data: 0.08MB + Index: 0.00MB + Engine InnoDB P1CdoL_pmxi_history: Data: 0.02MB + Index: 0.00MB + Engine InnoDB P1CdoL_pmxi_images: Data: 0.08MB + Index: 0.00MB + Engine InnoDB P1CdoL_pmxi_imports: Data: 1.52MB + Index: 0.00MB + Engine InnoDB P1CdoL_pmxi_posts: Data: 0.17MB + Index: 0.00MB + Engine InnoDB P1CdoL_pmxi_templates: Data: 0.17MB + Index: 0.00MB + Engine InnoDB P1CdoL_postmeta: Data: 86.58MB + Index: 21.06MB + Engine InnoDB P1CdoL_posts: Data: 21.52MB + Index: 3.61MB + Engine InnoDB P1CdoL_product_brandmeta: Data: 0.02MB + Index: 0.00MB + Engine InnoDB P1CdoL_product_catmeta: Data: 0.02MB + Index: 0.00MB + Engine InnoDB P1CdoL_pys_stat_landing: Data: 0.06MB + Index: 0.00MB + Engine InnoDB P1CdoL_pys_stat_order: Data: 0.09MB + Index: 0.00MB + Engine InnoDB P1CdoL_pys_stat_product_order: Data: 0.17MB + Index: 0.00MB + Engine InnoDB P1CdoL_pys_stat_traffic: Data: 0.02MB + Index: 0.00MB + Engine InnoDB P1CdoL_pys_stat_utm_campaing: Data: 0.02MB + Index: 0.00MB + Engine InnoDB P1CdoL_pys_stat_utm_content: Data: 0.02MB + Index: 0.00MB + Engine InnoDB P1CdoL_pys_stat_utm_medium: Data: 0.02MB + Index: 0.00MB + Engine InnoDB P1CdoL_pys_stat_utm_source: Data: 0.02MB + Index: 0.00MB + Engine InnoDB P1CdoL_pys_stat_utm_term: Data: 0.02MB + Index: 0.00MB + Engine InnoDB P1CdoL_rank_math_analytics_gsc: Data: 2.52MB + Index: 5.81MB + Engine InnoDB P1CdoL_rank_math_analytics_inspections: Data: 0.09MB + Index: 0.14MB + Engine InnoDB P1CdoL_rank_math_analytics_objects: Data: 0.16MB + Index: 0.06MB + Engine InnoDB P1CdoL_rank_math_internal_links: Data: 0.11MB + Index: 0.05MB + Engine InnoDB P1CdoL_rank_math_internal_meta: Data: 0.05MB + Index: 0.00MB + Engine InnoDB P1CdoL_rank_math_redirections: Data: 0.02MB + Index: 0.02MB + Engine InnoDB P1CdoL_rank_math_redirections_cache: Data: 0.02MB + Index: 0.02MB + Engine InnoDB P1CdoL_revslider_css: Data: 0.13MB + Index: 0.02MB + Engine InnoDB P1CdoL_revslider_css_bkp: Data: 0.02MB + Index: 0.02MB + Engine InnoDB P1CdoL_revslider_layer_animations: Data: 0.02MB + Index: 0.00MB + Engine InnoDB P1CdoL_revslider_layer_animations_bkp: Data: 0.02MB + Index: 0.00MB + Engine InnoDB P1CdoL_revslider_navigations: Data: 0.02MB + Index: 0.00MB + Engine InnoDB P1CdoL_revslider_navigations_bkp: Data: 0.02MB + Index: 0.00MB + Engine InnoDB P1CdoL_revslider_sliders: Data: 0.02MB + Index: 0.02MB + Engine InnoDB P1CdoL_revslider_sliders_bkp: Data: 0.02MB + Index: 0.02MB + Engine InnoDB P1CdoL_revslider_slides: Data: 0.02MB + Index: 0.02MB + Engine InnoDB P1CdoL_revslider_slides_bkp: Data: 0.02MB + Index: 0.02MB + Engine InnoDB P1CdoL_revslider_static_slides: Data: 0.02MB + Index: 0.02MB + Engine InnoDB P1CdoL_revslider_static_slides_bkp: Data: 0.02MB + Index: 0.02MB + Engine InnoDB P1CdoL_shopmagic_automation_outcome: Data: 0.02MB + Index: 0.00MB + Engine InnoDB P1CdoL_shopmagic_automation_outcome_logs: Data: 0.06MB + Index: 0.02MB + Engine InnoDB P1CdoL_shopmagic_cart: Data: 0.02MB + Index: 0.06MB + Engine InnoDB P1CdoL_shopmagic_guest: Data: 0.02MB + Index: 0.00MB + Engine InnoDB P1CdoL_shopmagic_guest_meta: Data: 0.02MB + Index: 0.02MB + Engine InnoDB P1CdoL_shopmagic_marketing_lists: Data: 0.02MB + Index: 0.02MB + Engine InnoDB P1CdoL_shopmagic_optin_email: Data: 0.02MB + Index: 0.00MB + Engine InnoDB P1CdoL_smsalert_booking_reminder: Data: 0.02MB + Index: 0.00MB + Engine InnoDB P1CdoL_smsalert_renewal_reminders: Data: 0.02MB + Index: 0.00MB + Engine InnoDB P1CdoL_smush_dir_images: Data: 0.02MB + Index: 0.03MB + Engine InnoDB P1CdoL_term_relationships: Data: 0.27MB + Index: 0.20MB + Engine InnoDB P1CdoL_term_taxonomy: Data: 0.11MB + Index: 0.11MB + Engine InnoDB P1CdoL_termmeta: Data: 0.16MB + Index: 0.20MB + Engine InnoDB P1CdoL_terms: Data: 0.22MB + Index: 0.31MB + Engine InnoDB P1CdoL_tm_taskmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB P1CdoL_tm_tasks: Data: 0.02MB + Index: 0.02MB + Engine InnoDB P1CdoL_toolset_associations: Data: 0.02MB + Index: 0.06MB + Engine InnoDB P1CdoL_toolset_connected_elements: Data: 0.02MB + Index: 0.03MB + Engine InnoDB P1CdoL_toolset_post_guid_id: Data: 0.02MB + Index: 0.03MB + Engine InnoDB P1CdoL_toolset_relationships: Data: 0.02MB + Index: 0.08MB + Engine InnoDB P1CdoL_toolset_type_sets: Data: 0.02MB + Index: 0.03MB + Engine InnoDB P1CdoL_usermeta: Data: 3.52MB + Index: 5.03MB + Engine InnoDB P1CdoL_users: Data: 0.27MB + Index: 0.27MB + Engine InnoDB P1CdoL_wa_confirmationlinks: Data: 0.02MB + Index: 0.00MB + Engine InnoDB P1CdoL_wa_log: Data: 0.02MB + Index: 0.00MB + Engine InnoDB P1CdoL_wa_queue: Data: 0.02MB + Index: 0.00MB + Engine InnoDB P1CdoL_wc_admin_note_actions: Data: 0.02MB + Index: 0.02MB + Engine InnoDB P1CdoL_wc_admin_notes: Data: 0.05MB + Index: 0.00MB + Engine InnoDB P1CdoL_wc_category_lookup: Data: 0.02MB + Index: 0.00MB + Engine InnoDB P1CdoL_wc_comments_subscription: Data: 0.02MB + Index: 0.06MB + Engine InnoDB P1CdoL_wc_customer_lookup: Data: 0.30MB + Index: 0.23MB + Engine InnoDB P1CdoL_wc_download_log: Data: 0.02MB + Index: 0.03MB + Engine InnoDB P1CdoL_wc_feedback_forms: Data: 0.02MB + Index: 0.03MB + Engine InnoDB P1CdoL_wc_follow_users: Data: 0.02MB + Index: 0.13MB + Engine InnoDB P1CdoL_wc_gpf_render_cache: Data: 0.02MB + Index: 0.02MB + Engine InnoDB P1CdoL_wc_order_coupon_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB P1CdoL_wc_order_product_lookup: Data: 0.33MB + Index: 0.36MB + Engine InnoDB P1CdoL_wc_order_stats: Data: 0.22MB + Index: 0.22MB + Engine InnoDB P1CdoL_wc_order_tax_lookup: Data: 0.13MB + Index: 0.13MB + Engine InnoDB P1CdoL_wc_phrases: Data: 0.02MB + Index: 0.02MB + Engine InnoDB P1CdoL_wc_product_attributes_lookup: Data: 0.38MB + Index: 0.44MB + Engine InnoDB P1CdoL_wc_product_download_directories: Data: 0.02MB + Index: 0.02MB + Engine InnoDB P1CdoL_wc_product_meta_lookup: Data: 0.19MB + Index: 0.38MB + Engine InnoDB P1CdoL_wc_rate_limits: Data: 0.02MB + Index: 0.02MB + Engine InnoDB P1CdoL_wc_reserved_stock: Data: 0.02MB + Index: 0.00MB + Engine InnoDB P1CdoL_wc_tax_rate_classes: Data: 0.02MB + Index: 0.02MB + Engine InnoDB P1CdoL_wc_users_rated: Data: 0.02MB + Index: 0.03MB + Engine InnoDB P1CdoL_wc_users_voted: Data: 0.02MB + Index: 0.08MB + Engine InnoDB P1CdoL_wc_webhooks: Data: 0.02MB + Index: 0.02MB + Engine InnoDB P1CdoL_wcpdf_credit_note_number: Data: 0.02MB + Index: 0.00MB + Engine InnoDB P1CdoL_wcpdf_invoice_number: Data: 0.02MB + Index: 0.00MB + Engine InnoDB P1CdoL_wcpdf_packing_slip_number: Data: 0.02MB + Index: 0.00MB + Engine InnoDB P1CdoL_wcpdf_proforma_number: Data: 0.02MB + Index: 0.00MB + Engine InnoDB P1CdoL_wfblockediplog: Data: 0.02MB + Index: 0.00MB + Engine InnoDB P1CdoL_wfblocks7: Data: 0.02MB + Index: 0.05MB + Engine InnoDB P1CdoL_wfconfig: Data: 0.50MB + Index: 0.00MB + Engine InnoDB P1CdoL_wfcrawlers: Data: 0.02MB + Index: 0.00MB + Engine InnoDB P1CdoL_wffilechanges: Data: 0.02MB + Index: 0.00MB + Engine InnoDB P1CdoL_wffilemods: Data: 7.52MB + Index: 0.00MB + Engine InnoDB P1CdoL_wfhits: Data: 0.02MB + Index: 0.05MB + Engine InnoDB P1CdoL_wfhoover: Data: 0.02MB + Index: 0.02MB + Engine InnoDB P1CdoL_wfissues: Data: 0.02MB + Index: 0.06MB + Engine InnoDB P1CdoL_wfknownfilelist: Data: 4.52MB + Index: 0.00MB + Engine InnoDB P1CdoL_wflivetraffichuman: Data: 0.02MB + Index: 0.02MB + Engine InnoDB P1CdoL_wflocs: Data: 0.02MB + Index: 0.00MB + Engine InnoDB P1CdoL_wflogins: Data: 0.02MB + Index: 0.03MB + Engine InnoDB P1CdoL_wfls_2fa_secrets: Data: 0.02MB + Index: 0.02MB + Engine InnoDB P1CdoL_wfls_settings: Data: 0.02MB + Index: 0.00MB + Engine InnoDB P1CdoL_wfnotifications: Data: 0.02MB + Index: 0.00MB + Engine InnoDB P1CdoL_wfpendingissues: Data: 0.02MB + Index: 0.06MB + Engine InnoDB P1CdoL_wfreversecache: Data: 0.02MB + Index: 0.00MB + Engine InnoDB P1CdoL_wfsnipcache: Data: 0.02MB + Index: 0.05MB + Engine InnoDB P1CdoL_wfstatus: Data: 0.25MB + Index: 0.16MB + Engine InnoDB P1CdoL_wftrafficrates: Data: 0.02MB + Index: 0.00MB + Engine InnoDB P1CdoL_woocommerce_gpf_google_taxonomy: Data: 1.52MB + Index: 0.13MB + Engine InnoDB P1CdoL_woocommerce_gzd_dhl_im_product_services: Data: 0.02MB + Index: 0.03MB + Engine InnoDB P1CdoL_woocommerce_gzd_dhl_im_products: Data: 0.02MB + Index: 0.03MB + Engine InnoDB P1CdoL_woocommerce_gzd_packaging: Data: 0.02MB + Index: 0.00MB + Engine InnoDB P1CdoL_woocommerce_gzd_packagingmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB P1CdoL_woocommerce_gzd_shipment_itemmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB P1CdoL_woocommerce_gzd_shipment_items: Data: 0.02MB + Index: 0.06MB + Engine InnoDB P1CdoL_woocommerce_gzd_shipment_labelmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB P1CdoL_woocommerce_gzd_shipment_labels: Data: 0.02MB + Index: 0.03MB + Engine InnoDB P1CdoL_woocommerce_gzd_shipmentmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB P1CdoL_woocommerce_gzd_shipments: Data: 0.02MB + Index: 0.05MB + Engine InnoDB P1CdoL_woocommerce_gzd_shipping_provider: Data: 0.02MB + Index: 0.00MB + Engine InnoDB P1CdoL_woocommerce_gzd_shipping_providermeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB P1CdoL_woocommerce_shipping_table_rates: Data: 0.02MB + Index: 0.00MB + Engine InnoDB P1CdoL_wp_phpmyadmin_extension__errors_log: Data: 0.02MB + Index: 0.02MB + Engine InnoDB P1CdoL_wpc_comments_subscription: Data: 0.02MB + Index: 0.05MB + Engine InnoDB P1CdoL_wpc_phrases: Data: 0.02MB + Index: 0.02MB + Engine InnoDB P1CdoL_wpc_users_voted: Data: 0.02MB + Index: 0.06MB + Engine InnoDB P1CdoL_wpda_csv_uploads: Data: 0.02MB + Index: 0.00MB + Engine InnoDB P1CdoL_wpda_logging: Data: 0.02MB + Index: 0.00MB + Engine InnoDB P1CdoL_wpda_media: Data: 0.02MB + Index: 0.00MB + Engine InnoDB P1CdoL_wpda_menus: Data: 0.02MB + Index: 0.00MB + Engine InnoDB P1CdoL_wpda_project: Data: 0.02MB + Index: 0.02MB + Engine InnoDB P1CdoL_wpda_project_page: Data: 0.02MB + Index: 0.02MB + Engine InnoDB P1CdoL_wpda_project_table: Data: 0.02MB + Index: 0.00MB + Engine InnoDB P1CdoL_wpda_publisher: Data: 0.02MB + Index: 0.02MB + Engine InnoDB P1CdoL_wpda_table_design: Data: 0.02MB + Index: 0.00MB + Engine InnoDB P1CdoL_wpda_table_settings: Data: 0.02MB + Index: 0.00MB + Engine InnoDB P1CdoL_wpfm_backup: Data: 0.02MB + Index: 0.00MB + Engine InnoDB P1CdoL_wpforms_tasks_meta: Data: 0.02MB + Index: 0.00MB + Engine InnoDB P1CdoL_wpmailsmtp_debug_events: Data: 0.02MB + Index: 0.00MB + Engine InnoDB P1CdoL_wpmailsmtp_tasks_meta: Data: 0.02MB + Index: 0.00MB + Engine InnoDB P1CdoL_wpml_mails: Data: 0.02MB + Index: 0.00MB + Engine InnoDB P1CdoL_wpnotif_mobile_otp: Data: 0.02MB + Index: 0.02MB + Engine InnoDB P1CdoL_wpnotif_newsletter: Data: 0.02MB + Index: 0.05MB + Engine InnoDB P1CdoL_wpnotif_newsletter_history: Data: 0.02MB + Index: 0.03MB + Engine InnoDB P1CdoL_wpnotif_newsletter_send_history: Data: 0.02MB + Index: 0.02MB + Engine InnoDB P1CdoL_wpnotif_sms_app: Data: 0.02MB + Index: 0.00MB + Engine InnoDB P1CdoL_wpnotif_subgroups: Data: 0.02MB + Index: 0.03MB + Engine InnoDB P1CdoL_wpnotif_subgroups_subscribers: Data: 0.02MB + Index: 0.03MB + Engine InnoDB P1CdoL_wpnotif_subscribers: Data: 0.02MB + Index: 0.06MB + Engine InnoDB P1CdoL_wpnotif_whatsapp_messages: Data: 0.02MB + Index: 0.00MB + Engine InnoDB P1CdoL_yith_wcbm_badge_rules_associations: Data: 0.02MB + Index: 0.00MB + Engine InnoDB P1CdoL_yith_wcwl: Data: 0.02MB + Index: 0.02MB + Engine InnoDB P1CdoL_yith_wcwl_lists: Data: 0.02MB + Index: 0.03MB + Engine InnoDB P1CdoL_yith_ywrac_email_log: Data: 0.02MB + Index: 0.00MB + Engine InnoDB P1CdoL_yoast_indexable: Data: 2.52MB + Index: 0.91MB + Engine InnoDB P1CdoL_yoast_indexable_hierarchy: Data: 0.16MB + Index: 0.28MB + Engine InnoDB P1CdoL_yoast_migrations: Data: 0.02MB + Index: 0.02MB + Engine InnoDB P1CdoL_yoast_primary_term: Data: 0.02MB + Index: 0.03MB + Engine InnoDB P1CdoL_yoast_prominent_words: Data: 0.02MB + Index: 0.05MB + Engine InnoDB P1CdoL_yoast_seo_links: Data: 0.14MB + Index: 0.11MB + Engine InnoDB P1CdoL_ywrr_email_blocklist: Data: 0.02MB + Index: 0.00MB + Engine InnoDB P1CdoL_ywrr_email_schedule: Data: 0.02MB + Index: 0.00MB + Engine InnoDB Post Type Counts acf-field: 1 acf-field-group: 1 attachment: 2100 automation-workflow: 1 aw_workflow: 12 cookielawinfo: 36 customize_changeset: 3 disease: 4 elementor_library: 6 mc4wp-form: 6 nav_menu_item: 391 page: 90 post: 1 product: 378 product_variation: 807 product-feed: 1 revision: 1804 shop_coupon: 14 shop_order: 1545 shop_order_refund: 5 shopmagic_automation: 4 udesign_template: 29 wmpc-trash: 2102 wp_global_styles: 123 wp-types-group: 267 wpdiscuz_form: 1 yith-wcbm-badge: 18 ywrac_email: 18 Security Secure connection (HTTPS): ? Hide errors from visitors: ?Error messages should not be shown to visitors. Active Plugins (1) WooCommerce: by Automattic – 7.8.0 Inactive Plugins (58) Admin Menu Editor: by Janis Elsts – 1.11 Advanced Custom Fields: by WP Engine – 6.1.6 Advanced Custom Fields Multilingual: by OnTheGoSystems – 2.0.5 All In One WP Security: by All In One WP Security & Firewall Team – 5.1.9 AutomateWoo: by WooCommerce – 5.5.22 City Dropdown for Woocommerce: by Dabex – 1.0.3 CookieYes | GDPR Cookie Consent: by CookieYes – 3.0.9 CTX Feed Pro: by WebAppick Author – 6.6.17 Customer Reviews for WooCommerce: by CusRev – 5.29.3 Customer Reviews for WooCommerce PRO: by CusRev – 1.3.4 Elementor: by Elementor.com – 3.14.0 EU/UK VAT for WooCommerce Pro: by WPFactory – 2.9.9 Flexible Shipping: by Octolize – 4.21.3 Frisbo Woocommerce: by Frisbo – 2.1.9 GTM4WP: by Thomas Geiger – 1.16.2 Hide Categories and Products for Woocommerce: by N.O.U.S. Open Useful and Simple – 1.2.8 IP2Location Redirection: by IP2Location – 1.26.9 Kirki Customizer Framework: by Themeum – 4.2.0 LiteSpeed Cache: by LiteSpeed Technologies – 5.5 Meta Box: by MetaBox.io – 5.7.3 Newsletter: by Stefano Lissa & The Newsletter Team – 7.8.7 Newsletter - Addons Manager: by The Newsletter Team – 1.2.0 Newsletter - Reports and Retargeting: by The Newsletter Team – 4.4.8 Newsletter - WooCommerce: by The Newsletter Team – 1.7.8 Payment Plugins for Stripe WooCommerce: by Payment Plugins [email protected] – 3.3.43 PDF Invoices & Packing Slips for WooCommerce: by WP Overnight – 3.5.6 Phone Validator for WooCommerce: by Precious Omonzejele (CodeXplorer ) – 1.3.0 PixelYourSite PRO: by PixelYourSite – 9.7.1 PixelYourSite Super Pack: by PixelYourSite – 3.3.0 Premium Addons for Elementor: by Leap13 – 4.10.0 Query Monitor: by John Blackbourn – 3.12.3 Rank Math SEO: by Rank Math – 1.0.117.1 Regenerate Thumbnails: by Alex Mills (Viper007Bond) – 3.1.5 Social Login, Social Sharing by miniOrange: by miniOrange – 7.6.5 String Locator: by InstaWP – 2.6.1 Temporary Login Without Password: by StoreApps – 1.8.2 TFM WooCommerce PayU Gateway: by TFM Group Software – 2.0.4 UDesign Core: by AndonDesign – 4.7.2 WooCommerce added to cart popup (Ajax): by XootiX – 1.6 WooCommerce AddOn by miniOrange: by miniOrange – 1.0.0 WooCommerce Multilingual & Multicurrency: by OnTheGoSystems – 5.2.0 WooCommerce PayPal Payments: by WooCommerce – 2.1.0 WooCommerce PDF Invoices & Packing Slips Professional: by Ewout Fernhout – 2.12.0 WP All Export - WooCommerce Export Add-On Pro: by Soflyy – 1.0.6 WP All Export Pro: by Soflyy – 1.8.0 WPC Composite Products for WooCommerce: by WPClever – 7.0.4 WP Mail SMTP: by WP Mail SMTP – 3.8.0 WPML Media: by OnTheGoSystems – 2.7.3 WPML Multilingual CMS: by OnTheGoSystems – 4.6.4 WPML SEO: by OnTheGoSystems – 2.1.0 WPML String Translation: by OnTheGoSystems – 3.2.6 WP Rollback: by GiveWP.com – 1.7.3 WP Sheet Editor - WooCommerce Orders Pro: by WP Sheet Editor – 1.2.20 WP Sheet Editor - WooCommerce Products (Premium): by WP Sheet Editor – 1.7.10 YITH WooCommerce Badge Management Premium: by YITH – 2.3.0 YITH WooCommerce SMS Notifications Premium: by YITH – 1.11.0 YITH WooCommerce Waiting List Premium: by YITH – 1.9.7 YITH WooCommerce Wishlist: by YITH – 3.22.0 Dropin Plugins (1) maintenance.php: maintenance.php Settings API Enabled: – Force SSL: – Currency: RON (lei) Currency Position: right_space Thousand Separator: Decimal Separator: . Number of Decimals: 0 Taxonomies: Product Types: composite (composite) external (external) grouped (grouped) simple (simple) variable (variable) Taxonomies: Product Visibility: exclude-from-catalog (exclude-from-catalog) exclude-from-catalog (exclude-from-catalog-fr) exclude-from-catalog (exclude-from-catalog-hu) exclude-from-catalog (exclude-from-catalog-ro) exclude-from-catalog (exclude-from-catalog-it) exclude-from-catalog (exclude-from-catalog-de) exclude-from-search (exclude-from-search-ro) exclude-from-search (exclude-from-search-de) exclude-from-search (exclude-from-search-hu) exclude-from-search (exclude-from-search-fr) exclude-from-search (exclude-from-search-it) exclude-from-search (exclude-from-search) featured (featured-it) featured (featured) featured (featured-hu) featured (featured-fr) featured (featured-de) featured (featured-ro) outofstock (outofstock-ro) outofstock (outofstock-de) outofstock (outofstock-fr) outofstock (outofstock-it) outofstock (outofstock-hu) outofstock (outofstock) rated-1 (rated-1) rated-1 (rated-1-fr) rated-1 (rated-1-de) rated-1 (rated-1-it) rated-1 (rated-1-hu) rated-1 (rated-1-ro) rated-2 (rated-2-ro) rated-2 (rated-2) rated-2 (rated-2-de) rated-2 (rated-2-hu) rated-2 (rated-2-it) rated-2 (rated-2-fr) rated-3 (rated-3-de) rated-3 (rated-3-it) rated-3 (rated-3-hu) rated-3 (rated-3-ro) rated-3 (rated-3-fr) rated-3 (rated-3) rated-4 (rated-4) rated-4 (rated-4-ro) rated-4 (rated-4-hu) rated-4 (rated-4-it) rated-4 (rated-4-de) rated-4 (rated-4-fr) rated-5 (rated-5) rated-5 (rated-5-fr) rated-5 (rated-5-hu) rated-5 (rated-5-de) rated-5 (rated-5-ro) rated-5 (rated-5-it) Connected to WooCommerce.com: – Enforce Approved Product Download Directories: – HPOS feature screen enabled: – HPOS feature enabled: – Order datastore: WC_Order_Data_Store_CPT HPOS data sync enabled: – WC Pages Shop base: #5 - /shop/ Cart: #22662 - /cart/ Checkout: #22675 - /checkout/ My account: #22687 - /my-account/ Terms and conditions: #16 - /terms-and-conditions/ Theme Name: Storefront Version: 4.3.0 Author URL: https://woocommerce.com/ 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 product-block-editor coupons customer-effort-score-tracks import-products-task experimental-fashion-sample-products 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 woo-mobile-welcome wc-pay-promotion wc-pay-welcome-page Disabled Features: core-profiler minified-js new-product-management-experience product-variation-management settings async-product-editor-category-field Daily Cron: ? Next scheduled: 2023-06-26 06:00:03 +03:00 Options: ? Notes: 30 Onboarding: completed Action Scheduler Complete: 1,164 Oldest: 2023-06-01 11:35:42 +0300 Newest: 2023-06-26 08:43:14 +0300 Pending: 4 Oldest: 2023-06-26 08:47:54 +0300 Newest: 2023-06-29 11:37:19 +0300 Failed: 15,589 Oldest: 2022-11-09 04:58:19 +0200 Newest: 2023-06-26 08:44:39 +0300 Canceled: 45 Oldest: 2023-06-01 11:36:40 +0300 Newest: 2023-06-22 11:38:32 +0300 Status report information Generated at: 2023-06-26 08:47:10 +03:00 `
Could please anyone provide some help on this issue. I get the same fatal error after upgrading to v7.8.1
Hi @egletiere ,
Thanks for reaching out!
It seems the issue is related to the
get_attributes()
function being called on a boolean value instead of an object, which is causing the error in your WooCommerce REST API.One possible reason for this could be an issue with one or more of your product attributes. The error could be triggered if an attribute is expected to be an object, but it’s actually a boolean (true or false).
This might happen if there’s a product with an attribute that doesn’t exist or if there’s a problem with the data in your database.
I’d suggest going through your products and checking their attributes. Make sure that all attributes assigned to products actually exist and are correctly set up.
Cheers!
Hello and thanks for your answer!
I just deleted all product attributes but the error still shows up in the fresh logs…
I resolved the issue by accessing the tool for deleting Orphaned variations
- This reply was modified 1 year, 4 months ago by Egl.
Hi @egletiere
You are most welcome and we’re glad that worked! ??
Meanwhile, if you have a moment to spare, we would love it if you could share your thoughts with us by leaving a review or feedback. Your experience and feedback are important to help us improve and ensure we’re always providing the best possible support.
Thanks!
- The topic ‘CRITICAL Uncaught Error: Call to a member function get_attributes()’ is closed to new replies.