• Resolved victorpietro

    (@victorpietro)


    Hello, I am currently having this problem when I try to edit with Elementor my Products Archive.

    It started happening yesterday after a WooCommerce update.

    Here is the message:

    
    Fatal error: Uncaught Error: Call to undefined method WP_Error::get_data() in /home1/xxxxxx/yyyyyy.com.br/wp-content/plugins/woocommerce/packages/woocommerce-blocks/src/RestApi.php:64 Stack trace: #0 /home1/xxxxxx/yyyyyy.com.br/wp-content/plugins/woocommerce/packages/woocommerce-blocks/src/BlockTypes/AbstractBlock.php(349): Automattic\WooCommerce\Blocks\RestApi->get_routes_from_namespace('wc/store') #1 /home1/xxxxxx/yyyyyy.com.br/wp-content/plugins/woocommerce/packages/woocommerce-blocks/src/BlockTypes/AbstractBlock.php(287): Automattic\WooCommerce\Blocks\BlockTypes\AbstractBlock->enqueue_data(Array) #2 /home1/xxxxxx/yyyyyy.com.br/wp-content/plugins/woocommerce/packages/woocommerce-blocks/src/BlockTypes/AbstractBlock.php(84): Automattic\WooCommerce\Blocks\BlockTypes\AbstractBlock->enqueue_assets(Array) #3 /home1/xxxxxx/yyyyyy.com.br/wp-includes/class-wp-block.php(221): Automattic\WooCommerce\Blocks\BlockTypes\AbstractBlock->render_callback(Array, '', Object(WP_Block)) #4 /home1/xxxxxx/yyyyyy.com.br/wp-includes/block in /home1/xxxxxx/yyyyyy.com.br/wp-content/plugins/woocommerce/packages/woocommerce-blocks/src/RestApi.php on line 64
    

    Here are my current WC and WP versions:

    
    Vers?o do WooCommerce:		5.6.0
    Pacote do WooCommerce REST API:		 5.6.0 /home1/xxxxxx/yyyyyy.com.br/wp-content/plugins/woocommerce/includes
    Pacote WooCommerce Blocks:		 5.5.1 /home1/xxxxxx/yyyyyy.com.br/wp-content/plugins/woocommerce/packages/woocommerce-blocks/
    Pacote do Agendador de a??es:		 3.2.1 /home1/xxxxxx/yyyyyy.com.br/wp-content/plugins/woocommerce/packages/action-scheduler
    Pacote do WooCommerce Admin:		 2.5.1 /home1/xxxxxx/yyyyyy.com.br/wp-content/plugins/woocommerce/packages/woocommerce-admin
    Diretório gravável de registros:		 /home1/xxxxxx/yyyyyy.com.br/wp-content/uploads/wc-logs/
    Vers?o do WordPress:		5.8
    

    And the plugins I use:

    
    Plugins ativados (31)
    ManageWP - Worker	 	por GoDaddy – 4.9.9
    FiboSearch - AJAX Search for WooCommerce	 	por FiboSearch Team – 1.13.0
    All In One WP Security	 	por Tips and Tricks HQ, Peter Petreski, Ruhul, Ivy – 4.4.9
    Antispam Bee	 	por pluginkollektiv – 2.10.0
    The SEO Framework	 	por The SEO Framework Team – 4.1.4
    BBQ Firewall	 	por Jeff Starr – 20210719
    Breadcrumb NavXT	 	por John Havlik – 6.6.0
    Child Theme Generator	 	por Serafino Corriero – 2.2.7
    Code Snippets	 	por Code Snippets Pro – 2.14.1
    Contact Form Entries	 	por CRM Perks – 1.2.1
    GDPR Cookie Consent	 	por WebToffee – 2.0.5
    Elementor Pro	 	por Elementor.com – 3.3.7
    Elementor	 	por Elementor.com – 3.4.1
    Folders	 	por Premio – 2.7.1
    Header Footer Code Manager	 	por 99robots – 1.1.11
    Jetpack	 	por Automattic – 10.0
    Media File Renamer	 	por Jordy Meow – 5.2.4
    Melhor Envio v2	 	por Melhor Envio – 2.9.14
    Pix por Piggly (para Woocommerce)	 	por Piggly Lab – 1.3.15
    Sticky Header Effects for Elementor	 	por Rwattner – 1.4.7
    UpdraftPlus - Backup/Restore	 	por UpdraftPlus.Com, DavidAnderson – 1.16.59
    White Label CMS	 	por www.videousermanuals.com – 2.2.3
    WooCommerce Cart Abandonment Recovery	 	por CartFlows Inc – 1.2.13
    Brazilian Market on WooCommerce	 	por Claudio Sanches – 3.7.2
    Mercado Pago payments for WooCommerce	 	por Mercado Pago – 5.3.1
    WooCommerce	 	por Automattic – 5.6.0
    Wordfence Security	 	por Wordfence – 7.5.5
    WP Mail SMTP	 	por WPForms – 3.0.3
    WP-Optimize - Clean, Compress, Cache	 	por David Anderson, Ruhani Rabin, Team Updraft – 3.1.12
    Smush	 	por WPMU DEV – 3.8.8
    WPForms Lite	 	por WPForms – 1.6.8.1
    
Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support nathvi V. a11n

    (@nathvi)

    Hi @victorpietro

    While there is a standalone WooCommerce Blocks plugin, the woocommerce-blocksyou’re seeing is a package that comes with the core WooCommerce software.

    The error could be caused by a conflict with a plugin or theme.

    I’d like to better understand your site. Could you please send me a copy of your site’s System Status? You can find it via WooCommerce > Status. Select “Get system report” and then “Copy for support”. Once you’ve done that, you can paste it here in your response.

    Thread Starter victorpietro

    (@victorpietro)

    Hi @nathvi, thanks for your answer. My apologies, I didn’t know that it was unrelated to this plugin.

    Here is my System Status:

    
    ### WordPress Environment ###
    
    WordPress address (URL): https://liaze.com.br
    Site address (URL): https://liaze.com.br
    WC Version: 5.6.0
    REST API Version: ? 5.6.0
    WC Blocks Version: ? 5.5.1
    Action Scheduler Version: ? 3.2.1
    WC Admin Version: ? 2.5.1
    Log Directory Writable: ?
    WP Version: 5.8
    WP Multisite: –
    WP Memory Limit: 512 MB
    WP Debug Mode: –
    WP Cron: ?
    Language: pt_BR
    External object cache: –
    
    ### Server Environment ###
    
    Server Info: Apache
    PHP Version: 7.4.22
    PHP Post Max Size: 516 MB
    PHP Time Limit: 30
    PHP Max Input Vars: 1000
    cURL Version: 7.78.0
    OpenSSL/1.1.1k
    
    SUHOSIN Installed: –
    MySQL Version: 5.6.41-84.1
    Max Upload Size: 512 MB
    Default Timezone is UTC: ?
    fsockopen/cURL: ?
    SoapClient: ?
    DOMDocument: ?
    GZip: ?
    Multibyte String: ?
    Remote Post: ?
    Remote Get: ?
    
    ### Database ###
    
    WC Database Version: 5.6.0
    WC Database Prefix: wp_
    Tamanho total do banco de dados: 33.40MB
    Tamanho dos dados do banco de dados: 30.45MB
    Tamanho do índice do banco de dado: 2.95MB
    wp_woocommerce_sessions: Dados: 0.02MB + índex: 0.02MB + mecanismo InnoDB
    wp_woocommerce_api_keys: Dados: 0.02MB + índex: 0.03MB + mecanismo InnoDB
    wp_woocommerce_attribute_taxonomies: Dados: 0.02MB + índex: 0.02MB + mecanismo InnoDB
    wp_woocommerce_downloadable_product_permissions: Dados: 0.02MB + índex: 0.06MB + mecanismo InnoDB
    wp_woocommerce_order_items: Dados: 0.02MB + índex: 0.02MB + mecanismo InnoDB
    wp_woocommerce_order_itemmeta: Dados: 0.02MB + índex: 0.03MB + mecanismo InnoDB
    wp_woocommerce_tax_rates: Dados: 0.02MB + índex: 0.06MB + mecanismo InnoDB
    wp_woocommerce_tax_rate_locations: Dados: 0.02MB + índex: 0.03MB + mecanismo InnoDB
    wp_woocommerce_shipping_zones: Dados: 0.02MB + índex: 0.00MB + mecanismo InnoDB
    wp_woocommerce_shipping_zone_locations: Dados: 0.02MB + índex: 0.03MB + mecanismo InnoDB
    wp_woocommerce_shipping_zone_methods: Dados: 0.02MB + índex: 0.00MB + mecanismo InnoDB
    wp_woocommerce_payment_tokens: Dados: 0.02MB + índex: 0.02MB + mecanismo InnoDB
    wp_woocommerce_payment_tokenmeta: Dados: 0.02MB + índex: 0.03MB + mecanismo InnoDB
    wp_woocommerce_log: Dados: 0.02MB + índex: 0.02MB + mecanismo InnoDB
    wp_actionscheduler_actions: Dados: 0.02MB + índex: 0.13MB + mecanismo InnoDB
    wp_actionscheduler_claims: Dados: 0.02MB + índex: 0.02MB + mecanismo InnoDB
    wp_actionscheduler_groups: Dados: 0.02MB + índex: 0.02MB + mecanismo InnoDB
    wp_actionscheduler_logs: Dados: 0.02MB + índex: 0.03MB + mecanismo InnoDB
    wp_aiowps_events: Dados: 0.02MB + índex: 0.00MB + mecanismo InnoDB
    wp_aiowps_failed_logins: Dados: 0.02MB + índex: 0.00MB + mecanismo InnoDB
    wp_aiowps_global_meta: Dados: 0.02MB + índex: 0.00MB + mecanismo InnoDB
    wp_aiowps_login_activity: Dados: 0.02MB + índex: 0.00MB + mecanismo InnoDB
    wp_aiowps_login_lockdown: Dados: 0.02MB + índex: 0.00MB + mecanismo InnoDB
    wp_aiowps_permanent_block: Dados: 0.02MB + índex: 0.00MB + mecanismo InnoDB
    wp_cartflows_ca_cart_abandonment: Dados: 0.02MB + índex: 0.02MB + mecanismo InnoDB
    wp_cartflows_ca_email_history: Dados: 0.02MB + índex: 0.03MB + mecanismo InnoDB
    wp_cartflows_ca_email_templates: Dados: 0.02MB + índex: 0.00MB + mecanismo InnoDB
    wp_cartflows_ca_email_templates_meta: Dados: 0.02MB + índex: 0.02MB + mecanismo InnoDB
    wp_cli_cookie_scan: Dados: 0.02MB + índex: 0.00MB + mecanismo InnoDB
    wp_cli_cookie_scan_categories: Dados: 0.02MB + índex: 0.02MB + mecanismo InnoDB
    wp_cli_cookie_scan_cookies: Dados: 0.02MB + índex: 0.03MB + mecanismo InnoDB
    wp_cli_cookie_scan_url: Dados: 0.02MB + índex: 0.00MB + mecanismo InnoDB
    wp_cli_scripts: Dados: 0.02MB + índex: 0.00MB + mecanismo InnoDB
    wp_commentmeta: Dados: 0.02MB + índex: 0.03MB + mecanismo InnoDB
    wp_comments: Dados: 0.02MB + índex: 0.08MB + mecanismo InnoDB
    wp_e_submissions: Dados: 0.02MB + índex: 0.23MB + mecanismo InnoDB
    wp_e_submissions_actions_log: Dados: 0.02MB + índex: 0.00MB + mecanismo InnoDB
    wp_e_submissions_values: Dados: 0.02MB + índex: 0.00MB + mecanismo InnoDB
    wp_hfcm_scripts: Dados: 0.02MB + índex: 0.00MB + mecanismo InnoDB
    wp_links: Dados: 0.02MB + índex: 0.02MB + mecanismo InnoDB
    wp_ms_snippets: Dados: 0.02MB + índex: 0.00MB + mecanismo InnoDB
    wp_options: Dados: 7.03MB + índex: 0.08MB + mecanismo InnoDB
    wp_postmeta: Dados: 7.48MB + índex: 0.47MB + mecanismo InnoDB
    wp_posts: Dados: 1.50MB + índex: 0.13MB + mecanismo InnoDB
    wp_smush_dir_images: Dados: 0.02MB + índex: 0.03MB + mecanismo InnoDB
    wp_snippets: Dados: 0.02MB + índex: 0.00MB + mecanismo InnoDB
    wp_termmeta: Dados: 0.02MB + índex: 0.03MB + mecanismo InnoDB
    wp_terms: Dados: 0.02MB + índex: 0.03MB + mecanismo InnoDB
    wp_term_relationships: Dados: 0.02MB + índex: 0.02MB + mecanismo InnoDB
    wp_term_taxonomy: Dados: 0.02MB + índex: 0.03MB + mecanismo InnoDB
    wp_tm_taskmeta: Dados: 0.02MB + índex: 0.03MB + mecanismo InnoDB
    wp_tm_tasks: Dados: 0.02MB + índex: 0.02MB + mecanismo InnoDB
    wp_usermeta: Dados: 0.02MB + índex: 0.03MB + mecanismo InnoDB
    wp_users: Dados: 0.02MB + índex: 0.05MB + mecanismo InnoDB
    wp_vxcf_leads: Dados: 0.02MB + índex: 0.05MB + mecanismo InnoDB
    wp_vxcf_leads_detail: Dados: 0.02MB + índex: 0.03MB + mecanismo InnoDB
    wp_vxcf_leads_notes: Dados: 0.02MB + índex: 0.02MB + mecanismo InnoDB
    wp_wc_admin_notes: Dados: 0.05MB + índex: 0.00MB + mecanismo InnoDB
    wp_wc_admin_note_actions: Dados: 0.02MB + índex: 0.02MB + mecanismo InnoDB
    wp_wc_category_lookup: Dados: 0.02MB + índex: 0.00MB + mecanismo InnoDB
    wp_wc_customer_lookup: Dados: 0.02MB + índex: 0.03MB + mecanismo InnoDB
    wp_wc_download_log: Dados: 0.02MB + índex: 0.03MB + mecanismo InnoDB
    wp_wc_order_coupon_lookup: Dados: 0.02MB + índex: 0.03MB + mecanismo InnoDB
    wp_wc_order_product_lookup: Dados: 0.02MB + índex: 0.06MB + mecanismo InnoDB
    wp_wc_order_stats: Dados: 0.02MB + índex: 0.05MB + mecanismo InnoDB
    wp_wc_order_tax_lookup: Dados: 0.02MB + índex: 0.03MB + mecanismo InnoDB
    wp_wc_product_meta_lookup: Dados: 0.02MB + índex: 0.09MB + mecanismo InnoDB
    wp_wc_reserved_stock: Dados: 0.02MB + índex: 0.00MB + mecanismo InnoDB
    wp_wc_tax_rate_classes: Dados: 0.02MB + índex: 0.02MB + mecanismo InnoDB
    wp_wc_webhooks: Dados: 0.02MB + índex: 0.02MB + mecanismo InnoDB
    wp_wfblockediplog: Dados: 0.02MB + índex: 0.00MB + mecanismo InnoDB
    wp_wfblocks7: Dados: 0.02MB + índex: 0.05MB + mecanismo InnoDB
    wp_wfconfig: Dados: 0.45MB + índex: 0.00MB + mecanismo InnoDB
    wp_wfcrawlers: Dados: 0.02MB + índex: 0.00MB + mecanismo InnoDB
    wp_wffilechanges: Dados: 0.02MB + índex: 0.00MB + mecanismo InnoDB
    wp_wffilemods: Dados: 8.52MB + índex: 0.00MB + mecanismo InnoDB
    wp_wfhits: Dados: 0.02MB + índex: 0.05MB + mecanismo InnoDB
    wp_wfhoover: Dados: 0.02MB + índex: 0.02MB + mecanismo InnoDB
    wp_wfissues: Dados: 0.02MB + índex: 0.06MB + mecanismo InnoDB
    wp_wfknownfilelist: Dados: 3.52MB + índex: 0.00MB + mecanismo InnoDB
    wp_wflivetraffichuman: Dados: 0.02MB + índex: 0.02MB + mecanismo InnoDB
    wp_wflocs: Dados: 0.02MB + índex: 0.00MB + mecanismo InnoDB
    wp_wflogins: Dados: 0.02MB + índex: 0.03MB + mecanismo InnoDB
    wp_wfls_2fa_secrets: Dados: 0.02MB + índex: 0.02MB + mecanismo InnoDB
    wp_wfls_settings: Dados: 0.02MB + índex: 0.00MB + mecanismo InnoDB
    wp_wfnotifications: Dados: 0.02MB + índex: 0.00MB + mecanismo InnoDB
    wp_wfpendingissues: Dados: 0.02MB + índex: 0.06MB + mecanismo InnoDB
    wp_wfreversecache: Dados: 0.02MB + índex: 0.00MB + mecanismo InnoDB
    wp_wfsnipcache: Dados: 0.02MB + índex: 0.05MB + mecanismo InnoDB
    wp_wfstatus: Dados: 0.16MB + índex: 0.11MB + mecanismo InnoDB
    wp_wftrafficrates: Dados: 0.02MB + índex: 0.00MB + mecanismo InnoDB
    wp_wpforms_tasks_meta: Dados: 0.02MB + índex: 0.00MB + mecanismo InnoDB
    wp_wpgly_pix_receipts: Dados: 0.02MB + índex: 0.00MB + mecanismo InnoDB
    wp_wpmailsmtp_debug_events: Dados: 0.02MB + índex: 0.00MB + mecanismo InnoDB
    wp_wpmailsmtp_tasks_meta: Dados: 0.02MB + índex: 0.00MB + mecanismo InnoDB
    
    ### Post Type Counts ###
    
    attachment: 210
    cartflows_flow: 3
    cartflows_step: 6
    cookielawinfo: 6
    custom_css: 4
    customize_changeset: 37
    elementor_font: 1
    elementor_library: 13
    nav_menu_item: 6
    page: 10
    post: 2
    product: 2
    revision: 327
    wpforms: 1
    
    ### Security ###
    
    Secure connection (HTTPS): ?
    Hide errors from visitors: ?
    
    ### Active Plugins (31) ###
    
    ManageWP - Worker: por GoDaddy – 4.9.9
    FiboSearch - AJAX Search for WooCommerce: por FiboSearch Team – 1.13.0
    All In One WP Security: por Tips and Tricks HQ
    Peter Petreski
    Ruhul
    Ivy – 4.4.9
    
    Antispam Bee: por pluginkollektiv – 2.10.0
    The SEO Framework: por The SEO Framework Team – 4.1.4
    BBQ Firewall: por Jeff Starr – 20210719
    Breadcrumb NavXT: por John Havlik – 6.6.0
    Child Theme Generator: por Serafino Corriero – 2.2.7
    Code Snippets: por Code Snippets Pro – 2.14.1
    Contact Form Entries: por CRM Perks – 1.2.1
    GDPR Cookie Consent: por WebToffee – 2.0.5
    Elementor Pro: por Elementor.com – 3.3.7
    Elementor: por Elementor.com – 3.4.1
    Folders: por Premio – 2.7.1
    Header Footer Code Manager: por 99robots – 1.1.11
    Jetpack: por Automattic – 10.0
    Media File Renamer: por Jordy Meow – 5.2.4
    Melhor Envio v2: por Melhor Envio – 2.9.14
    Pix por Piggly (para Woocommerce): por Piggly Lab – 1.3.15
    Sticky Header Effects for Elementor: por Rwattner – 1.4.7
    UpdraftPlus - Backup/Restore: por UpdraftPlus.Com
    DavidAnderson – 1.16.59
    
    White Label CMS: por www.videousermanuals.com – 2.2.3
    WooCommerce Cart Abandonment Recovery: por CartFlows Inc – 1.2.13
    Brazilian Market on WooCommerce: por Claudio Sanches – 3.7.2
    Mercado Pago payments for WooCommerce: por Mercado Pago – 5.3.1
    WooCommerce: por Automattic – 5.6.0
    Wordfence Security: por Wordfence – 7.5.5
    WP Mail SMTP: por WPForms – 3.0.3
    WP-Optimize - Clean, Compress, Cache: por David Anderson
    Ruhani Rabin
    Team Updraft – 3.1.12
    
    Smush: por WPMU DEV – 3.8.8
    WPForms Lite: por WPForms – 1.6.8.1
    
    ### Inactive Plugins (2) ###
    
    CartFlows: por CartFlows Inc – 1.7.0
    Starter Templates: por Brainstorm Force – 2.6.21
    
    ### Dropin Plugins (1) ###
    
    advanced-cache.php: advanced-cache.php
    
    ### Must Use Plugins (1) ###
    
    ManageWP - Worker Loader: por GoDaddy –
    
    ### Settings ###
    
    API Enabled: –
    Force SSL: –
    Currency: BRL (R$)
    Currency Position: left
    Thousand Separator: .
    Decimal Separator: ,
    Number of Decimals: 2
    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 ###
    
    Base da loja: #6 - /loja/
    Carrinho: #7 - /carrinho/
    Finalizar compra: #8 - /finalizar/
    Minha conta: #9 - /minha-conta/
    Termos e condi??es: ? Página n?o definida
    
    ### Theme ###
    
    Name: astra child theme
    Version: 1.0
    Author URL: 
    Child Theme: ?
    Parent Theme Name: Astra
    Parent Theme Version: 3.6.8
    Parent Theme Author URL: https://wpastra.com/about/
    WooCommerce Support: ?
    
    ### Templates ###
    
    Overrides: –
    
    ### Action Scheduler ###
    
    Concluído: 29
    Oldest: 2021-08-13 23:07:31 -0300
    Newest: 2021-08-18 21:38:16 -0300
    
    Pendente: 5
    Oldest: 2021-08-19 21:15:38 -0300
    Newest: 2021-08-23 14:00:00 -0300
    
    ### Status report information ###
    
    Generated at: 2021-08-18 23:56:21 -03:00
    
    • This reply was modified 3 years, 6 months ago by victorpietro.
    Plugin Support Aashik P – a11n

    (@aashik)

    Hi there!

    Thank you for getting back to us with the System Status Report.

    Investigating further, we see there’s a conflict with Elementor and WooCommerce blocks as was reported earlier in https://github.com/woocommerce/woocommerce-gutenberg-products-block/issues/3791

    Please reach out to the plugin developers directly for further instructions on fixing this.

    Plugin Support Sol J. a11n

    (@solstudioim)

    We haven’t heard back from you in a while, so I’m going to mark this as resolved – I trust that what Aashik said before points you in the right direction

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Fatal Error – RestApi.php on line 64’ is closed to new replies.