Title: Foreach Error
Last modified: August 31, 2016

---

# Foreach Error

 *  Resolved [spirconi](https://wordpress.org/support/users/spirconi/)
 * (@spirconi)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/foreach-error-4/)
 * Hi,
 * Not sure if there is a clash with another plugin, but this seems a really great
   and simple plugin so would love to get it working.
 * I get the following error on the product page where the images should display:
 * Warning: Invalid argument supplied for foreach() in /home/coretone/public_html/
   wp-content/plugins/woo-instagram/public/class-woo-instagram-public.php on line
   87
 * Any ideas?
 * [https://wordpress.org/plugins/woo-instagram/](https://wordpress.org/plugins/woo-instagram/)
 * EDIT: My credentials for Instagram may not be live yet (I just read they need
   to be approved)

Viewing 10 replies - 1 through 10 (of 10 total)

 *  Thread Starter [spirconi](https://wordpress.org/support/users/spirconi/)
 * (@spirconi)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/foreach-error-4/#post-7077756)
 * I don’t think it was a credentials issue, my request was rejected and said it
   should work in sandbox mode!
 *  Plugin Author [Dotstore](https://wordpress.org/support/users/dots/)
 * (@dots)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/foreach-error-4/#post-7077826)
 * [@spirconi](https://wordpress.org/support/users/spirconi/),
 * Thanks for using our plugin and sharing your concern with us.
 * We are looking into your concern and if we found any issue will sort it out asap
   in our next version and update you for the same.
 * Thanks,
    Multidots
 *  Plugin Author [Dotstore](https://wordpress.org/support/users/dots/)
 * (@dots)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/foreach-error-4/#post-7077865)
 * Hello [@spirconi](https://wordpress.org/support/users/spirconi/),
 * We have tested this plugin and will not found error as you mentioned but still
   we have fixed few things so hopefully this will not come. Please check from your
   end and let us know if you still got.
 * We have launch new version so please install latest version plugin and check.
 * Please download latest version by below url:
    [https://downloads.wordpress.org/plugin/woo-instagram.1.0.2.zip](https://downloads.wordpress.org/plugin/woo-instagram.1.0.2.zip)
 * Thanks,
    Multidots
 *  Thread Starter [spirconi](https://wordpress.org/support/users/spirconi/)
 * (@spirconi)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/foreach-error-4/#post-7077866)
 * Hi, I think the error is down to the API after all, unless you know it can work
   in sandbox mode?
 * Instagram will not allow my credentials to be changed into a live account based
   on this plugin.
 * The API returns no images in sandbox mode and therefore these is nothing to loop.
   All accounts will change to sandbox if not approved before July (i believe) so
   this is something you may want to take into consideration if that is the reason
   this plugin will not work for me.
 *  Plugin Author [Dotstore](https://wordpress.org/support/users/dots/)
 * (@dots)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/foreach-error-4/#post-7077874)
 * Hello [@spirconi](https://wordpress.org/support/users/spirconi/),
 * Actually, In our plugin there is a no sandbox or live mode. When you create application
   on Instagram then by default it’s sandbox mode then If Instagram permit your 
   access then and then you will able to access images using our plugin in live.
 * Please see this link for more details: [https://www.instagram.com/developer/review/](https://www.instagram.com/developer/review/)
 * Thanks,
    Multidots
 *  Thread Starter [spirconi](https://wordpress.org/support/users/spirconi/)
 * (@spirconi)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/foreach-error-4/#post-7077875)
 * Hi,
 * With the latest version I no longer get the forloop error, but i do get ‘No results
   found’.
 *  Thread Starter [spirconi](https://wordpress.org/support/users/spirconi/)
 * (@spirconi)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/foreach-error-4/#post-7077876)
 * Sorry I just reread, my application to change from Sandbox was denied, and reading
   around it is very difficult and seemingly a lot of people are getting denied.
 * Unless you have a specific way to get approval that I can follow I think that
   this plugin won’t work whilst I cannot change my credentials from sandbox mode.
 *  Plugin Author [Dotstore](https://wordpress.org/support/users/dots/)
 * (@dots)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/foreach-error-4/#post-7077877)
 * Hello [@spirconi](https://wordpress.org/support/users/spirconi/),
 * Actually, It’s not because of plugin. Instagram will approve your request for
   live. Once They will approve it then and then you will able to access all images
   and user our plugin.
 * From our end, If result will not fetch from Instagram then will give “No result
   found” message. So Kindly please contact to Instagram for approve your application.
 * Thanks,
    Multidots
 *  Thread Starter [spirconi](https://wordpress.org/support/users/spirconi/)
 * (@spirconi)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/foreach-error-4/#post-7077878)
 * 1. Which use case best describes your Instagram integration?
 * A: I want to display content from hashtags on my website.
 * This use case is not supported. We do not approve the public_content permission
   for one-off projects such as displaying hashtag based content on your website.
   As alternative solution, you can show your own Instagram content, or find a company
   that offers this type of service (content discover, moderation, and display).
 * That the first option which means I cannot convert to live account!!
 * 1. Which use case best describes your Instagram integration?
 * A: I want to install a third party widget to show Instagram content on my website.
 * You do not need to submit for review for this use case. Some widgets may ask 
   you to register a new client ID, but you should not submit it for review for 
   the widget to work. Your client can remain in sandbox mode and the widget will
   have access to your last 20 media. If you are having issues with the widget, 
   please contact the owner of the widget directly.
 * This won’t allow me to access media from others unfortunately, its also not showing
   my media either.
 * This seems a great plugin and would be a great idea for my site but It look like
   I may not be able to 🙁
 *  Plugin Author [Dotstore](https://wordpress.org/support/users/dots/)
 * (@dots)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/foreach-error-4/#post-7077891)
 * [@spirconi](https://wordpress.org/support/users/spirconi/),
 * Thanks for sharing your concern with us!
 * I read your details above and I understood your concern. Don’t worry about it.
   if possible would you please send your website details and wp-admin credentials
   to [wordpress@multidots.in](https://wordpress.org/support/topic/foreach-error-4/wordpress@multidots.in?output_format=md)
   so that we can more troubleshoot your issue and provide you best solution.
 * We wish our plugins get smoothly running on your websites also as others have
   running.
 * Thanks,
    Multidots

Viewing 10 replies - 1 through 10 (of 10 total)

The topic ‘Foreach Error’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/woo-instagram_34495e.svg)
 * [Instagram Product Photos for WooCommerce](https://wordpress.org/plugins/woo-instagram/)
 * [Support Threads](https://wordpress.org/support/plugin/woo-instagram/)
 * [Active Topics](https://wordpress.org/support/plugin/woo-instagram/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woo-instagram/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woo-instagram/reviews/)

 * 10 replies
 * 2 participants
 * Last reply from: [Dotstore](https://wordpress.org/support/users/dots/)
 * Last activity: [10 years, 3 months ago](https://wordpress.org/support/topic/foreach-error-4/#post-7077891)
 * Status: resolved