WordPress.org

Support

Support » Plugins and Hacks » Widget Logic » [Resolved] Debug notices

[Resolved] Debug notices

  • Hi there, thanks for a very useful plugin!

    When I have debug turned on, I get a couple of notices:

    NOTICE: C:\wamp\www\www.theguitarlesson.com\wp-content\plugins\widget-logic\widget_logic.php(284) : eval()’d code:1 – Undefined variable: post

    NOTICE: C:\wamp\www\www.theguitarlesson.com\wp-content\plugins\widget-logic\widget_logic.php(284) : eval()’d code:1 – Trying to get property of non-object

    My server setup is:
    PHP
    5.3.13
    MySQL
    5.5.24

    It’s not causing any visible errors, just thought I’d let you know.

    best,
    Tom

    http://wordpress.org/extend/plugins/widget-logic/

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

    @alanft

    the “(284): eval()’d code” bit points to the problem being in the logic of one or more of your widgets. Check for logic using $post, without a “global $post;” at the start – which would explain both errors

    Yep, that was it, thanks a lot!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Resolved] Debug notices’ is closed to new replies.
Skip to toolbar