• PHP Notice: Trying to get property 'term_id' of non-object in /path/to/wp-content/plugins/supportcandy/includes/functions/check_ticket_conditions.php on line 31

    $custom_field = get_term_by('id', $field_key, 'wpsc_ticket_custom_fields');
    is returning null.

    I logged some values for you:
    $field_key = 11
    $unique_condition = [{"field":11,"compare":"match","cond_val":6}]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Contributor Nikhil G

    (@nsgawli)

    Hello @sarmatopia

    We confirm this as a bug and will be fixed in the next update asap. You are using a deleted custom field in visibility conditions or in email conditions etc.
    To fix this on your site, please follow the below steps:

        Go to Support > Custom fields > Edit custom field one by one and remove the deleted custom field from visibility conditions.
        Go to Support > Email Notifications > Edit email templates one by one and remove the deleted custom field from conditions.
    Thread Starter sarmatopia

    (@sarmatopia)

    Thanks. We have no custom fields. Maybe it’s because we added SupportCandy Woocommerce Add-On recently.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Bug: Trying to get property ‘term_id’ of non-object’ is closed to new replies.