Error with WP_DEBUG
-
I am getting this error when I have WP_DEBUG on.
Notice: id was called incorrectly. Order properties should not be accessed directly. Backtrace: require('wp-admin/edit-form-advanced.php'), do_meta_boxes, WC_Meta_Box_Order_Data::output, do_action('woocommerce_admin_order_data_after_billing_address'), WP_Hook->do_action, WP_Hook->apply_filters, WC_Customer_Source->display_fields_order_edit, 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 /home/331995.cloudwaysapps.com/vmudbbqmcj/public_html/wp-includes/functions.php on line 5225
I see this was asked before but @wooassist couldn’t replicate. Maybe this picture will help…
https://www.dropbox.com/s/27secrsx3oth0zj/PHP%20ERROR.png?dl=0Have to add this to your wp-config to see php errors-
# ENABLE DEBUG MODE define('WP_DEBUG',true); # ENABLE DEBUG LOGGING TO /wp-content/debug.log define('WP_DEBUG_LOG',true); # ENABLE DISPLAY OF ERRORS AND WARNINGS define('WP_DEBUG_DISPLAY',true); @ini_set('display_errors',1);
Hopefully @wooassist can incorporate the fixes in the published plugin.
The page I need help with: [log in to see the link]
- The topic ‘Error with WP_DEBUG’ is closed to new replies.