`Invalid argument supplied for foreach()` error We've made a local copy of a site that is working fine in a staging environment but locally is getting the following error: 

`Invalid argument supplied for foreach()`


Seemingly coming from craft/app/fieldtypes/BaseOptionsFieldtype.

Does anybody have any thoughts on what is causing this and how to resolve? Is happening both in the front-end and the admin area.
Looking at the code where your errors is occurring (line 46 of craft/app/fieldtypes/BaseOptionsFieldType.php), it looks like you have either a Checkboxes or Multi-Select field whose options setting is somehow set, but not set to an array. Not sure how it could have gotten into that state, but that’s the only thing that would explain your error.

Try re-saving any Checkboxes/Multi-Select fields (or if you have any 3rd party field types installed that might be extending Craft’s BaseOptionsFieldType, that would be even more likely the culprit), ensuring they have at least one option set.