WordPress.org

Ready to get started?Download WordPress

Forums

WP Page Widget
[resolved] PHP Notice reports in error log (6 posts)

  1. joost de keijzer
    Member
    Posted 2 years ago #

    Hi,

    While developing plugin's and themes I frequently use the PHP error_log to debug.

    I noticed that wp-page-widgets produces quite some PHP Notice errors, eg:

    [07-Jun-2012 09:47:44] PHP Notice:  Undefined index: page in /wp-content/plugins/wp-page-widget/wp-page-widgets.php on line 1015
    [07-Jun-2012 09:47:44] PHP Notice:  Undefined index: page in /wp-content/plugins/wp-page-widget/wp-page-widgets.php on line 1015
    [07-Jun-2012 09:47:44] PHP Notice:  Undefined index: page in /wp-content/plugins/wp-page-widget/wp-page-widgets.php on line 1026
    [07-Jun-2012 09:47:44] PHP Notice:  Trying to get property of non-object in /wp-content/plugins/wp-page-widget/wp-page-widgets.php on line 1034
    [07-Jun-2012 09:47:44] PHP Notice:  Trying to get property of non-object in /wp-content/plugins/wp-page-widget/wp-page-widgets.php on line 1035

    Could these be resolved, as it makes debugging harder. Thanks!

    http://wordpress.org/extend/plugins/wp-page-widget/

  2. ntsasng
    Member
    Posted 2 years ago #

    Dear joostdekeijzer
    Thank you for reporting we will check.
    Sang - CodeAndMore.

  3. joost de keijzer
    Member
    Posted 1 year ago #

    Hi ntsasng,

    Started with removing (some?) of the PHP Notice errors. See http://wordpress.pastebin.ca/2172137

  4. jhaba
    Member
    Posted 1 year ago #

    i do not know what you guys are talking about , but if some variable giving error message put @ before variable,

    like : @$variable

  5. joost de keijzer
    Member
    Posted 1 year ago #

    Also a possibility, but I prefer testing using isset().

  6. jhaba
    Member
    Posted 1 year ago #

    yes you can :)

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.