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

  1. tzdk
    Posted 3 years 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 :)


  2. Cindy
    Plugin Author

    Posted 3 years ago #

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

  3. Evan Mattson
    Posted 2 years 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
    Plugin Author

    Posted 2 years ago #

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

  5. tzdk
    Posted 2 years ago #

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

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Widget CSS Classes
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic