Search for: Log In Free Support [Support request] Query Monitor: “Undefined variable: Post” + Hook Home › Forums › Support › Query Monitor: “Undefined variable: Post” + Hook This topic has 1 reply, 2 voices, and was last updated 4 months, 2 weeks ago by Tom. Viewing 2 posts - 1 through 2 (of 2 total) Author Posts October 20, 2020 at 7:17 am #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. October 20, 2020 at 9:35 am #1497357 TomLead 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 🙂 Documentation: http://docs.generatepress.com/ Adding CSS: http://docs.generatepress.com/article/adding-css/ Ongoing Development: https://generatepress.com/ongoing-development Author Posts Viewing 2 posts - 1 through 2 (of 2 total) You must be logged in to reply to this topic. Log In Username: Password: Keep me signed in Log In