Erors with debug mode on
Support › MB Conditional Logic › Erors with debug mode on
- This topic has 5 replies, 2 voices, and was last updated 9 years, 8 months ago by
webidia.
-
AuthorPosts
-
August 23, 2015 at 6:15 PM #1279
webidia
ParticipantHello,
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
August 23, 2015 at 6:35 PM #1280webidia
ParticipantAdditionally I can't seem to hide any fields with the type
file_advanced
but other fields seems to work.August 23, 2015 at 10:29 PM #1284Tan Nguyen
ParticipantHi webidia,
Thanks for downloading Conditional Logic and reporting that bug, we've just released new version, can you please update?
For
file_advanced
andimage_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
August 24, 2015 at 1:22 AM #1285webidia
ParticipantThanks 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'), ),
August 29, 2015 at 2:28 AM #1321Tan Nguyen
ParticipantHi 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 🙂
August 31, 2015 at 4:04 PM #1367webidia
ParticipantThanks for the update, I believe this resolves all the issues, will let you know if I find anything else.
-
AuthorPosts
- The topic ‘Erors with debug mode on’ is closed to new replies.