• Resolved systemcloud

    (@websnextlevel)


    Hi,

    Just debugging and see that the Code Snippets plugin is generating several notices as follows:

    – Notice: Trying to get property of non-object in /”path to code”/wp-content/plugins/code-snippets/php/snippet-ops.php(433) : eval()’d code on line “1234”

    Where: /”path to code” is the path to my /wp-content/ folder, and “1234” is different for many of the notices. I see that in snippet-ops.php line 433 is:

    – $result = eval( $code );

    But not sure what the “1234”‘s refers to and how to find where to address it specifically as I see no reference to Snippet title. I assume its the line of code in a Snippet, if so, anyway to zero-in on the particular Snippet in to find the issue a but quicker?

    Thanks

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

    (@bungeshea)

    Hey,

    The error message here is a little confusing, but it’s actually referring to the code in one or more of the snippets you’ve added to your site, and not part of the main plugin at all.

    This is why the “1234” number changes – these errors are originating from different lines in different snippets.

    It’s a bit difficult to determine exactly which snippets this is referring to, but the “1234” line number is a bit of a hint, and the “Trying to get property of non-object” message generally refers to code where you are using the -> syntax.

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