• Hi
    Thanks for your plugin.
    It’s producing an awful lot of the same PHP notice over and over in my error log:
    [28-Jan-2021 13:03:09 UTC] PHP Notice: Trying to get property 'term_id' of non-object in .../wp-content/plugins/age-gate/public/class-age-gate-public-js.php on line 139

    Is this indicative of a problem with my configuration, or a bug?

    Thanks
    Ben

    • This topic was modified 4 years, 1 month ago by uniqcode.
    • This topic was modified 4 years, 1 month ago by uniqcode.
    • This topic was modified 4 years, 1 month ago by uniqcode.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Phil

    (@philsbury)

    Hi @uniqcode,

    I can’t get it to do this, what content type are you looking at when they hit?

    As it’s a notice, it’s not the end of the world, but if I can find a solution I’ll have a look.

    Cheers
    Phil

    Thread Starter uniqcode

    (@uniqcode)

    Hi Phil
    It seems to happen on pretty much every category or product page, twice per page view, whether the products are Age Gated or not.
    I’m not overly worried about it, and as I see you’re mainly focused on version 3, I’ll just wrap it in a test to stop the noise.
    Cheers
    Ben

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Copious PHP warnings about term_id’ is closed to new replies.