• Resolved JapeNZ

    (@japenz)


    Hi there,
    I’m getting the following notice in my error log:

    [08-Mar-2019 22:02:31 UTC] stock was called incorrectly. Product 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_Braintree\Plugin_Framework\SV_WC_Payment_Gateway_Direct->process_payment, WC_Order->payment_complete, WC_Order->save, WC_Order->status_transition, do_action(‘woocommerce_order_status_processing’), WP_Hook->do_action, WP_Hook->apply_filters, wc_maybe_reduce_stock_levels, wc_reduce_stock_levels, do_action(‘woocommerce_reduce_order_stock’), WP_Hook->do_action, WP_Hook->apply_filters, OrderWrapper::handle_reduce_order_stock, WC_Abstract_Legacy_Product->__get, wc_doing_it_wrong. This message was added in version 3.0.

    Any help would be very much appreciated.

    Kind regards,
    JP

Viewing 2 replies - 1 through 2 (of 2 total)
  • Mike W

    (@nixiack8)

    Hi @japenz,

    I’m getting the following notice in my error log:

    This may be the result of an issue with a plugin or theme conflict, as it looks like it is conflicting with stock based on the errors. You can read more about plugin and theme conflicts here: ?

    https://docs.woocommerce.com/document/woocommerce-self-service-guide/

    The best way to determine if the issue is being caused by a theme and/or plugin is to do the following:
    1. Temporarily switch your theme back to the Storefront or Twenty Seventeen Theme.
    2. Disable all plugins except for WooCommerce and PayPal Braintree.
    3. Test to see if the issue has been resolved.

    If that resolves the issue, then one-by-one you can switch back your theme and re-enable your plugins, testing in between, until you find the one causing the conflict.

    Health Check is a tool that can be useful for debugging. On the troubleshooting tab, you can click the button to disable all plugins and change the theme for you while you’re logged in to that session without affecting normal visitors to your site.

    Please let us know how it goes!

    Mike W

    (@nixiack8)

    Hi @japenz,

    We have not heard back from you for a while, so I will go ahead and close this thread. If you have the issue still or have other questions please open a new thread and let us know!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘PHP Error log’ is closed to new replies.