Why do I get the following errors immediatly after clearing the cache:

Warning: Invalid argument supplied for foreach() in styles_default_presets() (line 283 of /Users/hamad/Workspaces/jobs/steria/cqc/httpdocs/sites/all/modules/styles/styles.module).

But if I refresh the page again it doesn't display the error.

Comments

harcher’s picture

This started happening after manually truncating all the cache tables (needed to make the sql dump smaller for migration to server).