soflyy / oxygen-bugs-and-features

Bug Reports & Feature Requests for Oxygen
https://oxygenbuilder.com/
314 stars 29 forks source link

v3.9 - Invalid argument supplied for foreach() - wp-includes/class-wp-list-util.php:164 #2680

Open shmaltz opened 2 years ago

shmaltz commented 2 years ago

In v3.9, Query Monitor is showing this error on my cpt single template page loads, and says it's coming from Oxygen:

Warning | Invalid argument supplied for foreach() | wp-includes/class-wp-list-util.php:164 | Plugin: oxygen

```

wp-includes/class-wp-list-util.php:164 WP_List_Util->pluck() wp-includes/functions.php:5024 wp_list_pluck() wp-content/plugins/oxygen/component-framework/includes/oxygen-dynamic-shortcodes.php:191 Oxygen_VSB_Dynamic_Shortcodes->oxygen_post_terms() wp-content/plugins/oxygen/component-framework/includes/oxygen-dynamic-shortcodes.php:65 Oxygen_VSB_Dynamic_Shortcodes->oxygen_vsb_dynamic_shortcode() wp-includes/shortcodes.php:356 do_shortcode_tag() Unknown location preg_replace_callback() wp-includes/shortcodes.php:228 do_shortcode() wp-content/plugins/oxygen/component-framework/includes/advanced-query.php:8 Oxy_VSB_Advanced_Query::if_shortcode_process() wp-content/plugins/oxygen/component-framework/includes/advanced-query.php:55 Oxy_VSB_Advanced_Query::process_adv_query_args() wp-content/plugins/oxygen/component-framework/includes/advanced-query.php:41 Oxy_VSB_Advanced_Query::process_adv_query_args() wp-content/plugins/oxygen/component-framework/includes/advanced-query.php:41 Oxy_VSB_Advanced_Query::process_adv_query_args() wp-content/plugins/oxygen/component-framework/includes/advanced-query.php:41 Oxy_VSB_Advanced_Query::process_adv_query_args() wp-content/plugins/oxygen/component-framework/includes/advanced-query.php:85 Oxy_VSB_Advanced_Query::query_args() wp-content/plugins/oxygen/component-framework/components/classes/easy-posts.class.php:506 Oxygen_VSB_Easy_Posts->get_the_posts() wp-content/plugins/oxygen/component-framework/components/classes/easy-posts.class.php:141 Oxygen_VSB_Easy_Posts->add_shortcode() wp-includes/shortcodes.php:356 do_shortcode_tag() Unknown location preg_replace_callback() wp-includes/shortcodes.php:228 do_shortcode() wp-content/plugins/oxygen/component-framework/components/classes/section.class.php:57 CT_Section->add_shortcode() wp-includes/shortcodes.php:356 do_shortcode_tag() Unknown location preg_replace_callback() wp-includes/shortcodes.php:228 do_shortcode() wp-content/plugins/oxygen/component-framework/component-init.php:5679 ct_do_shortcode() wp-content/plugins/oxygen/component-framework/includes/templates.php:22 ct_template_output() wp-content/plugins/oxygen/component-framework/includes/templates.php:77 ct_templates_buffer_start() wp-includes/class-wp-hook.php:303 do_action('ct_builder_start') wp-content/plugins/oxygen/component-framework/component-init.php:1164 oxy_print_cached_css() wp-includes/class-wp-hook.php:303 do_action('wp_head') wp-includes/general-template.php:3015 wp_head() wp-content/plugins/oxygen/component-framework/oxygen-main-template.php:10

KittenCodes commented 2 years ago

@shmaltz Please could you let me know what type of query you're using? Is it default, custom, manual or advanced?

Kunalll1 commented 2 years ago

@KittenCodes @Spellhammer Same Error is Happing When i try to Use Group/repeater field of Mata Box Please fix it FrountEnd Image Backend Image