• Resolved Hauzz

    (@hauzz)


    When I want to edit an order, I get 2 identical notices:

    Notice: Function ID was called incorrectly. Order properties should not be accessed directly. Backtrace: do_action(‘load-woocommerce_page_wc-orders’), WP_Hook->do_action, WP_Hook->apply_filters, Automattic\WooCommerce\Internal\Admin\Orders\PageController->__call, call_user_func_array, Automattic\WooCommerce\Internal\Admin\Orders\PageController->handle_load_page_action, Automattic\WooCommerce\Internal\Admin\Orders\PageController->setup_action_edit_order, Automattic\WooCommerce\Internal\Admin\Orders\PageController->prepare_order_edit_form, Automattic\WooCommerce\Internal\Admin\Orders\Edit->setup, do_action(‘add_meta_boxes’), WP_Hook->do_action, WP_Hook->apply_filters, et_add_post_meta_box, WC_Abstract_Legacy_Order->__get, wc_doing_it_wrong Please see Debugging in WordPress for more information. (This message was added in version 3.0.) in /var/www/vhosts/hsalquiler.es/staging.hsalquiler.es/wp-includes/functions.php on line 6078

    Notice: Function ID was called incorrectly. Order properties should not be accessed directly. Backtrace: do_action(‘load-woocommerce_page_wc-orders’), WP_Hook->do_action, WP_Hook->apply_filters, Automattic\WooCommerce\Internal\Admin\Orders\PageController->__call, call_user_func_array, Automattic\WooCommerce\Internal\Admin\Orders\PageController->handle_load_page_action, Automattic\WooCommerce\Internal\Admin\Orders\PageController->setup_action_edit_order, Automattic\WooCommerce\Internal\Admin\Orders\PageController->prepare_order_edit_form, Automattic\WooCommerce\Internal\Admin\Orders\Edit->setup, do_action(‘add_meta_boxes’), WP_Hook->do_action, WP_Hook->apply_filters, et_pb_add_custom_box, WC_Abstract_Legacy_Order->__get, wc_doing_it_wrong Please see?Debugging in WordPress?for more information. (This message was added in version 3.0.) in?/var/www/vhosts/hsalquiler.es/staging.hsalquiler.es/wp-includes/functions.php?on line?6078

    I’ve disabled all plugins but the messages keeps showing

    Could you help please?

