Invalid arg supplied for foreach() in class-wp-list-util.php on line 151

We're shifting our Forum based support to a more dedicated support system!

We'll be closing our Forum support from 10th June, 2020 and move to Email Support assistance.

  • If you are a WCFM premium add-ons user, contact us- here
  • Want to know more before buying our add-ons? Send Pre sale queries- here
  • If you are a WCFM free user, please open a support ticket at WordPress.org
  • For WCFM App related queries, reach us- here
From now the forum will be read-only!

Multi Vendor Marketplace Plugin | WCFM Marketplace Forums WC Marketplace Invalid arg supplied for foreach() in class-wp-list-util.php on line 151

Viewing 5 reply threads
  • Author
    Posts
    • #109263
      ntstech
      Participant

      Howdy; I have a big problem. I am using 3 WCFM plugins. 1 WCFM – Frontend Manager. 2 WCFM – Multivendor Marketplace. 3 WCFM – Multivendor Membership. When a user attempts to set up their store they get a massive error followed by the store setup at the bottom of the screen. They can set up their store as normal if they ignore the error. I attempted commenting out the function that causes the error as well as the function that calls the function that causes the error, however this creates more issues. My site is sales.dragonclerk.com

      Feel free to set up a vendor acct etc. I have attempted fixing by removing my theme, removing all other non essential plugins.

      `( ! ) Warning: Invalid argument supplied for foreach() in C:\wamproot\www\wordpress\wp-includes\class-wp-list-util.php on line 151
      Call Stack
      # Time Memory Function Location
      1 0.0002 412176 {main}( ) …\index.php:0
      2 0.0002 412456 require( ‘C:\wamproot\www\wordpress\wp-blog-header.php’ ) …\index.php:17
      3 0.0002 412808 require_once( ‘C:\wamproot\www\wordpress\wp-load.php’ ) …\wp-blog-header.php:13
      4 0.0003 413560 require_once( ‘C:\wamproot\www\wordpress\wp-config.php’ ) …\wp-load.php:37
      5 0.0004 414808 require_once( ‘C:\wamproot\www\wordpress\wp-settings.php’ ) …\wp-config.php:90
      6 0.2687 9931568 do_action( ) …\wp-settings.php:523
      7 0.2687 9931944 WP_Hook->do_action( ) …\plugin.php:478
      8 0.2687 9931944 WP_Hook->apply_filters( ) …\class-wp-hook.php:312
      9 0.6220 14622160 WCFMmp_Store_Setup->wcfmmp_store_setup( ) …\class-wp-hook.php:288
      10 0.6698 14846280 WCFMmp_Store_Setup->wcfmmp_store_setup_header( ) …\class-wcfmmp-store-setup.php:197
      11 0.6702 14847032 wp_head( ) …\class-wcfmmp-store-setup.php:266
      12 0.6702 14847032 do_action( ) …\general-template.php:2879
      13 0.6702 14847408 WP_Hook->do_action( ) …\plugin.php:478
      14 0.6702 14847408 WP_Hook->apply_filters( ) …\class-wp-hook.php:312
      15 0.6709 14850080 wp_enqueue_scripts( ) …\class-wp-hook.php:288
      16 0.6710 14850080 do_action( ) …\script-loader.php:2670
      17 0.6710 14850456 WP_Hook->do_action( ) …\plugin.php:478
      18 0.6710 14850456 WP_Hook->apply_filters( ) …\class-wp-hook.php:312
      19 0.6726 14878824 wp_common_block_scripts_and_styles( ) …\class-wp-hook.php:288
      20 0.6727 14878848 do_action( ) …\script-loader.php:2856
      21 0.6727 14879224 WP_Hook->do_action( ) …\plugin.php:478
      22 0.6727 14879224 WP_Hook->apply_filters( ) …\class-wp-hook.php:312
      23 0.6740 14890672 ThemeIsle\GutenbergBlocks\Main->enqueue_block_frontend_assets( ) …\class-wp-hook.php:288
      24 0.6743 14891664 wp_list_pluck( ) …\class-main.php:180
      25 0.6743 14891760 WP_List_Util->pluck( ) …\functions.php:4470

    • #109795
      n_abdi
      Participant

      hello! i have the same issue with my website!
      For your website,i’ve tried to register as a vendor , the error no longer appears, if you have found the solution, please help to solve the problem.
      thank you!

    • #109887
      WCFM Forum
      Keymaster

      Well, I think this issue generated by some other plugin.

      If you are still getting this issue then please contact us here here – https://wclovers.com/setup-guidance/
      We will debug and fix this for you.

      Thank You

    • #109933
      n_abdi
      Participant

      okay it’s done!
      thank you for replying.

      • #110139
        ntstech
        Participant
        //		 define( 'WP_DEBUG', false );
        // AGX removes all notifications
        ini_set('log_errors','On');
        ini_set('display_errors','Off');
        ini_set('error_reporting', E_ALL );
        define('WP_DEBUG', false);
        define('WP_DEBUG_LOG', true);
        define('WP_DEBUG_DISPLAY', false);

        The error still occurs I just hid the display. Pasting that code inside of wp-config.php hides the error but doesn’t resolve it.

    • #110616
      n_abdi
      Participant

      oh okey! but is this error going to influence or prevent the proper functioning of the marketplace or all of the website.

    • #110951
      Sushobhan
      Keymaster

      Hello,
      Ideally you should try to solve the issue, not hiding it. You couldn’t tell for sure, what functionality it will break for your website users. These kind of issues mostly happen due to compatibility problem. Make sure all the plugins you use are compatible to each other and also with your version of WP.
      Thanks!

      • #111183
        n_abdi
        Participant
        This reply has been marked as private.
Viewing 5 reply threads
  • You must be logged in to reply to this topic.