• Resolved Pexle Chris

    (@pexlechris)


    Notice: Trying to get property ‘term_id’ of non-object in /var/www/vhosts/mysite.gr/wp-content/plugins/hide-categories-or-products-on-shop-page/hide-categories-or-products.php on line 146

    I get this message.

    I had go to the code and I can see that $terms is this array

    (
    [__601065410dcb6] => WP_Term Object
    (
    [term_id] => 89
    [name] => simple
    [slug] => simple
    [term_group] => 0
    [term_taxonomy_id] => 89
    [taxonomy] => product_type
    [description] =>
    [parent] => 0
    [count] => 2
    [filter] => raw
    [object_id] => 34439
    )

    [__601065410dcbc] => WP_Term Object
    (
    [term_id] => 234
    [name] => test_tag
    [slug] => test_tag
    [term_group] => 0
    [term_taxonomy_id] => 234
    [taxonomy] => product_tag
    [description] =>
    [parent] => 0
    [count] => 1
    [filter] => raw
    [object_id] => 34439
    )

    [__601065410dcbf] => WP_Term Object
    (
    [term_id] => 102
    [name] => Uncategorized
    [slug] => uncategorized
    [term_group] => 0
    [term_taxonomy_id] => 102
    [taxonomy] => product_cat
    [description] =>
    [parent] => 0
    [count] => 4
    [filter] => raw
    [object_id] => 34439
    )

    [__6010654115420] => (integer)102
    [__6010654115efa] => (integer)102
    [__6010654116e9d] => WP_Term Object
    (
    [term_id] => 102
    [name] => Uncategorized
    [slug] => uncategorized
    [term_group] => 0
    [term_taxonomy_id] => 102
    [taxonomy] => product_cat
    [description] =>
    [parent] => 0
    [count] => 4
    [filter] => raw
    )

    [__601065411b492] => (integer)102
    [__601065411c0b6] => WP_Term Object
    (
    [term_id] => 102
    [name] => Uncategorized
    [slug] => uncategorized
    [term_group] => 0
    [term_taxonomy_id] => 102
    [taxonomy] => product_cat
    [description] =>
    [parent] => 0
    [count] => 4
    [filter] => raw
    )

    [__601065411c3b0] => (integer)102
    [__601065411c9a8] => WP_Term Object
    (
    [term_id] => 89
    [name] => simple
    [slug] => simple
    [term_group] => 0
    [term_taxonomy_id] => 89
    [taxonomy] => product_type
    [description] =>
    [parent] => 0
    [count] => 2
    [filter] => raw
    [object_id] => 32130
    )

    [__601065411c9ad] => WP_Term Object
    (
    [term_id] => 102
    [name] => Uncategorized
    [slug] => uncategorized
    [term_group] => 0
    [term_taxonomy_id] => 102
    [taxonomy] => product_cat
    [description] =>
    [parent] => 0
    [count] => 4
    [filter] => raw
    [object_id] => 32130
    )

    [__601065411c9af] => WP_Term Object
    (
    [term_id] => 102
    [name] => Uncategorized
    [slug] => uncategorized
    [term_group] => 0
    [term_taxonomy_id] => 102
    [taxonomy] => product_cat
    [description] =>
    [parent] => 0
    [count] => 4
    [filter] => raw
    [object_id] => 32170
    )

    [__601065411c9b1] => WP_Term Object
    (
    [term_id] => 91
    [name] => variable
    [slug] => variable
    [term_group] => 0
    [term_taxonomy_id] => 91
    [taxonomy] => product_type
    [description] =>
    [parent] => 0
    [count] => 1
    [filter] => raw
    [object_id] => 32170
    )

    Can you fix this notice?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Kaushik Nakrani

    (@kaushikankrani)

    Hello Pexle Chris,

    I apologize for the late reply and I’ve solve your problem and you can download new version and check it.

    Thank you.

    Thread Starter Pexle Chris

    (@pexlechris)

    The problem is still here… ??

    Plugin Author Kaushik Nakrani

    (@kaushikankrani)

    Hello Pexle Chris,

    I’ve fixed that issue and would you please check it.

    Thanks

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘PHP Notice’ is closed to new replies.