Problem on remove a suscription
-
Hi!
When I tried to remove a subscription created via WooCommerce Subscription, I got this error:
Fatal error: Uncaught Error: Attempt to assign property “comment_status” on null
in /wp-content/plugins/zoho-flow/integrations/wordpress-org/wordpress-org.php on line 470Searching in the code I saw:
$comment = get_comment($comment_id); $comment->comment_status = $comment_status;
Maybe you might do:
$comment = get_comment($comment_id); if ( $comment ) { return; } $comment->comment_status = $comment_status;
The problem is when $comment_id is null, and the hook is called.
Can you resolve this?
Thanks!
Cheers!
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Problem on remove a suscription’ is closed to new replies.