Support » Plugin: CookieYes | GDPR Cookie Consent & Compliance Notice (CCPA Ready) » Notice: Trying to get property of non-object error

  • Resolved Vijay


    just to report this notice issue on trying to get property like ID, post_title, post_name of non-object. Iam getting this when I enabled debugging on WordPress config.

    Environment details
    1. WordPress 5.5.1.
    2. PHP Version 7.4.8 and
    Iam using the Balck bar plugin to show error messages.

    Iam sure this is from GDPR Cookie Consent (CCPA Ready)plugin if I deactivate this plugin everything is fine.

    kindly have a look at the image of the notice error.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author webtoffee


    Hi @vijaydj,

    We can check that. Please share the site URL.

    Thread Starter Vijay


    hi @webtoffee,
    *no issues*
    I have tested the plugin in an empty WordPress site in localhost and it’s fine.
    the error is happening when I add a filter with *is_checkout()* and is_page() condition.
    it’s solved when I trigger that particular filter with *wp* add_action.

    thanks for your response.

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