Critical errors Call to a member function get_id()
-
Hi,
We are building a new staging shop from scratch. We have configured Woocommerce and installed all plugins, including Sendcloud, but we have a lot of critical errors related to it like this
2024-05-11T00:26:31+00:00 Critical Uncaught Error: Call to a member function get_id() on bool in /home/my_hosting/www/my_staging_site/wp-content/plugins/woocommerce/includes/legacy/api/v2/class-wc-api-orders.php:155 Stack trace: #0 /home/my_hosting/www/my_staging_site/wp-content/plugins/woocommerce/includes/legacy/api/v2/class-wc-api-orders.php(124): WC_API_Orders->get_order(47629, NULL, Array) #1 /home/my_hosting/www/my_staging_site/wp-content/plugins/woocommerce/includes/legacy/api/v2/class-wc-api-server.php(371): WC_API_Orders->get_orders(NULL, Array, NULL, '1') #2 /home/my_hosting/www/my_staging_site/wp-content/plugins/woocommerce/includes/legacy/api/v2/class-wc-api-server.php(222): WC_API_Server->dispatch() #3 /home/my_hosting/www/my_staging_site/wp-content/plugins/woocommerce/includes/legacy/class-wc-legacy-api.php(378): WC_API_Server->serve_request() #4 /home/my_hosting/www/my_staging_site/wp-content/plugins/woocommerce/includes/legacy/class-wc-legacy-api.php(172): WC_Legacy_API->handle_v2_rest_api_request() #5 /home/my_hosting/www/my_staging_site/wp-includes/class-wp-hook.php(324): WC_Legacy_API->handle_rest_api_requests(Object(WP)) #6 /home/my_hosting/www/my_staging_site/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array) #7 /home/my_hosting/www/my_staging_site/wp-includes/plugin.php(565): WP_Hook->do_action(Array) #8 /home/my_hosting/www/my_staging_site/wp-includes/class-wp.php(418): do_action_ref_array('parse_request', Array) #9 /home/my_hosting/www/my_staging_site/wp-includes/class-wp.php(813): WP->parse_request('') #10 /home/my_hosting/www/my_staging_site/wp-includes/functions.php(1336): WP->main('') #11 /home/my_hosting/www/my_staging_site/wp-blog-header.php(16): wp() #12 /home/my_hosting/www/my_staging_site/index.php(17): require('/home/my_hosting/w...') #13 {main}
And these are all the environment configurations
` ### WordPress Environment ### WordPress address (URL): https://staging.myshop.com Site address (URL): https://staging.myshop.com WC Version: 8.8.3 REST API Version: ? 8.8.3 Action Scheduler Version: ? 3.7.4 Log Directory Writable: ? WP Version: 6.5.3 WP Multisite: – WP Memory Limit: 512 MB WP Debug Mode: – WP Cron: ? Language: es_ES External object cache: – ### Server Environment ### Server Info: Apache PHP Version: 8.0.30 PHP Post Max Size: 130 MB PHP Time Limit: 165 PHP Max Input Vars: 16000 cURL Version: 7.64.0 OpenSSL/1.1.1n SUHOSIN Installed: – MySQL Version: 5.7.42-log Max Upload Size: 128 MB Default Timezone is UTC: ? fsockopen/cURL: ? SoapClient: ? DOMDocument: ? GZip: ? Multibyte String: ? Remote Post: ? Remote Get: ? ### Database ### WC Database Version: 8.8.3 WC Database Prefix: wp_ Tama?o total de la base de datos: 87.10MB Tama?o de los datos de la base de datos: 66.71MB Tama?o del índice de la base de datos: 20.39MB wp_woocommerce_sessions: Datos: 0.08MB + índice: 0.02MB + Motor InnoDB wp_woocommerce_api_keys: Datos: 0.02MB + índice: 0.03MB + Motor InnoDB wp_woocommerce_attribute_taxonomies: Datos: 0.02MB + índice: 0.02MB + Motor InnoDB wp_woocommerce_downloadable_product_permissions: Datos: 0.02MB + índice: 0.06MB + Motor InnoDB wp_woocommerce_order_items: Datos: 0.02MB + índice: 0.02MB + Motor InnoDB wp_woocommerce_order_itemmeta: Datos: 0.02MB + índice: 0.03MB + Motor InnoDB wp_woocommerce_tax_rates: Datos: 0.02MB + índice: 0.06MB + Motor InnoDB wp_woocommerce_tax_rate_locations: Datos: 0.02MB + índice: 0.03MB + Motor InnoDB wp_woocommerce_shipping_zones: Datos: 0.02MB + índice: 0.00MB + Motor InnoDB wp_woocommerce_shipping_zone_locations: Datos: 0.02MB + índice: 0.05MB + Motor InnoDB wp_woocommerce_shipping_zone_methods: Datos: 0.02MB + índice: 0.00MB + Motor InnoDB wp_woocommerce_payment_tokens: Datos: 0.02MB + índice: 0.02MB + Motor InnoDB wp_woocommerce_payment_tokenmeta: Datos: 0.02MB + índice: 0.03MB + Motor InnoDB wp_woocommerce_log: Datos: 0.02MB + índice: 0.02MB + Motor InnoDB wp_actionscheduler_actions: Datos: 2.02MB + índice: 1.11MB + Motor InnoDB wp_actionscheduler_claims: Datos: 0.02MB + índice: 0.02MB + Motor InnoDB wp_actionscheduler_groups: Datos: 0.02MB + índice: 0.02MB + Motor InnoDB wp_actionscheduler_logs: Datos: 1.02MB + índice: 1.06MB + Motor InnoDB wp_commentmeta: Datos: 0.02MB + índice: 0.03MB + Motor InnoDB wp_comments: Datos: 0.02MB + índice: 0.09MB + Motor InnoDB wp_duplicator_packages: Datos: 0.02MB + índice: 0.02MB + Motor InnoDB wp_frmt_form_entry: Datos: 0.02MB + índice: 0.05MB + Motor InnoDB wp_frmt_form_entry_meta: Datos: 0.02MB + índice: 0.05MB + Motor InnoDB wp_frmt_form_reports: Datos: 0.02MB + índice: 0.00MB + Motor InnoDB wp_frmt_form_views: Datos: 0.02MB + índice: 0.06MB + Motor InnoDB wp_icl_background_task: Datos: 0.02MB + índice: 0.00MB + Motor InnoDB wp_icl_content_status: Datos: 0.02MB + índice: 0.02MB + Motor InnoDB wp_icl_core_status: Datos: 0.02MB + índice: 0.02MB + Motor InnoDB wp_icl_flags: Datos: 0.02MB + índice: 0.02MB + Motor InnoDB wp_icl_languages: Datos: 0.02MB + índice: 0.03MB + Motor InnoDB wp_icl_languages_translations: Datos: 0.20MB + índice: 0.17MB + Motor InnoDB wp_icl_locale_map: Datos: 0.02MB + índice: 0.00MB + Motor InnoDB wp_icl_message_status: Datos: 0.02MB + índice: 0.03MB + Motor InnoDB wp_icl_mo_files_domains: Datos: 0.05MB + índice: 0.02MB + Motor InnoDB wp_icl_node: Datos: 0.02MB + índice: 0.00MB + Motor InnoDB wp_icl_reminders: Datos: 0.02MB + índice: 0.00MB + Motor InnoDB wp_icl_strings: Datos: 1.52MB + índice: 0.56MB + Motor InnoDB wp_icl_string_batches: Datos: 0.02MB + índice: 0.00MB + Motor InnoDB wp_icl_string_packages: Datos: 0.02MB + índice: 0.00MB + Motor InnoDB wp_icl_string_positions: Datos: 0.02MB + índice: 0.02MB + Motor InnoDB wp_icl_string_status: Datos: 0.02MB + índice: 0.02MB + Motor InnoDB wp_icl_string_translations: Datos: 0.33MB + índice: 0.09MB + Motor InnoDB wp_icl_translate: Datos: 4.52MB + índice: 0.08MB + Motor InnoDB wp_icl_translate_job: Datos: 0.02MB + índice: 0.02MB + Motor InnoDB wp_icl_translations: Datos: 0.41MB + índice: 0.95MB + Motor InnoDB wp_icl_translation_batches: Datos: 0.02MB + índice: 0.00MB + Motor InnoDB wp_icl_translation_downloads: Datos: 0.02MB + índice: 0.00MB + Motor InnoDB wp_icl_translation_status: Datos: 2.33MB + índice: 0.08MB + Motor InnoDB wp_links: Datos: 0.02MB + índice: 0.02MB + Motor InnoDB wp_options: Datos: 6.03MB + índice: 0.08MB + Motor InnoDB wp_postmeta: Datos: 16.20MB + índice: 12.97MB + Motor InnoDB wp_posts: Datos: 30.20MB + índice: 1.00MB + Motor InnoDB wp_redsys_order: Datos: 0.02MB + índice: 0.02MB + Motor InnoDB wp_sc_delivery_methods: Datos: 0.02MB + índice: 0.05MB + Motor InnoDB wp_sc_delivery_zones: Datos: 0.02MB + índice: 0.03MB + Motor InnoDB wp_snippets: Datos: 0.02MB + índice: 0.03MB + Motor InnoDB wp_termmeta: Datos: 0.02MB + índice: 0.03MB + Motor InnoDB wp_terms: Datos: 0.02MB + índice: 0.03MB + Motor InnoDB wp_term_relationships: Datos: 0.08MB + índice: 0.08MB + Motor InnoDB wp_term_taxonomy: Datos: 0.02MB + índice: 0.03MB + Motor InnoDB wp_usermeta: Datos: 0.05MB + índice: 0.03MB + Motor InnoDB wp_users: Datos: 0.02MB + índice: 0.05MB + Motor InnoDB wp_wcpdf_invoice_number: Datos: 0.02MB + índice: 0.00MB + Motor InnoDB wp_wc_admin_notes: Datos: 0.06MB + índice: 0.00MB + Motor InnoDB wp_wc_admin_note_actions: Datos: 0.05MB + índice: 0.02MB + Motor InnoDB wp_wc_category_lookup: Datos: 0.02MB + índice: 0.00MB + Motor InnoDB wp_wc_customer_lookup: Datos: 0.02MB + índice: 0.03MB + Motor InnoDB wp_wc_download_log: Datos: 0.02MB + índice: 0.03MB + Motor InnoDB wp_wc_orders: Datos: 0.02MB + índice: 0.11MB + Motor InnoDB wp_wc_orders_meta: Datos: 0.05MB + índice: 0.03MB + Motor InnoDB wp_wc_order_addresses: Datos: 0.02MB + índice: 0.06MB + Motor InnoDB wp_wc_order_coupon_lookup: Datos: 0.02MB + índice: 0.03MB + Motor InnoDB wp_wc_order_operational_data: Datos: 0.02MB + índice: 0.03MB + Motor InnoDB wp_wc_order_product_lookup: Datos: 0.02MB + índice: 0.06MB + Motor InnoDB wp_wc_order_stats: Datos: 0.02MB + índice: 0.05MB + Motor InnoDB wp_wc_order_tax_lookup: Datos: 0.02MB + índice: 0.03MB + Motor InnoDB wp_wc_product_attributes_lookup: Datos: 0.02MB + índice: 0.02MB + Motor InnoDB wp_wc_product_download_directories: Datos: 0.02MB + índice: 0.02MB + Motor InnoDB wp_wc_product_meta_lookup: Datos: 0.17MB + índice: 0.33MB + Motor InnoDB wp_wc_rate_limits: Datos: 0.02MB + índice: 0.02MB + Motor InnoDB wp_wc_reserved_stock: Datos: 0.02MB + índice: 0.00MB + Motor InnoDB wp_wc_tax_rate_classes: Datos: 0.02MB + índice: 0.02MB + Motor InnoDB wp_wc_webhooks: Datos: 0.02MB + índice: 0.02MB + Motor InnoDB wp_wt_iew_action_history: Datos: 0.02MB + índice: 0.00MB + Motor InnoDB wp_wt_iew_mapping_template: Datos: 0.02MB + índice: 0.00MB + Motor InnoDB _mig_wpmdb_alter_statements: Datos: 0.02MB + índice: 0.00MB + Motor InnoDB ### Post Type Counts ### attachment: 3914 forminator_forms: 8 page: 67 post: 3 product: 44 product_variation: 1067 revision: 667 scrollsequence: 19 shop_coupon: 6 shop_order: 1 shop_order_placehold: 9 wp_block: 7 wp_global_styles: 1 wp_navigation: 2 wp_template: 6 wp_template_part: 4 ### Security ### Secure connection (HTTPS): ? Hide errors from visitors: ? ### Active Plugins (29) ### Query Monitor: por John Blackbourn – 3.16.2 WPML Multilingual CMS: por OnTheGoSystems – 4.6.10 Aplazame: por Aplazame – 4.0.1 Code Snippets: por Code Snippets Pro – 3.6.4 Yoast Duplicate Post: por Enrico Battocchi & Team Yoast – 4.5 Forminator: por WPMU DEV – 1.30.2 Order Export & Order Import for WooCommerce - customizations: por AAA – 1.0.0 Integración con Holded: por Holded – 3.5.0 Klarna Order Management for WooCommerce: por klarna krokedil – 1.9.1 Klarna Payments for WooCommerce: por klarna – 3.5.2 Order Export & Order Import for WooCommerce: por WebToffee – 2.4.9.2 Pasarela Unificada de Redsys para WooCommerce: por Redsys Servicios de Procesamiento S.L. – 1.4.9 Scrollsequence (Premium): por Scrollsequence – 1.5.6 Sendcloud | Plataforma de gestión de envíos: por Sendcloud B.V. – 2.4.4 Spectra: por Brainstorm Force – 2.13.1 Import Export WordPress Users and WooCommerce Customers: por WebToffee – 2.5.3 WC - APG Campo NIF/CIF/NIE: por Art Project Group – 2.1.0.2 Variation Swatches for WooCommerce: por Emran Ahmed – 2.0.31 WooCommerce Legacy REST API: por WooCommerce – 1.0.1 WooCommerce Multilingual & Multicurrency: por OnTheGoSystems – 5.3.6 Pay for Payment for WooCommerce: por Karolína Vysko?ilová – 2.1.8 WooCommerce PayPal Payments: por WooCommerce – 2.7.0 PDF Invoices & Packing Slips for WooCommerce: por WP Overnight – 3.8.2 WooCommerce: por Automattic – 8.8.3 WordPress Importer: por wordpressdotorg – 0.8.2 Force Login: por Kevin Vess – 5.6.3 WP Migrate Lite: por WP Engine – 2.6.10 WPML String Translation: por OnTheGoSystems – 3.2.11 Sequential Order Numbers for WooCommerce: por WebToffee – 1.6.1 ### Inactive Plugins (7) ### 301 Redirects: por WebFactory Ltd – 1.03 Disable Emails: por WebAware – 1.8.2 Duplicator: por Duplicator – 1.5.9 Facebook for WooCommerce: por Facebook – 3.2.1 GTM4WP - A Google Tag Manager (GTM) plugin for WordPress: por Thomas Geiger – 1.20.2 Klaviyo: por Klaviyo Inc. – 3.3.5 OTGS Installer: por OnTheGoSystems – 3.1.3 ### Dropin Plugins () ### db.php: Query Monitor Database Class (Drop-in) ### Must Use Plugins (1) ### WP Migrate Lite Compatibility: por Delicious Brains – 1.3 ### Settings ### API Enabled: ? Force SSL: – Currency: EUR (€) Currency Position: right_space 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: – Enforce Approved Product Download Directories: ? HPOS feature screen enabled: ? HPOS feature enabled: ? Order datastore: Automattic\WooCommerce\Internal\DataStores\Orders\OrdersTableDataStore HPOS data sync enabled: – ### Logging ### Enabled: ? Handler: Automattic\WooCommerce\Internal\Admin\Logging\LogHandlerFileV2 Retention period: 30 días Level threshold: – Log directory size: 674 KB ### WC Pages ### Base de la tienda: #45014 - /tienda/ Carrito: #45015 - /carrito/ Finalizar compra: #45016 - /finalizar-compra/ Mi cuenta: #45017 - /mi-cuenta/ Términos y condiciones: ? Página sin definir ### Theme ### Name: Spectra One Child Version: 1.0.8.1701673786 Author URL: https://brainstormforce.com/ Child Theme: ? Parent Theme Name: Spectra One Parent Theme Version: 1.1.0 Parent Theme Author URL: https://brainstormforce.com/ WooCommerce Support: ? No declarada ### Templates ### Overrides: /home/my_hosting/www/my_shop/wp-content/plugins/woocommerce/templates/block-notices/error.php /home/my_hosting/www/my_shop/wp-content/plugins/woocommerce/templates/block-notices/notice.php /home/my_hosting/www/my_shop/wp-content/plugins/woocommerce/templates/block-notices/success.php ### Klarna Payments Request Log ### No Klarna Payment errors: ### Klarna Countries ### Production Countries: AU AT BE CA CZ DK FI FR DE GR IE IT MX NL NZ NO PL PT ES SE CH GB US Test Countries: ES ### WooCommerce PayPal Payments ### Onboarded: ? Shop country code: ES WooCommerce currency supported: ? Advanced Card Processing available in country: ? Pay Later messaging available in country: ? Webhook status: – PayPal Vault enabled: – ACDC Vault enabled: – Logging enabled: ? Reference Transactions: ? Used PayPal Checkout plugin: – Subscriptions Mode: Disabled ### Admin ### Enabled Features: activity-panels analytics product-block-editor coupons core-profiler customize-store 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 product-variation-management product-virtual-downloadable product-external-affiliate product-grouped product-linked product-pre-publish-modal 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 product-custom-fields settings async-product-editor-category-field launch-your-store Daily Cron: ? Next scheduled: 2024-05-11 05:57:43 +02:00 Options: ? Notes: 57 Onboarding: completed ### Action Scheduler ### Completo: 360 Oldest: 2024-04-11 03:06:20 +0200 Newest: 2024-05-11 07:18:52 +0200 Fallida: 40 Oldest: 2024-03-17 20:03:56 +0100 Newest: 2024-04-13 07:56:56 +0200 Pendiente: 9 Oldest: 2024-05-11 07:19:52 +0200 Newest: 2024-05-11 13:57:16 +0200 ### Status report information ### Generated at: 2024-05-11 07:19:41 +02:00 `
As you can see we have HPOS enabled and we have been installed the Woocommerce API legacy plugin but without good results. We have read about the problems with the current plugin version and legacy API (which it does not support HPOS). Could it be related?
Can you help us, please?
Thank you!
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Critical errors Call to a member function get_id()’ is closed to new replies.