• Upon updating a user in the backend (even if not making any changes and clicking Update), I’m getting the following PHP Error warnings related to Code Snippets:

    View post on imgur.com

    They all seems to be related to the same file and line of code.

    Any ideas what’s happening here? Thanks.

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

    (@bungeshea)

    These errors are coming from one of your snippets. My guess is you have a $post object stored in a variable and are trying to access various properties like ID and post_author, but for some reason the variable contains null instead of a proper post object.

    You should be able to find the snippet causing these errors by running a search for post_author @line:169

    You can possibly use isset to preface the reference to the variable in question

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Use of undefined constant ID – assumed ‘ID’’ is closed to new replies.