Tips and Tricks HQ Support

Support site for Tips and Tricks HQ premium products

  • Home
  • Contact Us
  • Documentation
  • Forum Home
    • Forum
    • Forum Search
    • Forum Login
    • Forum Registration

Bug: Warning: Invalid argument supplied for foreach()

by

Tips and Tricks HQ Support Portal › Forums › WP eMember › Bug: Warning: Invalid argument supplied for foreach()

Tagged: Bug Report

  • This topic has 15 replies, 5 voices, and was last updated 14 years, 2 months ago by gymsensei.
Viewing 15 posts - 1 through 15 (of 16 total)
1 2 →
  • Author
    Posts
  • November 9, 2009 at 3:01 pm #401
    gstout
    Member

    Error message received:

    Warning: Invalid argument supplied for foreach() in /html/wp-content/plugins/wp-eMember/eMember_members_menu.php on line 0

    Member List only show most recent entry

    When viewing member list in version v1.6

    Let me know what you figure out. Shoot me an email if you have questions.

    Greg

    November 10, 2009 at 5:28 am #15868
    amin007
    Participant

    I haven’t seen this on PHP5 servers.. it maybe a PHP4 thing (not many people use PHP4 anymore) let me investigate first and I will get back to you.

    Please try and load a fresh copy of the plugin:

    https://support.tipsandtricks-hq.com/forums/topic/re-install-or-load-a-fresh-build-of-the-plugins

    November 19, 2009 at 3:04 pm #15869
    streamcities
    Member

    I am having the same issue: “Invalid argument supplied for foreach()”

    Everything was working fine for two days since I installed. I added a product image, and now I get an error. Please help as I am trying to launch this site in the next day or so.

    November 19, 2009 at 11:14 pm #15870
    amin007
    Participant

    I am starting to not like PHP4 so much :)

    help is on the way Jay.

    November 20, 2009 at 6:30 pm #15871
    gsconte
    Member

    Hey, just installed both the emember and estore plugin, receiving the same error message. Thanks for the help!

    Also, just to note, I believe my server is php5.

    one last thing, I believe it is affecting the way that estore and emember plugins integrate, when i do a test purchase using paypal sandbox, everything works properly up to the customer being added as a member in emember ( a customer is created in the estore side) and the customer getting an email about registration. I can email more details if necessary.

    November 21, 2009 at 7:35 pm #15872
    gstout
    Member

    I’m on php5 and getting the error

    November 21, 2009 at 7:38 pm #15873
    gstout
    Member

    By the way, how do I get updates once you have this fixed.

    November 21, 2009 at 10:58 pm #15874
    amin007
    Participant

    via email… I sent you an updated copy that I think will fix this.

    November 21, 2009 at 11:38 pm #15875
    gstout
    Member

    Your fix worked perfectly, thanks for your hard efforts and the constant improvements you keep making to this plug-in.

    December 7, 2009 at 10:48 pm #15876
    gstout
    Member

    Found a problem with this fix/version.

    Under membership levels> Manage Content protection tab >

    In the drop down other levels besides general protection are no longer showing up.

    December 8, 2009 at 4:11 am #15877
    amin007
    Participant

    I will take another look at this.

    December 8, 2009 at 4:59 am #15878
    amin007
    Participant

    As explained in this thread (https://support.tipsandtricks-hq.com/forums/topic/emember-feature-requests) we now have a new version of eMember that will definitely solve this Interface issue. The question is do you want to upgrade to the new version right now or not. Upgrading to the new version is definitely good but it means the pasword for existing users need to be reset/changed since the new version now uses the same password encryption algorithm that wordpress uses (this was necessary to make the wordpress user integration feature happen).

    I can give you a script that will automatically convert the member passwords so you can do the upgrade too (this option is good if you have a large number of existing members already)

    December 10, 2009 at 12:31 am #15879
    gstout
    Member

    Oh I’ll take the new version, We have not launched yet so all users are test data only. I appreciate your taking care of this so quickly. Please shoot me the new version as soon as you have a chance, and thanks!

    December 11, 2009 at 10:30 am #15880
    amin007
    Participant

    I am adding the options where you can get a comma (,) separated list of all the member emails. I will send you the update after this is done (should be done within a day or two)

    March 14, 2011 at 7:12 pm #15881
    gymsensei
    Member

    I too have this issue – “Warning: Invalid argument supplied for foreach” when customers are re-directed from Paypal to our thankyou page. THIS IS FOR THE eSTORE plugin – I am not attempting to put this into a membership site – so I don’t know where the mixup is. I see it sends them to the proper thankyou page, but then adds a huge amount of code behind it in the URL…

    [http://gymsensei.net/thankyou001?mc_gross=99.00…..]

    Here is the page error code:

    Warning: Invalid argument supplied for foreach() in /home/content/k/i/c/kicksunlimited/html/gymsensei/wp-content/plugins/wordpress-simple-paypal-shopping-cart/wp_shopping_cart.php on line 78

    Warning: Cannot modify header information – headers already sent by (output started at /home/content/k/i/c/kicksunlimited/html/gymsensei/wp-content/plugins/wordpress-simple-paypal-shopping-cart/wp_shopping_cart.php:78) in /home/content/k/i/c/kicksunlimited/html/gymsensei/wp-content/plugins/wordpress-simple-paypal-shopping-cart/wp_shopping_cart.php on line 83

    Warning: Invalid argument supplied for foreach() in /home/content/k/i/c/kicksunlimited/html/gymsensei/wp-content/plugins/wordpress-simple-paypal-shopping-cart/wp_shopping_cart.php on line 78

    Could you please tell me what I am doing wrong? I appreciate your help!

    Matthew

  • Author
    Posts
Viewing 15 posts - 1 through 15 (of 16 total)
1 2 →
  • You must be logged in to reply to this topic.
Log In

Forum Related

  • Forum Home
  • Forum Search
  • Forum Registration
  • Forum Login

Support Related Forms

  • Contact Us
  • Customer Support
  • Request a Plugin Update
  • Request Fresh Download Links

Useful Links

  • Plugin Upgrade Instructions
  • WP eStore Documentation
  • WP eMember Documentation
  • WP Affiliate Platform Documentation
  • Tips and Tricks HQ Home Page
  • Our Projects

Quick Setup Video Tutorials

  • WP eStore Video Tutorial
  • WP eMember Video Tutorial
  • WP Affiliate Platform Video Tutorial
  • Lightbox Ultimate Video Tutorial

Our Other Plugins

  • WP Express Checkout
  • Stripe Payments Plugin
  • Simple Shopping Cart Plugin
  • Simple Download Monitor

Copyright © 2025 | Tips and Tricks HQ