WordPress.org

Ready to get started?Download WordPress

Forums

Widget Logic Visual
Lots of PHP Notices for Undefined index (8 posts)

  1. petethechop
    Member
    Posted 2 years ago #

    I have debuging turned on because I'm also developing a plugin. I noticed that Widget Logic Visual is throwing a lot of PHP Notice messages for Undefined index in your custom.php file for lines 36-40.

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

  2. totalbounty
    Member
    Plugin Author

    Posted 2 years ago #

    please let us know if this is still the case for the latest version 1.5

  3. petethechop
    Member
    Posted 2 years ago #

    It is still the case:

    [21-Feb-2012 19:07:20] PHP Notice: Undefined index: select in /Users/jason/Sites/toptruckers.com/wp-content/plugins/widget-logic-visual/custom.php on line 67
    [21-Feb-2012 19:07:20] PHP Notice: Undefined index: select in /Users/jason/Sites/toptruckers.com/wp-content/plugins/widget-logic-visual/custom.php on line 68
    [21-Feb-2012 19:07:20] PHP Notice: Undefined index: select in /Users/jason/Sites/toptruckers.com/wp-content/plugins/widget-logic-visual/custom.php on line 67
    [21-Feb-2012 19:07:20] PHP Notice: Undefined index: select in /Users/jason/Sites/toptruckers.com/wp-content/plugins/widget-logic-visual/custom.php on line 68
    [21-Feb-2012 19:07:20] PHP Notice: Undefined index: select in /Users/jason/Sites/toptruckers.com/wp-content/plugins/widget-logic-visual/custom.php on line 67
    [21-Feb-2012 19:07:20] PHP Notice: Undefined index: select in /Users/jason/Sites/toptruckers.com/wp-content/plugins/widget-logic-visual/custom.php on line 68
    [21-Feb-2012 19:07:20] PHP Notice: Undefined index: select in /Users/jason/Sites/toptruckers.com/wp-content/plugins/widget-logic-visual/custom.php on line 67
    [21-Feb-2012 19:07:20] PHP Notice: Undefined index: select in /Users/jason/Sites/toptruckers.com/wp-content/plugins/widget-logic-visual/custom.php on line 68
    [21-Feb-2012 19:07:20] PHP Notice: Undefined index: select in /Users/jason/Sites/toptruckers.com/wp-content/plugins/widget-logic-visual/custom.php on line 67
    [21-Feb-2012 19:07:20] PHP Notice: Undefined index: select in /Users/jason/Sites/toptruckers.com/wp-content/plugins/widget-logic-visual/custom.php on line 68

  4. totalbounty
    Member
    Plugin Author

    Posted 2 years ago #

    @petethechop - thanks for much for letting us know about this. Latest version 1.5.1 should fix it. Please let us know!

  5. petethechop
    Member
    Posted 2 years ago #

    That did the trick! Thanks a lot.

  6. ridwan developer
    Member
    Posted 2 years ago #

    hello petethechop

    i'm the developer of the plugin, working under totalbounty agency.

    would you like to give me any detail ( like input, data, screenshot ) of the problem.

    yes, the current version plugin removed the bug, but cause the plugin not work correctly.

    but if i remove the patch for your problem, it works.

    i'll be happy if you help me

    regards,

  7. petethechop
    Member
    Posted 2 years ago #

    I don't think I have much more info than I've already provided. There aren't any visual reprecussions, simply a lot of complaining by the PHP engine when debug mode is turned on. It has always been highly recommended that when you are developing plugins you turn on debug mode, so if I could suggest anything, it would be to turn it on and see for yourself.

  8. sickhippie
    Member
    Posted 2 years ago #

    Had this issue on version 1.52. I have a workaround here, perhaps you can take this and work it back into your coding style.

    Extra info: I was seeing those errors when selecting a page template and no exceptions - so any time I did not use the 'select pages' dropdowns. I solved it by changing lines 66-68 to this:

    if(!isset($visi['not'])) :
    	if(isset($visi['select'])) {
    		$the_visi[$visi['show']]['show'] = $visi['select'];
    		$eval[$visi['show']]	= widget_logic_visual_selection_function($visi['show'],$eval,$visi['select'],false);
    	} else {
    		$the_visi[$visi['show']]['show'] = NULL;
    		$eval[$visi['show']]	= widget_logic_visual_selection_function($visi['show'],$eval,NULL,false);
    	}

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic