• Resolved Adrián de Grafreak

    (@adriandegrafreak)


    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 470

    Searching 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)
  • Plugin Author Zoho Flow

    (@zohoflow)

    Hello there,

    Sorry for the trouble and late reply.

    We will fix the same and update the plugin asap.

    Regards,
    Zoho Flow

Viewing 1 replies (of 1 total)
  • The topic ‘Problem on remove a suscription’ is closed to new replies.