Title: Invalid argument error
Last modified: August 20, 2016

---

# Invalid argument error

 *  Resolved [lunamalena](https://wordpress.org/support/users/lunamalena/)
 * (@lunamalena)
 * [13 years, 7 months ago](https://wordpress.org/support/topic/invalid-argument-error-3/)
 * I’m having trouble including this syntax in a page:
    [etsy-include=lunamalena;
   11494118]
 * It refers to a valid Etsy category, as seen here:
    [http://www.etsy.com/shop/lunamalena?section_id=11494118](http://www.etsy.com/shop/lunamalena?section_id=11494118)
 * My API key is valid, but when the page renders I get the following error:
    Warning:
   Invalid argument supplied for foreach() in /home/content/j/m/s/jmschilling/html/
   lunamalena/wp-content/plugins/etsy-shop/etsy-shop.php on line 96
 * The error can be seen here:
    [http://jessicaschilling.com/lunamalena/accessories/](http://jessicaschilling.com/lunamalena/accessories/)
 * Any light you might be able to shed on the situation would be greatly appreciated!
 * [http://wordpress.org/extend/plugins/etsy-shop/](http://wordpress.org/extend/plugins/etsy-shop/)

Viewing 15 replies - 1 through 15 (of 32 total)

1 [2](https://wordpress.org/support/topic/invalid-argument-error-3/page/2/?output_format=md)
[3](https://wordpress.org/support/topic/invalid-argument-error-3/page/3/?output_format=md)
[→](https://wordpress.org/support/topic/invalid-argument-error-3/page/2/?output_format=md)

 *  Plugin Author [fsheedy](https://wordpress.org/support/users/fsheedy/)
 * (@fsheedy)
 * [13 years, 7 months ago](https://wordpress.org/support/topic/invalid-argument-error-3/#post-3177087)
 * I get
 * > Etsy Shop: API reponse should be HTTP 200
 * Investigating now why…
 *  Plugin Author [fsheedy](https://wordpress.org/support/users/fsheedy/)
 * (@fsheedy)
 * [13 years, 7 months ago](https://wordpress.org/support/topic/invalid-argument-error-3/#post-3177090)
 * It’s ok now from my side, wich version of WordPress you are using?
 *  Plugin Author [fsheedy](https://wordpress.org/support/users/fsheedy/)
 * (@fsheedy)
 * [13 years, 7 months ago](https://wordpress.org/support/topic/invalid-argument-error-3/#post-3177093)
 * Ok, you are using 3.4.2…
 *  Thread Starter [lunamalena](https://wordpress.org/support/users/lunamalena/)
 * (@lunamalena)
 * [13 years, 7 months ago](https://wordpress.org/support/topic/invalid-argument-error-3/#post-3177095)
 * Thanks for checking this out! I’m on 3.4.2. Does that help at all?
 *  Plugin Author [fsheedy](https://wordpress.org/support/users/fsheedy/)
 * (@fsheedy)
 * [13 years, 7 months ago](https://wordpress.org/support/topic/invalid-argument-error-3/#post-3177103)
 * Could you please update to Etsy Shop version **0.9.1** and enable _Debug Mode_
   in the **Etsy Shop Options page**.
 * Results will be on [http://jessicaschilling.com/lunamalena/accessories/](http://jessicaschilling.com/lunamalena/accessories/)
 *  Thread Starter [lunamalena](https://wordpress.org/support/users/lunamalena/)
 * (@lunamalena)
 * [13 years, 7 months ago](https://wordpress.org/support/topic/invalid-argument-error-3/#post-3177104)
 * Done and done. Thank you!
 *  Plugin Author [fsheedy](https://wordpress.org/support/users/fsheedy/)
 * (@fsheedy)
 * [13 years, 7 months ago](https://wordpress.org/support/topic/invalid-argument-error-3/#post-3177106)
 * Ok, forget to tell to flush the **Etsy Cache files**, located in
 * > /wp-content/plugins/etsy-shop/tmp/
 * Should give result now!
 *  Thread Starter [lunamalena](https://wordpress.org/support/users/lunamalena/)
 * (@lunamalena)
 * [13 years, 7 months ago](https://wordpress.org/support/topic/invalid-argument-error-3/#post-3177107)
 * Thanks! I deleted the cache files, and took the plugin out of debug mode, but
   unfortunately I have the same error. I’m sorry for the trouble!
 *  Plugin Author [fsheedy](https://wordpress.org/support/users/fsheedy/)
 * (@fsheedy)
 * [13 years, 7 months ago](https://wordpress.org/support/topic/invalid-argument-error-3/#post-3177108)
 * Flush the cache, but **keep** in Etsy Debug Mode!
 *  Thread Starter [lunamalena](https://wordpress.org/support/users/lunamalena/)
 * (@lunamalena)
 * [13 years, 7 months ago](https://wordpress.org/support/topic/invalid-argument-error-3/#post-3177109)
 * Sorry! Cache files deleted and back in debug mode.
 *  Plugin Author [fsheedy](https://wordpress.org/support/users/fsheedy/)
 * (@fsheedy)
 * [13 years, 7 months ago](https://wordpress.org/support/topic/invalid-argument-error-3/#post-3177110)
 * Ok, published a new version 0.9.2, **Debug mode is more in verbose mode**.
 * Could you please: update to last version and stay in debug mode?
 *  Thread Starter [lunamalena](https://wordpress.org/support/users/lunamalena/)
 * (@lunamalena)
 * [13 years, 7 months ago](https://wordpress.org/support/topic/invalid-argument-error-3/#post-3177111)
 * Updated and in debug mode. Thanks!
 *  Plugin Author [fsheedy](https://wordpress.org/support/users/fsheedy/)
 * (@fsheedy)
 * [13 years, 7 months ago](https://wordpress.org/support/topic/invalid-argument-error-3/#post-3177112)
 * I think I found the problem, you have **a space** before you Etsy API Key.
 * To fix, go to **Etsy Options Page**, and remove the firt caracter (space) of 
   the API Key.
 * Should work, I hope!
 *  Thread Starter [lunamalena](https://wordpress.org/support/users/lunamalena/)
 * (@lunamalena)
 * [13 years, 7 months ago](https://wordpress.org/support/topic/invalid-argument-error-3/#post-3177113)
 * Sadly no – removed the space, pulled out of maintenance mode and error still 
   there. 🙁 Apologies for the space – it said the API key was valid so I didn’t
   double-check. Could there be another issue with the API key?
 *  Plugin Author [fsheedy](https://wordpress.org/support/users/fsheedy/)
 * (@fsheedy)
 * [13 years, 7 months ago](https://wordpress.org/support/topic/invalid-argument-error-3/#post-3177114)
 * Don’t forget to flush cache file (important!)

Viewing 15 replies - 1 through 15 (of 32 total)

1 [2](https://wordpress.org/support/topic/invalid-argument-error-3/page/2/?output_format=md)
[3](https://wordpress.org/support/topic/invalid-argument-error-3/page/3/?output_format=md)
[→](https://wordpress.org/support/topic/invalid-argument-error-3/page/2/?output_format=md)

The topic ‘Invalid argument error’ is closed to new replies.

 * ![](https://ps.w.org/etsy-shop/assets/icon-256x256.png?rev=1089359)
 * [Etsy Shop](https://wordpress.org/plugins/etsy-shop/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/etsy-shop/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/etsy-shop/)
 * [Active Topics](https://wordpress.org/support/plugin/etsy-shop/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/etsy-shop/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/etsy-shop/reviews/)

 * 32 replies
 * 4 participants
 * Last reply from: [fsheedy](https://wordpress.org/support/users/fsheedy/)
 * Last activity: [13 years, 5 months ago](https://wordpress.org/support/topic/invalid-argument-error-3/page/3/#post-3177279)
 * Status: resolved