Warning: Invalid argument supplied for foreach() in /blah/core/fn.init.php on line 593

So all of a sudden I’m getting this error at the top of my store and admin area.



Warning: Invalid argument supplied for foreach() in /blah/core/fn.init.php on line 593



Looks like it applies to this part of the code:


<br />
<br />
    if (defined('DEVELOPMENT')) {<br />
        foreach (Registry::get('config.dev_skins') as $k => $v) {<br />
            Registry::set('settings.skin_name_' . $k, $v);<br />
        }<br />

```<br />
<br />
How can I fix this problem? I don't know where the error came from or what it means.<br />
<br />
Also, when I go to the skins section in admin, it tells me:<br />
<br />
Cart is in development mode now and skin selector is unavailable<br />
<br />
But my cart is not in development mode. I even put it in development and back to live to see if that would make a difference.

Okay, the problem was that CS Cart people put a define('Development') instruction in my config.local.php file, and there were no defined skins so it was killing my cart.



All due credit and respect go to tbirnseth for his help in figuring that out.