WordPress.org

Ready to get started?Download WordPress

Forums

Widget CSS Classes
[resolved] One more PHP notice? (5 posts)

  1. tzdk
    Member
    Posted 1 year ago #

    Changelog for 1.2.1 mention a fix for a notice but I seem to have one more.

    Something like:

    Undefined index: widget_logic-options-filter /xxxxx/wp-content/plugins/widget-css-classes/includes/widget-css-classes.class.php on line 103

    103 is

    if ( 'checked' == $widget_logic_options['widget_logic-options-filter'] ) {

    Was also in previous version where I think I fixed same line with

    if ( isset( $widget_logic_options['widget_logic-options-filter']) && 'checked' == $widget_logic_options['widget_logic-options-filter'] ) {

    At least notice went away.

    If someone can reproduce I hope it get fixed. Debug cosmetics can be important.

    Have to install Widget Logic to see it. Also must save settings, possibly also go to widget page and force a save. I almost could not get to show on a clean install but it will show under right conditions :)

    http://wordpress.org/extend/plugins/widget-css-classes/

  2. Cindy
    Member
    Plugin Author

    Posted 1 year ago #

    Thanks for the info. I will try to fix the notice.

  3. aaemnnosttv
    Member
    Posted 10 months ago #

    I'm getting this with 1.2.1 version as well.

    May be a conflict with another plugin I'm using to extend widget logic - http://wordpress.org/plugins/widget-logic-by-path/

    The problem though is just that your code is not first checking to see if the key exists before referencing it.

    The addition of isset() above will fix the problem.

  4. Cindy
    Member
    Plugin Author

    Posted 10 months ago #

    Sorry it took so long, but I've just fixed this and will have version 1.2.2 out shortly.

  5. tzdk
    Member
    Posted 10 months ago #

    Thanks, nagging about small things is sign of brilliant plugin :)

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags