PHP warning

Invalid argument supplied for foreach()

/home/www/34ab61b960fc324dd606bf69bfc25b8b/web/survey/application/helpers/expressions/em_manager_helper.php(5951)

5939 
5940             // flatten relevance array, keeping proper order
5941 
5942             $pageRelevanceInfo=array();
5943             $qidList = array(); // list of questions used in relevance and tailoring
5944             $gseqList = array(); // list of gseqs on this page
5945             $gseq_qidList = array(); // list of qids using relevance/tailoring within each group
5946 
5947             if (is_array($LEM->pageRelevanceInfo))
5948             {
5949                 foreach($LEM->pageRelevanceInfo as $prel)
5950                 {
5951                     foreach($prel as $rel)
5952                     {
5953                         $pageRelevanceInfo[] = $rel;
5954                     }
5955                 }
5956             }
5957 
5958             $valEqns = array();
5959             $relEqns = array();
5960             $relChangeVars = array();
5961 
5962             $dynamicQinG = array(); // array of questions, per group, that might affect group-level visibility in all-in-one mode
5963             $GalwaysRelevant = array(); // checks whether a group is always relevant (e.g. has at least one question that is always shown)

Stack Trace

#0
+
–
 /home/www/34ab61b960fc324dd606bf69bfc25b8b/web/survey/application/helpers/SurveyRuntimeHelper.php(1013): LimeExpressionManager::GetRelevanceAndTailoringJavaScript()
1008             echo templatereplace(file_get_contents("$thistpl/endgroup.pstpl"), array(), $redata);
1009             echo "\n\n</div>\n";
1010         }
1011 
1012         LimeExpressionManager::FinishProcessingGroup($LEMskipReprocessing);
1013         echo LimeExpressionManager::GetRelevanceAndTailoringJavaScript();
1014         LimeExpressionManager::FinishProcessingPage();
1015 
1016         if (!$previewgrp && !$previewquestion)
1017         {
1018             $navigator = surveymover(); //This gets globalised in the templatereplace function
#1
+
–
 /home/www/34ab61b960fc324dd606bf69bfc25b8b/web/survey/application/controllers/survey/index.php(675): SurveyRuntimeHelper->run("377896", array("surveyid" => "377896", "thistpl" => "/home/www/34ab61b960fc324dd606bf69bfc25b8b/web/survey/upload/tem...", "totalquestions" => null, "thissurvey" => array("surveyls_survey_id" => "377896", "surveyls_language" => "fr", "surveyls_title" => "Inscription", "surveyls_description" => "Inscription au panel", ...), ...))
670         //Send local variables to the appropriate survey type
671         unset($redata);
672         $redata = compact(array_keys(get_defined_vars()));
673         Yii::import('application.helpers.SurveyRuntimeHelper');
674         $tmp = new SurveyRuntimeHelper();
675         $tmp->run($surveyid,$redata);
676 
677         if (isset($_POST['saveall']) || isset($flashmessage))
678         {
679             echo "<script type='text/javascript'> $(document).ready( function() { alert('".$clang->gT("Your responses were successfully saved.","js")."');}) </script>";
680         }
#2
+
–
 /home/www/34ab61b960fc324dd606bf69bfc25b8b/web/survey/application/controllers/survey/index.php(18): index->action()
13 
14 class index extends CAction {
15 
16     public function run()
17     {
18         $this->action();
19     }
20 
21     function action()
22     {
23         global $surveyid, $thistpl, $totalquestions;
2012-07-06 15:24:45 Apache Yii Framework/1.1.10