WordPress.org

Forums

Widget Logic
[resolved] Debug notices (3 posts)

  1. halasy
    Member
    Posted 2 years ago #

    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/

  2. alanft
    Member
    Plugin Author

    Posted 2 years ago #

    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

  3. halasy
    Member
    Posted 2 years ago #

    Yep, that was it, thanks a lot!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic