PHP notice Object of class stdClass could not be converted to int /usr/home/chrislt/public_html/guernseyresearch.com/survey/application/models/TemplateConfiguration.php(1527) 1515 [':template_name'=>$this->template_name] 1516 ); 1517 } 1518 1519 /** 1520 * Get showpopups value from config or template configuration 1521 */ 1522 public function getshowpopups() 1523 { 1524 $config = (int) App()->getConfig('showpopups'); 1525 if ($config == 2) { 1526 if (isset($this->oOptions->showpopups)) { 1527 $this->showpopups = (int)$this->oOptions->showpopups; 1528 } else { 1529 $this->showpopups = 1; 1530 } 1531 } else { 1532 $this->showpopups = $config; 1533 } 1534 } 1535 1536 /** 1537 * Set each option key value to 'inherit' instead of having only one 'inherit' value for options. 1538 * Keys are fetched from parent xml configuration. 1539 */ Stack Trace #0 – /usr/home/chrislt/public_html/guernseyresearch.com/survey/application/models/TemplateConfig.php(162): TemplateConfiguration->getshowpopups() 157 $this->setBasics($sTemplateName, $iSurveyId, $bUseMagicInherit); 158 $this->setMotherTemplates(); // Recursive mother templates configuration 159 $this->setThisTemplate(); // Set the main config values of this template 160 $this->createTemplatePackage($this); // Create an asset package ready to be loaded 161 $this->removeFiles(); 162 $this->getshowpopups(); 163 164 if (!empty($sTemplateName) && !empty($iSurveyId)) { 165 self::$aPreparedToRender[$sTemplateName][$iSurveyId][$bUseMagicInherit] = $this; 166 } 167 return $this; #1 – /usr/home/chrislt/public_html/guernseyresearch.com/survey/application/models/TemplateConfiguration.php(1158): TemplateConfig->prepareTemplateRendering("vanilla", null) 1153 { 1154 if (!empty($this->template->extends)) { 1155 $sMotherTemplateName = $this->template->extends; 1156 $instance = TemplateConfiguration::getInstanceFromTemplateName($sMotherTemplateName); 1157 $instance->template->checkTemplate(); 1158 $this->oMotherTemplate = $instance->prepareTemplateRendering($sMotherTemplateName, null); 1159 } 1160 } 1161 1162 /** 1163 * @todo document me #2 – /usr/home/chrislt/public_html/guernseyresearch.com/survey/application/models/TemplateConfig.php(158): TemplateConfiguration->setMotherTemplates() 153 self::$aPreparedToRender[$sTemplateName][$iSurveyId][$bUseMagicInherit] = array(); 154 } 155 } 156 157 $this->setBasics($sTemplateName, $iSurveyId, $bUseMagicInherit); 158 $this->setMotherTemplates(); // Recursive mother templates configuration 159 $this->setThisTemplate(); // Set the main config values of this template 160 $this->createTemplatePackage($this); // Create an asset package ready to be loaded 161 $this->removeFiles(); 162 $this->getshowpopups(); 163 #3 + /usr/home/chrislt/public_html/guernseyresearch.com/survey/application/models/TemplateConfiguration.php(824): TemplateConfig->prepareTemplateRendering("4GR") #4 + /usr/home/chrislt/public_html/guernseyresearch.com/survey/framework/base/CComponent.php(111): TemplateConfiguration->getHasOptionPage() #5 + /usr/home/chrislt/public_html/guernseyresearch.com/survey/framework/db/ar/CActiveRecord.php(145): CComponent->__get("hasOptionPage") #6 + /usr/home/chrislt/public_html/guernseyresearch.com/survey/application/models/TemplateConfiguration.php(1479): CActiveRecord->__get("hasOptionPage") #7 + /usr/home/chrislt/public_html/guernseyresearch.com/survey/application/models/TemplateConfiguration.php(735): TemplateConfiguration->__get("hasOptionPage") #8 + /usr/home/chrislt/public_html/guernseyresearch.com/survey/framework/base/CComponent.php(111): TemplateConfiguration->getButtons() #9 + /usr/home/chrislt/public_html/guernseyresearch.com/survey/framework/db/ar/CActiveRecord.php(145): CComponent->__get("buttons") #10 + /usr/home/chrislt/public_html/guernseyresearch.com/survey/application/models/TemplateConfiguration.php(1479): CActiveRecord->__get("buttons") #11 /usr/home/chrislt/public_html/guernseyresearch.com/survey/framework/base/CComponent.php(614) : eval()'d code(1): TemplateConfiguration->__get("buttons") #12 + /usr/home/chrislt/public_html/guernseyresearch.com/survey/framework/base/CComponent.php(614): eval() #13 + /usr/home/chrislt/public_html/guernseyresearch.com/survey/framework/zii/widgets/grid/CDataColumn.php(142): CComponent->evaluateExpression("$data->buttons", array("data" => TemplateConfiguration, "row" => 0)) #14 + /usr/home/chrislt/public_html/guernseyresearch.com/survey/framework/zii/widgets/grid/CGridColumn.php(231): CDataColumn->getDataCellContent(0) #15 + /usr/home/chrislt/public_html/guernseyresearch.com/survey/framework/zii/widgets/grid/CGridColumn.php(154): CGridColumn->renderDataCellContent(0, TemplateConfiguration) #16 + /usr/home/chrislt/public_html/guernseyresearch.com/survey/framework/zii/widgets/grid/CGridView.php(639): CGridColumn->renderDataCell(0) #17 + /usr/home/chrislt/public_html/guernseyresearch.com/survey/framework/zii/widgets/grid/CGridView.php(623): CGridView->renderDataCell(TbDataColumn, 0) #18 + /usr/home/chrislt/public_html/guernseyresearch.com/survey/framework/zii/widgets/grid/CGridView.php(579): CGridView->renderTableRow(0) #19 + /usr/home/chrislt/public_html/guernseyresearch.com/survey/framework/zii/widgets/grid/CGridView.php(489): CGridView->renderTableBody() #20 + /usr/home/chrislt/public_html/guernseyresearch.com/survey/framework/zii/widgets/CBaseListView.php(181): CGridView->renderItems() #21 unknown(0): CBaseListView->renderSection(array("{items}", "items")) #22 + /usr/home/chrislt/public_html/guernseyresearch.com/survey/framework/zii/widgets/CBaseListView.php(164): preg_replace_callback("/{(\w+)}/", array(TbGridView, "renderSection"), "{items}