[Support request] Query Monitor: “Undefined variable: Post” + Hook

Home Forums Support Query Monitor: “Undefined variable: Post” + Hook

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #1496998
    Joseph

    This image will give you more info.

    Just started popping up the past week or so.
    It’s referring to this line?
    eval( '?>' . $content . '<?php ' ); // phpcs:ignore -- Using eval() to execute PHP.

    And then it hooks over and over.

    #1497357
    Tom
    Lead Developer
    Lead Developer

    Hi there,

    That means you have a Hook Element added to your site with an undefined $post variable.

    Check your Hook Elements for any $post references.

    Feel free to share the code here and I’ll see if I can spot the error 🙂

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.