• Resolved khushbu91

    (@khushbu91)


    Recently updated to PHP Version 8.1, getting error everytime someone places an order, I do not have a payment gateway as I use the website as a placeholder to consolidate all my orders.

    •  Jul 15, 12:02:55status was called incorrectly. Order properties should not be accessed directly. Backtrace: require(‘wp-blog-header.php’), require_once(‘wp-includes/template-loader.php’), do_action(‘template_redirect’), WP_Hook->do_action, WP_Hook->apply_filters, WC_AJAX::do_wc_ajax, do_action(‘wc_ajax_checkout’), WP_Hook->do_action, WP_Hook->apply_filters, WC_AJAX::checkout, WC_Checkout->process_checkout, WC_Checkout->process_order_payment, WC_Gateway_Cheque->process_payment, WC_Order->update_status, WC_Order->save, WC_Order->status_transition, do_action(‘woocommerce_order_status_changed’), WP_Hook->do_action, WP_Hook->apply_filters, Wf_Woocommerce_Packing_List_Invoice->generate_invoice_number_on_status_change, WC_Abstract_Legacy_Order->__get, wc_doing_it_wrong. This message was added in version 3.0.
    •  Jul 15, 12:02:55id was called incorrectly. Order properties should not be accessed directly. Backtrace: require(‘wp-blog-header.php’), require_once(‘wp-includes/template-loader.php’), do_action(‘template_redirect’), WP_Hook->do_action, WP_Hook->apply_filters, WC_AJAX::do_wc_ajax, do_action(‘wc_ajax_checkout’), WP_Hook->do_action, WP_Hook->apply_filters, WC_AJAX::checkout, WC_Checkout->process_checkout, WC_Checkout->process_order_payment, WC_Gateway_Cheque->process_payment, WC_Order->update_status, WC_Order->save, WC_Order->status_transition, do_action(‘woocommerce_order_status_pending_to_on-hold’), WP_Hook->do_action, WP_Hook->apply_filters, WC_Emails::send_transactional_email, do_action_ref_array(‘woocommerce_order_status_pending_to_on-hold_notification’), WP_Hook->do_action, WP_Hook->apply_filters, WC_Email_Customer_On_Hold_Order->trigger, WC_Email->get_attachments, apply_filters(‘woocommerce_email_attachments’), WP_Hook->apply_filters, Wf_Woocommerce_Packing_List_Admin->add_email_attachments, WC_Abstract_Legacy_Order->__get, wc_doing_it_wrong. This message was added in version 3.0.
    • Mark as fixed | Ignore Jul 15, 12:02:55id was called incorrectly. Order properties should not be accessed directly. Backtrace: require(‘wp-blog-header.php’), require_once(‘wp-includes/template-loader.php’), do_action(‘template_redirect’), WP_Hook->do_action, WP_Hook->apply_filters, WC_AJAX::do_wc_ajax, do_action(‘wc_ajax_checkout’), WP_Hook->do_action, WP_Hook->apply_filters, WC_AJAX::checkout, WC_Checkout->process_checkout, WC_Checkout->process_order_payment, WC_Gateway_Cheque->process_payment, WC_Order->update_status, WC_Order->save, WC_Order->status_transition, do_action(‘woocommerce_order_status_pending_to_on-hold’), WP_Hook->do_action, WP_Hook->apply_filters, WC_Emails::send_transactional_email, do_action_ref_array(‘woocommerce_order_status_pending_to_on-hold_notification’), WP_Hook->do_action, WP_Hook->apply_filters, WC_Email_Customer_On_Hold_Order->trigger, WC_Email->get_content, WC_Email_Customer_On_Hold_Order->get_content_html, wc_get_template_html, wc_get_template, include(‘/plugins/woocommerce/templates/emails/customer-on-hold-order.php’), do_action(‘woocommerce_email_order_details’), WP_Hook->do_action, WP_Hook->apply_filters, WC_Emails->order_details, wc_get_template, include(‘/plugins/woocommerce/templates/emails/email-order-details.php’), do_action(‘woocommerce_email_after_order_table’), WP_Hook->do_action, WP_Hook->apply_filters, Wf_Woocommerce_Packing_List_Admin->add_email_print_actions, WC_Abstract_Legacy_Order->__get, wc_doing_it_wrong. This message was added in version 3.0.

    System Status Report

    ### WordPress Environment ###

    WordPress address (URL): [Redacted]
    Site address (URL): [Redacted]
    WC Version: 10.0.2
    Legacy REST API Package Version: The Legacy REST API plugin is not installed on this site.
    Action Scheduler Version: ✔ 3.9.2
    Log Directory Writable: ✔
    WP Version: 6.8.1
    WP Multisite: –
    WP Memory Limit: 1 GB
    WP Debug Mode: –
    WP Cron: –
    Language: en_US
    External object cache: ✔

    ### Server Environment ###

    Server Info: LiteSpeed
    Server Architecture: Linux 4.18.0-553.34.1.lve.el8.x86_64 x86_64
    PHP Version: 8.1.32
    PHP Post Max Size: 8 MB
    PHP Time Limit: 30
    PHP Max Input Vars: 1000
    cURL Version: 8.13.0
    OpenSSL/1.1.1w

    SUHOSIN Installed: –
    MySQL Version: 10.11.13-MariaDB-cll-lve
    Max Upload Size: 5 MB
    Default Timezone is UTC: ✔
    fsockopen/cURL: ✔
    SoapClient: ❌ Your server does not have the SoapClient class enabled - some gateway plugins which use SOAP may not work as expected.
    DOMDocument: ✔
    GZip: ✔
    Multibyte String: ✔
    Remote Post: ✔
    Remote Get: ✔

    ### Database ###

    [REDACTED]

    ### Post Type Counts ###

    astra-advanced-hook: 3
    attachment: 8697
    custom_css: 4
    custom_order_status: 6
    custom-css-js: 3
    display_type: 7
    elementor_library: 6
    footer: 6
    megamenu: 3
    nav_menu_item: 37
    ngg_gallery: 2
    ngg_pictures: 136
    nomos_mapper: 6
    oembed_cache: 6
    page: 21
    post: 1
    product: 2675
    product_variation: 3192
    shop_coupon: 1
    shop_order: 2438
    wcpa_pt_forms: 16
    wp_global_styles: 3
    wp_navigation: 1
    ziss: 1

    ### Security ###

    Secure connection (HTTPS): ✔
    Hide errors from visitors: ✔

    ### Active Plugins (23) ###

    Advanced Database Cleaner: by Younes JFR. – 3.1.6
    Advanced Woo Search: by ILLID – 3.38
    Astra Pro: by Brainstorm Force – 4.11.4
    Blackhole for Bad Bots: by Jeff Starr – 3.7.4
    Click to Chat: by HoliThemes – 4.25
    CompressX: by WPvivid Team – 0.9.29
    Simple Custom CSS and JS: by SilkyPress.com – 3.50
    Custom Order Status for WooCommerce: by Tyche Softwares – 2.8.0
    Elementor Pro: by Elementor.com – 3.30.0
    Elementor: by Elementor.com – 3.30.2
    Error Log Monitor: by Janis Elsts – 1.7.11
    XML Sitemap Generator for Google: by Auctollo – 4.1.21
    Health Check & Troubleshooting: by The ww.wp.xz.cn community – 1.7.1
    LiteSpeed Cache: by LiteSpeed Technologies – 7.2
    WooCommerce PDF Invoices, Packing Slips, Delivery Notes and Shipping Labels: by WebToffee – 4.7.8
    Side Cart WooCommerce: by XootiX – 2.6.8
    Temporary Login Without Password: by StoreApps – 1.9.3
    Temporary Login: by Elementor.com – 1.3.0
    Advanced Shipment Tracking for WooCommerce: by zorem – 3.8.4
    WooCommerce Custom Product Addons Free: by Acowebs – 3.0.15
    Advanced Order Export For WooCommerce: by AlgolPlus – 4.0.3
    Woo Store Vacation: by MyPreview – 1.9.6
    WooCommerce: by Automattic – 10.0.2

    ### Inactive Plugins (0) ###


    ### Dropin Plugins () ###

    object-cache.php: LiteSpeed Cache - Object Cache (Drop-in)

    ### Must Use Plugins (2) ###

    Elementor Safe Mode: by Elementor.com – 1.0.0
    Health Check Troubleshooting Mode: by – 1.9.2

    ### Settings ###

    Legacy API Enabled: –
    Force SSL: –
    Currency: INR (₹)
    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: –
    Enforce Approved Product Download Directories: –
    HPOS feature enabled: ✔
    Order datastore: Automattic\WooCommerce\Internal\DataStores\Orders\OrdersTableDataStore
    HPOS data sync enabled: ✔
    Enabled Features: analytics
    marketplace
    order_attribution
    site_visibility_badge
    remote_logging
    email_improvements
    blueprint
    point_of_sale
    custom_order_tables


    ### Logging ###

    Enabled: ✔
    Handler: Automattic\WooCommerce\Internal\Admin\Logging\LogHandlerFileV2
    Retention period: 100 days
    Level threshold: –
    Log directory size: 16 MB

    ### WC Pages ###

    Shop base: #5169 - /
    Cart: #5170 - /cart-2/ - Contains the woocommerce_cart shortcode
    Checkout: #5171 - /checkout-2/ - Contains the woocommerce_checkout shortcode
    My account: #5167 - /my-account-2/ - Contains the [woocommerce_my_account] shortcode
    Terms and conditions: ❌ Page not set

    ### Theme ###

    Name: Astra
    Version: 4.11.5
    Author URL: https://wpastra.com/about/?utm_source=theme_preview&utm_medium=author_link&utm_campaign=astra_theme
    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
    Theme type: Classic theme
    WooCommerce Support: ✔

    ### Templates ###

    Overrides: –

    ### 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
    onboarding
    onboarding-tasks
    pattern-toolkit-full-composability
    product-custom-fields
    remote-inbox-notifications
    remote-free-extensions
    payment-gateway-suggestions
    printful
    shipping-label-banner
    subscriptions
    store-alerts
    transient-notices
    woo-mobile-welcome
    wc-pay-promotion
    wc-pay-welcome-page
    launch-your-store
    add-to-cart-with-options-stepper-layout

    Disabled Features: product-data-views
    experimental-blocks
    experimental-iapi-mini-cart
    experimental-iapi-runtime
    coming-soon-newsletter-template
    minified-js
    product-pre-publish-modal
    settings
    async-product-editor-category-field
    product-editor-template-system
    use-wp-horizon

    Daily Cron: ✔ Next scheduled: 2025-07-15 15:21:43 +05:30
    Options: ✔
    Notes: 239
    Onboarding: completed

    ### Action Scheduler ###

    Complete: 5,606
    Oldest: 2025-06-14 09:01:31 +0000
    Newest: 2025-07-15 07:54:01 +0000

    Failed: 72
    Oldest: 2024-11-10 02:55:57 +0000
    Newest: 2025-07-04 08:44:24 +0000

    Pending: 6
    Oldest: 2025-07-15 08:54:01 +0000
    Newest: 2025-07-16 06:11:48 +0000


    ### Status report information ###

    Generated at: 2025-07-15 14:20:58 +05:30
    • This topic was modified 10 months, 4 weeks ago by khushbu91.
Viewing 7 replies - 1 through 7 (of 7 total)
  • Hi @khushbu91,

    Thank you for sharing the log. I understand how frustrating this can be, especially when it disrupts your order workflow.

    The errors you’re encountering are related to outdated or incorrect code in one or more plugins or templates. Specifically, they’re caused by attempts to access WooCommerce order properties directly instead of using the correct getter methods. For example:

    status was called incorrectly. Order properties should not be accessed directly.
    id was called incorrectly. Order properties should not be accessed directly.

    To better assist you, could you please explain how your website functions — specifically, how orders are placed and how you manage or process them?

    Also, kindly share a link to your website so we can take a closer look and better understand what might be causing these issues.

    Thread Starter khushbu91

    (@khushbu91)

    Website is http://www.craftmaterialhub.com a user can browse items, add in cart & complete checkout.
    I use an offline payment gateway which doesnt involve any financial transaction to place the order.

    Am using Astra theme on Elementor

    Once placed, they go on hold, where after processing I mark them as shipped.

    Plugin Support shahzeen(woo-hc)

    (@shahzeenfarooq)

    Hi there!

    Thank you for providing more information about the issue.

    I’ve reviewed your system status report and noticed that multiple plugins are active on your site. Based on that, I suspect one of the plugins might be causing the issue.

    To assist you further, could you please create a staging site, then deactivate all plugins except WooCommerce, and try placing a test order? This will help determine if the issue persists without the other plugins.

    For more details on how to run a conflict test, please refer to this guide:
    👉 https://woocommerce.com/document/how-to-test-for-conflicts/

    You can also create a staging site using the following plugin:
    👉 https://ww.wp.xz.cn/plugins/wp-staging/

    Let me know how that goes!

    Thread Starter khushbu91

    (@khushbu91)

    Thank you for the reply, I haven’t installed any new plugin lately, only did a PHP Upgrade.

    I’ll try to go the stating way & see which plugin is causing this.

    Hi @khushbu91,

    Thanks for the update!

    The warnings you’re seeing are likely due to the recent PHP 8.1 upgrade. These errors typically occur when older plugins or custom code access WooCommerce order properties directly, which isn’t allowed in newer versions.

    From the logs, the issue seems related to the WebToffee PDF Invoices and Packing Slips plugin. It may still function, but it uses outdated methods that trigger these notices.

    On a staging site, deactivate all plugins except WooCommerce and test. Then, reactivate plugins one by one to confirm the source.

    Let us know what you discover, it may help others in the same boat!

    Thread Starter khushbu91

    (@khushbu91)

    Hello,
    I created a staging site & deactivated all plugins except a few, placed a test order, no errors.
    A thing I noticed is that ajax checkout was not functional,
    Started activating 1-2 plugins, made a note and created an order, reached a point where “Temporary Login” plugin activation gave an error, disabled it on my main site as well, but didn’t resolve the issue.
    I also tried disabling the ajax checkout on my live website to see if the error exists, it does.

    Just now I disabled the pdf invoice export (By Web Toffee) & seems it did the trick, will try and find a better plugin for exporting orders.
    Thank you so much!

    Plugin Support shahzeen(woo-hc)

    (@shahzeenfarooq)

    Hi there,

    Thank you for the detailed update!

    It’s great to hear that you were able to isolate the issue through testing on the staging site. If you have a moment, we’d be incredibly grateful if you could share your positive experience with others by leaving a 5-star review on ww.wp.xz.cn: https://ww.wp.xz.cn/support/plugin/woocommerce/reviews/#new-post

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘Status was called Incorrectly Error’ is closed to new replies.