• Resolved batchit

    (@batchit)


    Hi,
    I am testing the upgrade to WooCommerce 3.0 on a test site, which has WP_DEBUG ON.
    When the user is logged in, the following notice is firing up in the widget (3 times in a row)

    Notice: status was called incorrectly. Order properties should not be accessed directly. Backtrace: require(‘wp-blog-header.php’), require_once(‘wp-includes/template-loader.php’), include(‘/plugins/woocommerce/templates/taxonomy-product_cat.php’), wc_get_template, include(‘/plugins/woocommerce/templates/archive-product.php’), do_action(‘woocommerce_after_main_content’), WP_Hook->do_action, WP_Hook->apply_filters, woocommerce_get_sidebar, wc_get_template, include(‘/plugins/woocommerce/templates/global/sidebar.php’), get_sidebar, locate_template, load_template, require_once(‘/themes/mytheme/sidebar.php’), dynamic_sidebar, WP_Widget->display_callback, WooCommerceMyAccountWidget->widget, 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 /test_site/wp-includes/functions.php on line 4138

    Even though the stack goes down to MyAccountWidget, I am not certain if the template is not the cause as it has a sidebar where the widget is used.

    Can you advise?

    Thanks for your help!

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter batchit

    (@batchit)

    Interestingly enough, after more testing I observed that the notice shows with an account having a pending order.
    Need to do more testing…
    After testing, it appears with accounts having an order

    • This reply was modified 9 years ago by batchit. Reason: More information
    • This reply was modified 9 years ago by batchit.
    Plugin Author WP Fortune

    (@bpluijms)

    Hello Batchit,

    Thank you for your report.

    We’re going to do some tests and we’ll report back to you asap.

    Best regards,
    Bart

    Plugin Author WP Fortune

    (@bpluijms)

    Hi,

    In the most recent version all bugs are fixed.
    Can you confirm this?

    Best regards,

    Thread Starter batchit

    (@batchit)

    Hi Bart,
    thanks for the notification and the quick fix. For some reasons my 2 instances of WordPress did not inform me that an update is available for your plugin…

    I did a manual update and the version 0.6.0 produces now a clean output with woocommerce 3.0 🙂

    mvg

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

The topic ‘WooCommerce 3.0 errors’ is closed to new replies.