• Resolved dynasec

    (@dynasec)


    Hey,

    after updating WordPress and the Plugin itself, we get that error:

    Warning: Attempt to read property “term_id” on int in /home/.sites/20/site3931783/web/wp-content/plugins/content-control/inc/functions/developers.php on line 270

    This only shows up on our News Site, is there any way to fix this (or just disable the warning?)

    The page I need help with: [log in to see the link]

Viewing 10 replies - 1 through 10 (of 10 total)
  • Same problem here. See this URI: https://www.acvz.nl/amstelglide-2024

    Plugin Author Daniel Iser

    (@danieliser)

    @dynasec, @wfandrea – Are you certain you are on the latest version? v2.2.2 should have addressed this entirely disabling that functionality outside of the REST API.

    Plugin Author Daniel Iser

    (@danieliser)

    Looking further I don’t think this was explicitly patched, though I don’t think it should still be occuring in v2.2.2 as we disabled those entirely outside the API.

    In any case I’ll put another patch out explicitly checking that its not an int later today, simple enough to enforce the variable is the right type.

    That said, you likely have another plugin causing this. I just dug through the code that WP uses for WP_Term_Query before the filter we tap into there. If ->terms is an array of integers, another plugin has modified it already inappropriately. WP core always sets it to an array of $term_objects. This likely has other side effects you might not even be seeing.

    You can use the Health & Troubleshooting plugin to troubleshoot our plugin, then activate other plugins you think could be interacting with taxonomy queries until it breaks again. PS Troubleshooting mode only works for your account via a cookie, so nobody else will be affected during your tests.

    Plugin Author Daniel Iser

    (@danieliser)

    Try the update that just went out. It should resolve this particular error, hopefully its the last one you see.

    Thread Starter dynasec

    (@dynasec)

    Yes, i was on 2.2.2, updated to 2.2.3 now. The Update did it, thank you Daniel ??

    Plugin Author Daniel Iser

    (@danieliser)

    @dynasec – Thanks for confirming.

    thanks! came here for this.

    I’ve just had this error on my development site that displays errors, v2.2.7

    I rolled back to 2.2.6, the same error. Checking the live site logs(v2.2.7), it’s there also, as below:

    [Sat Mar 23 14:49:43.425485 2024] [proxy_fcgi:error] [pid 15164:tid 140258624644864] [client 94.15.63.241:55976] AH01071: Got error ‘PHP message: PHP Warning: Attempt to read property “ID” on null in /var/www/vhosts/woottonroadrunners.co.uk/httpdocs/wp-content/plugins/content-control/inc/functions/rule-callbacks.php on line 448PHP message: PHP Warning: Attempt to read property “ID” on null in /var/www/vhosts/woottonroadrunners.co.uk/httpdocs/wp-content/plugins/content-control/inc/functions/rule-callbacks.php on line 448’

    Plugin Author Daniel Iser

    (@danieliser)

    @woottonwebby – Sorry just seeing this, best to start new threads for issues when your error is not exactly the same as the other reporters, especially as we close them and stop checking once confirmed they are fixed.

    Added a patch for that which will go out in the next update.

    woottonwebby

    (@woottonwebby)

    Thanks for the response Daniel. It’s not causing an issue other than entries in the error log.

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Warning: Attempt to read property “term_id”’ is closed to new replies.