Erors with debug mode on

Support MB Conditional Logic Erors with debug mode on

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #1279
    webidiawebidia
    Participant

    Hello,

    I just recently purchased the extension and am having issues getting it working with my current implementation. I'm following a basic conditional visibility example but it seems to be not working. I'm getting the following errors with debug mode on.

    side_conditions in /Documents/MAMP Projects/wp-content/plugins/meta-box-conditional-logic/inc/class-conditional-logic.php on line 38

    Notice: Undefined index: id in/Documents/MAMP Projects/wp-content/plugins/meta-box-conditional-logic/inc/class-conditional-logic.php on line 56

    Notice: Undefined index: id in /Documents/MAMP Projects/wp-content/plugins/meta-box-conditional-logic/inc/class-conditional-logic.php on line 56

    Notice: Undefined index: id in /Documents/MAMP Projects/wp-content/plugins/meta-box-conditional-logic/inc/class-conditional-logic.php on line 56

    Notice: Undefined index: id in /Documents/MAMP Projects/wp-content/plugins/meta-box-conditional-logic/inc/class-conditional-logic.php on line 56

    Notice: Undefined index: id in /Documents/MAMP Projects/wp-content/plugins/meta-box-conditional-logic/inc/class-conditional-logic.php on line 56

    Notice: Undefined index: id in /Documents/MAMP Projects/wp-content/plugins/meta-box-conditional-logic/inc/class-conditional-logic.php on line 56

    Notice: Undefined index: id in /Documents/MAMP Projects/wp-content/plugins/meta-box-conditional-logic/inc/class-conditional-logic.php on line 56

    Notice: Undefined index: id in /Documents/MAMP Projects/wp-content/plugins/meta-box-conditional-logic/inc/class-conditional-logic.php on line 44

    Warning: Invalid argument supplied for foreach() in /Documents/MAMP Projects/wp-content/plugins/meta-box-conditional-logic/inc/class-conditional-logic.php on line 81

    --

    Any idea what might be causing this?

    Thanks

    #1280
    webidiawebidia
    Participant

    Additionally I can't seem to hide any fields with the type file_advanced but other fields seems to work.

    #1284
    Tan NguyenTan Nguyen
    Participant

    Hi webidia,

    Thanks for downloading Conditional Logic and reporting that bug, we've just released new version, can you please update?

    For file_advanced and image_advanced, it returns num of uploaded files so you can define conditional logic like so:

    
    // Visible when file_advanced is empty
    'visible' => array('file_advanced', 0)
    
    // Or hidden when image_advanced is exists at least 2 images
    'visible' => array('image_advanced', '>=', 2) 
    

    Best regards,

    Tan Nguyen

    #1285
    webidiawebidia
    Participant

    Thanks for fixing the notice issue. Everything working well now. I am having issues with hiding image_select titles and dividers. I tried using the examples in the documentation and like in your previous post but they are still displaying no matter what.

    If you could point me in the right direction on what I might be doing wrong that would be great. Here is the sample for reference:

    array(
    					'id'			=> 'wf_meta_post_audio_type',
    					'name'			=> __( 'Audio Type', 'framework' ),
    					'type'			=> 'image_select',
    					'tab'			=> 'audio',
    					'options'		=> array(
    						'audio_upload'			=> 'http://placehold.it/90x90&text=Header 1',
    						'audio_embed'			=> 'http://placehold.it/90x90&text=Header 2',
    						'audio_external'		=> 'http://placehold.it/90x90&text=Header 2',
    					),
    				),
    
    				// Divider
    				array(
    					'id'			=> 'wf_meta_post_audio_type_divider',
    					'name'			=> 'Audio Options',
    					'type'			=> 'divider',
    					'tab'			=> 'audio',
    					'hidden' => array('wf_meta_post_audio_type', '!=', 'audio_upload'),
    				),
    
    				array(
    					'name' => __('MP3 Audio File', 'framework'),
    					'id' => "wf_meta_post_audio_mp3_upload",
    					'desc' => __('Upload the MP3 audio file.', 'framework'),
    					'type' => 'file_advanced',
    					'tab'  => 'audio',
    					'max_file_uploads' => 1,
    					'hidden' => array('wf_meta_post_audio_type', '!=', 'audio_upload'),
    				),
    #1321
    Tan NguyenTan Nguyen
    Participant

    Hi webidia,

    Sorry for long silence, I have some trouble with me health, I've just released the patch, can you able to update?

    Btw, due to divider field in haven't #ID selector so we cannot hide divider right now, we'll update Meta Box plugin shortly. You can use CSS to add horizontal row now to work around, we're sorry about this convenience.

    Thank you and have a nice day man 🙂

    #1367
    webidiawebidia
    Participant

    Thanks for the update, I believe this resolves all the issues, will let you know if I find anything else.

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘Erors with debug mode on’ is closed to new replies.