PHP Notice in debug.log shows in strange location
-
When the plugin is activated, I’m seeing this PHP Notice (WP_DEBUG true) below the textarea box in WordPress’s (4.5.3) Dashboard under Comments – Edit: (Woocommerce 2.6.4)
Notice: Trying to get property of non-object in /[redacted path]/htdocs/wp-content/plugins/stripe-woocommerce-addon/stripe-woocommerce-addon.php on line 669
Code segement:
... /*Capture Charge*/ function stripe_capture_meta_box() { global $post; // next line is 669 from the file. $chargestatus = get_post_meta( $post->ID, '_stripe_charge_status', true ); if($chargestatus == 'charge_auth_only') { add_meta_box( 'stripe_capture_chargeid', __( 'Capture Charge', 'woocommerce' ), 'stripe_capture_meta_box_callback', 'shop_order', 'side', 'default' ); } } ...
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘PHP Notice in debug.log shows in strange location’ is closed to new replies.