Skip to content

Instantly share code, notes, and snippets.

@cole007
Last active September 8, 2017 08:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cole007/a1fa47d90e4b3e125b608ecdf4944681 to your computer and use it in GitHub Desktop.
Save cole007/a1fa47d90e4b3e125b608ecdf4944681 to your computer and use it in GitHub Desktop.
Invalid argument supplied for foreach() `/PATH/deploy/craft/app/fieldtypes/BaseOptionsFieldType.php(46)`
#0 /PATH/deploy/craft/app/etc/web/WebApp.php(687): CApplication->handleError(2, "Invalid argument supplied for foreach()", "/PATH/deploy/craft/app/fieldtypes/Bas...", 46)
#1 /PATH/deploy/craft/app/fieldtypes/BaseOptionsFieldType.php(46): Craft\WebApp->handleError(2, "Invalid argument supplied for foreach()", "/PATH/deploy/craft/app/fieldtypes/Bas...", 46, ...)
#2 /PATH/deploy/craft/app/models/FieldModel.php(46): Craft\BaseOptionsFieldType->defineContentAttribute()
#3 /PATH/deploy/craft/app/elementtypes/BaseElementType.php(469): Craft\FieldModel->hasContentColumn()
#4 /PATH/deploy/craft/app/services/ElementsService.php(667): Craft\BaseElementType->getContentFieldColumnsForElementsQuery(Craft\ElementCriteriaModel)
#5 /PATH/deploy/craft/app/services/ElementsService.php(206): Craft\ElementsService->buildElementsQuery(Craft\ElementCriteriaModel, "content", null, false)
#6 /PATH/deploy/craft/app/models/ElementCriteriaModel.php(277): Craft\ElementsService->findElements("Craft\ElementCriteriaModel")
#7 /PATH/deploy/craft/app/services/GlobalsService.php(97): Craft\ElementCriteriaModel->find()
#8 /PATH/deploy/craft/app/services/GlobalsService.php(132): Craft\GlobalsService->getAllSets()
#9 /PATH/deploy/craft/app/variables/CpVariable.php(33): Craft\GlobalsService->getEditableSets()
#10 /PATH/deploy/craft/app/vendor/twig/twig/lib/Twig/Template.php(686): Craft\CpVariable->nav()
#11	unknown(0): Craft\DashboardController->actionIndex(array("matches" => array("dashboard"), "widgets" => array()))
#12 /PATH/deploy/craft/app/framework/web/actions/CAction.php(109): ReflectionMethod->invokeArgs(Craft\DashboardController, array(array("matches" => array("dashboard"))))
#13 /PATH/deploy/craft/app/framework/web/actions/CInlineAction.php(47): CAction->runWithParamsInternal(Craft\DashboardController, ReflectionMethod, array("p" => "admin/dashboard", "variables" => array("matches" => array("dashboard")), "template" => "dashboard"))
#14 /PATH/deploy/craft/app/framework/web/CController.php(308): CInlineAction->runWithParams(array("p" => "admin/dashboard", "variables" => array("matches" => array("dashboard")), "template" => "dashboard"))
#15 /PATH/deploy/craft/app/framework/web/CController.php(286): CController->runAction(CInlineAction)
#16 /PATH/deploy/craft/app/framework/web/CController.php(265): CController->runActionWithFilters(CInlineAction, array())
#17 /PATH/deploy/craft/app/framework/web/CWebApplication.php(282): CController->run("index")
#18 /PATH/deploy/craft/app/framework/web/CWebApplication.php(141): CWebApplication->runController("dashboard/index")
#19 /PATH/deploy/craft/app/etc/web/WebApp.php(290): CWebApplication->processRequest()
#20 /PATH/deploy/craft/app/framework/base/CApplication.php(185): Craft\WebApp->processRequest()
#21 /PATH/deploy/craft/app/index.php(62): CApplication->run()
#22 /PATH/deploy/public/index.php(93): require_once("/Applications/__MAMP/htdocs/prep/deploy/craft/app/index.php")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment