XHanch Studio Log in | Register | Cart

Forum

Notifications
Clear all

Get a "Warning: Invalid argument supplied for foreach()"

1 Posts
1 Users
0 Reactions
4,403 Views
XHanch
(@xhanch-alt)
Posts: 2105
Member Admin
Topic starter
 

Some people may see this warning on their website

Warning: Invalid argument supplied for foreach() in /home6/personz5/public_html/xxxx/wp-content/plugins/xhanch-my-twitter/theme/default/widget.php on line 40

To know what is exactly going on, you may add ?xmt_debug_show to your URL.
For example, if your website URL is http://xhanch.com , then you should open http://xhanch.com?xmt_debug_show via your internet browser

This issue is mostly caused by any of these:

  • Your server cannot connect to Twitter API
  • Your server have made 150 requests to Twitter API per hour. For this case, everything will be back to normal again soon. To prevent this, make sure you turn on the Enable Cache and set the Cache Expiry (in minutes) at least 1 minute
 
Posted : 23/03/2011 4:49 am
Share:

× Close Menu