Viewing 8 replies - 1 through 8 (of 8 total)
  • You most likely have an outdated template that is calling the order incorrectly. It’s supposed to be called as so $order->get_id()

    So I would switch to a default theme and if it goes away then you found your culprit.

    Thread Starter Hauzz

    (@hauzz)

    Thanks for your quick answer, it seems a bit strange though because I have the same site running under a different DNS with the same Divi theme and version. There I don’t have the issue.

    Check their PHP versions then. Are they both running on the same version? Everyone should be on at least 8.1 but running 8.2 now.

    Thread Starter Hauzz

    (@hauzz)

    Well, they are with the same host, one is a live site, the other a staging. They share the same PHP version.

    Stef

    (@serafinnyc)

    Hey @hauzz

    You can have different php versions on the same host. If one is pulling an older php version it could conflict with most apps.

    Can you pull a systems report? Go to WooCommerce > Status > Get Systems Report and then paste that here using a code block.

    Thanks

    Thread Starter Hauzz

    (@hauzz)

    `
    ### WordPress Environment ###
    
    WordPress address (URL): https://staging.hsalquiler.es
    Site address (URL): https://staging.hsalquiler.es
    WC Version: 8.8.3
    REST API Version: ? 8.8.3
    Action Scheduler Version: ? 3.7.4
    Log Directory Writable: ?
    WP Version: 6.5.2
    WP Multisite: –
    WP Memory Limit: 512 MB
    WP Debug Mode: ?
    WP Cron: ?
    Language: en_US
    External object cache: –
    
    ### Server Environment ###
    
    Server Info: LiteSpeed
    PHP Version: 8.3.6
    PHP Post Max Size: 512 MB
    PHP Time Limit: 300
    PHP Max Input Vars: 5000
    cURL Version: 7.61.1
    OpenSSL/1.1.1k
    
    SUHOSIN Installed: –
    MySQL Version: 10.11.7-MariaDB-cll-lve
    Max Upload Size: 512 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: lJSsyBgQs_
    Total Database Size: 35.91MB
    Database Data Size: 24.29MB
    Database Index Size: 11.62MB
    lJSsyBgQs_woocommerce_sessions: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    lJSsyBgQs_woocommerce_api_keys: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    lJSsyBgQs_woocommerce_attribute_taxonomies: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    lJSsyBgQs_woocommerce_downloadable_product_permissions: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
    lJSsyBgQs_woocommerce_order_items: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    lJSsyBgQs_woocommerce_order_itemmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    lJSsyBgQs_woocommerce_tax_rates: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
    lJSsyBgQs_woocommerce_tax_rate_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    lJSsyBgQs_woocommerce_shipping_zones: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    lJSsyBgQs_woocommerce_shipping_zone_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    lJSsyBgQs_woocommerce_shipping_zone_methods: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    lJSsyBgQs_woocommerce_payment_tokens: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    lJSsyBgQs_woocommerce_payment_tokenmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    lJSsyBgQs_woocommerce_log: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    lJSsyBgQs_actionscheduler_actions: Data: 0.08MB + Index: 0.11MB + Engine InnoDB
    lJSsyBgQs_actionscheduler_claims: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    lJSsyBgQs_actionscheduler_groups: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    lJSsyBgQs_actionscheduler_logs: Data: 0.06MB + Index: 0.03MB + Engine InnoDB
    lJSsyBgQs_commentmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    lJSsyBgQs_comments: Data: 0.05MB + Index: 0.09MB + Engine InnoDB
    lJSsyBgQs_icl_background_task: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    lJSsyBgQs_icl_content_status: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    lJSsyBgQs_icl_core_status: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    lJSsyBgQs_icl_flags: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    lJSsyBgQs_icl_languages: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    lJSsyBgQs_icl_languages_translations: Data: 0.19MB + Index: 0.09MB + Engine InnoDB
    lJSsyBgQs_icl_locale_map: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    lJSsyBgQs_icl_message_status: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    lJSsyBgQs_icl_mo_files_domains: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    lJSsyBgQs_icl_node: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    lJSsyBgQs_icl_reminders: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    lJSsyBgQs_icl_strings: Data: 4.52MB + Index: 6.81MB + Engine InnoDB
    lJSsyBgQs_icl_string_batches: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    lJSsyBgQs_icl_string_packages: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    lJSsyBgQs_icl_string_positions: Data: 0.20MB + Index: 0.05MB + Engine InnoDB
    lJSsyBgQs_icl_string_status: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    lJSsyBgQs_icl_string_translations: Data: 3.52MB + Index: 1.92MB + Engine InnoDB
    lJSsyBgQs_icl_translate: Data: 3.52MB + Index: 0.05MB + Engine InnoDB
    lJSsyBgQs_icl_translate_job: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    lJSsyBgQs_icl_translations: Data: 0.05MB + Index: 0.09MB + Engine InnoDB
    lJSsyBgQs_icl_translation_batches: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    lJSsyBgQs_icl_translation_downloads: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    lJSsyBgQs_icl_translation_status: Data: 1.52MB + Index: 0.02MB + Engine InnoDB
    lJSsyBgQs_links: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    lJSsyBgQs_options: Data: 6.11MB + Index: 0.19MB + Engine InnoDB
    lJSsyBgQs_postmeta: Data: 1.52MB + Index: 0.41MB + Engine InnoDB
    lJSsyBgQs_posts: Data: 1.42MB + Index: 0.13MB + Engine InnoDB
    lJSsyBgQs_rnb_availability: Data: 0.05MB + Index: 0.00MB + Engine InnoDB
    lJSsyBgQs_rnb_inventory_product: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    lJSsyBgQs_termmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    lJSsyBgQs_terms: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    lJSsyBgQs_term_relationships: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    lJSsyBgQs_term_taxonomy: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    lJSsyBgQs_tm_taskmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    lJSsyBgQs_tm_tasks: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    lJSsyBgQs_usermeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    lJSsyBgQs_users: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    lJSsyBgQs_viwec_clicked: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    lJSsyBgQs_wcpdf_invoice_number: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    lJSsyBgQs_wcpdf_packing_slip_number: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    lJSsyBgQs_wc_admin_notes: Data: 0.05MB + Index: 0.00MB + Engine InnoDB
    lJSsyBgQs_wc_admin_note_actions: Data: 0.06MB + Index: 0.02MB + Engine InnoDB
    lJSsyBgQs_wc_category_lookup: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    lJSsyBgQs_wc_customer_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    lJSsyBgQs_wc_download_log: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    lJSsyBgQs_wc_orders: Data: 0.02MB + Index: 0.11MB + Engine InnoDB
    lJSsyBgQs_wc_orders_meta: Data: 0.05MB + Index: 0.03MB + Engine InnoDB
    lJSsyBgQs_wc_order_addresses: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
    lJSsyBgQs_wc_order_coupon_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    lJSsyBgQs_wc_order_operational_data: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    lJSsyBgQs_wc_order_product_lookup: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
    lJSsyBgQs_wc_order_stats: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    lJSsyBgQs_wc_order_tax_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    lJSsyBgQs_wc_product_attributes_lookup: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    lJSsyBgQs_wc_product_download_directories: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    lJSsyBgQs_wc_product_meta_lookup: Data: 0.02MB + Index: 0.09MB + Engine InnoDB
    lJSsyBgQs_wc_rate_limits: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    lJSsyBgQs_wc_reserved_stock: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    lJSsyBgQs_wc_tax_rate_classes: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    lJSsyBgQs_wc_webhooks: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    lJSsyBgQs_wdr_order_discounts: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    lJSsyBgQs_wdr_order_item_discounts: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    lJSsyBgQs_wdr_rules: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    
    ### Post Type Counts ###
    
    attachment: 171
    custom_css: 1
    et_body_layout: 9
    et_footer_layout: 9
    et_header_layout: 15
    et_pb_layout: 3
    et_tb_item: 1
    et_template: 23
    et_theme_builder: 1
    inventory: 20
    nav_menu_item: 6
    page: 19
    post: 3
    product: 18
    revision: 82
    shop_order_placehold: 4
    viwec_template: 16
    wp_font_face: 33
    wp_font_family: 12
    wp_global_styles: 1
    wp_navigation: 1
    yaymail_template: 11
    
    ### Security ###
    
    Secure connection (HTTPS): ?
    Hide errors from visitors: ?Error messages should not be shown to visitors.
    
    ### Active Plugins (15) ###
    
    WPML Multilingual CMS: by OnTheGoSystems – 4.6.10
    Email Template Customizer for WooCommerce: by VillaTheme – 1.2.3
    Enable Media Replace: by ShortPixel – 4.1.5
    Temporary Login Without Password: by StoreApps – 1.8.3
    WooCommerce Checkout Manager: by QuadLayers – 7.4.8
    WooCommerce Email Template Customizer Premium: by VillaTheme – 1.2.4
    WooCommerce Multilingual & Multicurrency: by OnTheGoSystems – 5.3.6
    PDF Invoices & Packing Slips for WooCommerce: by WP Overnight – 3.8.2
    PDF Invoices & Packing Slips for WooCommerce - Professional: by WP Overnight – 2.15.9
    PDF Invoices & Packing Slips for WooCommerce - Premium Templates: by WP Overnight – 2.21.7
    WooCommerce Booking & Rental System: by RedQ Team – 17.0.1
    WooCommerce: by Automattic – 8.8.3
    WP-Optimize - Clean, Compress, Cache: by David Anderson
    Ruhani Rabin
    Team Updraft – 3.3.2
    
    WPML Media Translation: by OnTheGoSystems – 2.7.4
    WPML String Translation: by OnTheGoSystems – 3.2.11
    
    ### Inactive Plugins (1) ###
    
    Easy SVG Support: by Benjamin Zekavica – 3.6
    
    ### Settings ###
    
    API Enabled: –
    Force SSL: –
    Currency: EUR (€)
    Currency Position: left_space
    Thousand Separator: .
    Decimal Separator: ,
    Number of Decimals: 2
    Taxonomies: Product Types: external (external)
    grouped (grouped)
    redq_rental (redq_rental)
    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 days
    Level threshold: –
    Log directory size: 38 KB
    
    ### WC Pages ###
    
    Shop base: #1933 - /
    Basket: ? Page does not contain the [woocommerce_cart] shortcode or the woocommerce/cart block.
    Checkout: ? Page does not contain the [woocommerce_checkout] shortcode or the woocommerce/checkout block.
    My account: #17 - /mijn-account/
    Terms and conditions: ? Page not set
    
    ### Theme ###
    
    Name: HS Remolques Child Theme
    Version: 1.0.0
    Author URL: https://hsremolques.es
    Child Theme: ?
    Parent Theme Name: Divi
    Parent Theme Version: 4.25.0
    Parent Theme Author URL: https://www.elegantthemes.com
    WooCommerce Support: ?
    
    ### Templates ###
    
    Overrides: hsremolques-child-theme/woocommerce/emails/customer-completed-order.php
    hsremolques-child-theme/woocommerce/emails/customer-processing-order.php
    
    
    ### 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-03 07:49:55 +02:00
    Options: ?
    Notes: 61
    Onboarding: completed
    
    ### Action Scheduler ###
    
    Complete: 202
    Oldest: 2024-04-23 09:50:27 +0200
    Newest: 2024-05-02 19:28:18 +0200
    
    Failed: 4
    Oldest: 2024-04-23 10:58:56 +0200
    Newest: 2024-05-02 10:21:29 +0200
    
    Pending: 3
    Oldest: 2024-05-03 07:18:32 +0200
    Newest: 2024-05-05 12:17:11 +0200
    
    
    ### Status report information ###
    
    Generated at: 2024-05-03 06:26:51 +02:00
    `
    Plugin Support Shameem R. a11n

    (@shameemreza)

    Hi @hauzz

    Could you kindly switch your PHP version from 8.3.6 to 8.1.28? If you need help changing it, you can contact your hosting provider for further assistance.

    If the issue persists even after downgrading the PHP version, please run a conflict test to identify the cause. More info: https://woocommerce.com/document/how-to-test-for-conflicts/

    I hope that helps! Let me know once you have done a conflict test!

    anastas10s

    (@anastas10s)

    Hello ?? We haven’t heard back from you in a while, so I’m going to mark this as resolved – we’ll be here if and/or when you are ready to continue.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘When editing orders Function ID was called incorrectly’ is closed to new replies.