PHP notice Object of class stdClass could not be converted to int /var/www/html/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 – /var/www/html/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 – /var/www/html/application/models/TemplateConfiguration.php(824): TemplateConfig->prepareTemplateRendering("extends_bootswatch") 819 * @throws Exception 820 */ 821 public function getHasOptionPage() 822 { 823 $filteredName = Template::templateNameFilter($this->template->name); 824 $oRTemplate = $this->prepareTemplateRendering($filteredName); 825 826 $sOptionFile = 'options'.DIRECTORY_SEPARATOR.'options.twig'; 827 while (!file_exists($oRTemplate->path.$sOptionFile)) { 828 $oMotherTemplate = $oRTemplate->oMotherTemplate; 829 if (!($oMotherTemplate instanceof TemplateConfiguration)) { #2 + /var/www/html/framework/base/CComponent.php(111): TemplateConfiguration->getHasOptionPage() #3 + /var/www/html/framework/db/ar/CActiveRecord.php(145): CComponent->__get("hasOptionPage") #4 – /var/www/html/application/models/TemplateConfiguration.php(1479): CActiveRecord->__get("hasOptionPage") 1474 // NOTE: this is object recursive (if parent configuration field is set to inherit, 1475 // then it will lead to this method again.) 1476 $sAttribute = $this->getParentConfiguration()->$name; 1477 } 1478 } else { 1479 $sAttribute = parent::__get($name); 1480 } 1481 1482 return $sAttribute; 1483 } 1484 #5 + /var/www/html/application/models/TemplateConfiguration.php(735): TemplateConfiguration->__get("hasOptionPage") #6 + /var/www/html/framework/base/CComponent.php(111): TemplateConfiguration->getButtons() #7 + /var/www/html/framework/db/ar/CActiveRecord.php(145): CComponent->__get("buttons") #8 + /var/www/html/application/models/TemplateConfiguration.php(1479): CActiveRecord->__get("buttons") #9 /var/www/html/framework/base/CComponent.php(614) : eval()'d code(1): TemplateConfiguration->__get("buttons") #10 + /var/www/html/framework/base/CComponent.php(614): eval() #11 + /var/www/html/framework/zii/widgets/grid/CDataColumn.php(142): CComponent->evaluateExpression("$data->buttons", array("data" => TemplateConfiguration, "row" => 1)) #12 + /var/www/html/framework/zii/widgets/grid/CGridColumn.php(231): CDataColumn->getDataCellContent(1) #13 + /var/www/html/framework/zii/widgets/grid/CGridColumn.php(154): CGridColumn->renderDataCellContent(1, TemplateConfiguration) #14 + /var/www/html/framework/zii/widgets/grid/CGridView.php(639): CGridColumn->renderDataCell(1) #15 + /var/www/html/framework/zii/widgets/grid/CGridView.php(623): CGridView->renderDataCell(TbDataColumn, 1) #16 + /var/www/html/framework/zii/widgets/grid/CGridView.php(579): CGridView->renderTableRow(1) #17 + /var/www/html/framework/zii/widgets/grid/CGridView.php(489): CGridView->renderTableBody() #18 + /var/www/html/framework/zii/widgets/CBaseListView.php(181): CGridView->renderItems() #19 unknown(0): CBaseListView->renderSection(array("{items}", "items")) #20 + /var/www/html/framework/zii/widgets/CBaseListView.php(164): preg_replace_callback("/{(\w+)}/", array(TbGridView, "renderSection"), "{items}
{pager}
<...") #21 + /var/www/html/framework/zii/widgets/CBaseListView.php(149): CBaseListView->renderContent() #22 + /var/www/html/framework/web/CBaseController.php(182): CBaseListView->run() #23 + /var/www/html/application/views/admin/themeoptions/surveythemelist.php(88): CBaseController->widget("bootstrap.widgets.TbGridView", array("dataProvider" => CActiveDataProvider, "filter" => TemplateConfiguration, "id" => "themeoptions-grid", "summaryText" => "Displaying {start}-{end} of {count} result(s).
renderInternal("/var/www/html/application/views/admin/themeoptions/surveythemeli...", array("oSurveyTheme" => TemplateConfiguration, "pageSize" => 10), true) #26 + /var/www/html/framework/web/CController.php(872): CBaseController->renderFile("/var/www/html/application/views/admin/themeoptions/surveythemeli...", array("oSurveyTheme" => TemplateConfiguration, "pageSize" => 10), true) #27 + /var/www/html/application/controllers/AdminController.php(240): CController->renderPartial("themeoptions/surveythemelist", array("oSurveyTheme" => TemplateConfiguration, "pageSize" => 10), false, false) #28 + /var/www/html/application/views/admin/themeoptions/index.php(39): AdminController->renderPartial("themeoptions/surveythemelist", array("oSurveyTheme" => TemplateConfiguration, "pageSize" => 10)) #29 + /var/www/html/framework/web/CBaseController.php(126): require("/var/www/html/application/views/admin/themeoptions/index.php") #30 + /var/www/html/framework/web/CBaseController.php(95): CBaseController->renderInternal("/var/www/html/application/views/admin/themeoptions/index.php", array("oAdminTheme" => AdminTheme, "oQuestionTheme" => QuestionTheme, "oSurveyTheme" => TemplateConfiguration, "canImport" => true, ...), true) #31 + /var/www/html/framework/web/CController.php(872): CBaseController->renderFile("/var/www/html/application/views/admin/themeoptions/index.php", array("oAdminTheme" => AdminTheme, "oQuestionTheme" => QuestionTheme, "oSurveyTheme" => TemplateConfiguration, "canImport" => true, ...), true) #32 + /var/www/html/application/controllers/AdminController.php(240): CController->renderPartial("/admin/themeoptions/index", array("oAdminTheme" => AdminTheme, "oQuestionTheme" => QuestionTheme, "oSurveyTheme" => TemplateConfiguration, "canImport" => true, ...), true, false) #33 + /var/www/html/application/core/Survey_Common_Action.php(274): AdminController->renderPartial("/admin/themeoptions/index", array("oAdminTheme" => AdminTheme, "oQuestionTheme" => QuestionTheme, "oSurveyTheme" => TemplateConfiguration, "canImport" => true, ...), true) #34 + /var/www/html/application/core/Survey_Common_Action.php(357): Survey_Common_Action->renderCentralContents("themeoptions", array("index"), array("oAdminTheme" => AdminTheme, "oQuestionTheme" => QuestionTheme, "oSurveyTheme" => TemplateConfiguration, "canImport" => true, ...)) #35 + /var/www/html/application/controllers/admin/themeoptions.php(425): Survey_Common_Action->_renderWrappedTemplate("themeoptions", "index", array("oAdminTheme" => AdminTheme, "oQuestionTheme" => QuestionTheme, "oSurveyTheme" => TemplateConfiguration, "canImport" => true, ...)) #36 unknown(0): themeoptions->index() #37 + /var/www/html/framework/web/actions/CAction.php(109): ReflectionMethod->invokeArgs(themeoptions, array()) #38 + /var/www/html/application/core/Survey_Common_Action.php(86): CAction->runWithParamsInternal(themeoptions, ReflectionMethod, array()) #39 + /var/www/html/framework/web/CController.php(308): Survey_Common_Action->runWithParams(array()) #40 + /var/www/html/framework/web/CController.php(286): CController->runAction(themeoptions) #41 + /var/www/html/framework/web/CController.php(265): CController->runActionWithFilters(themeoptions, array()) #42 + /var/www/html/application/controllers/AdminController.php(180): CController->run("themeoptions") #43 + /var/www/html/framework/web/CWebApplication.php(282): AdminController->run("themeoptions") #44 + /var/www/html/framework/web/CWebApplication.php(141): CWebApplication->runController("admin/themeoptions") #45 + /var/www/html/framework/base/CApplication.php(185): CWebApplication->processRequest() #46 + /var/www/html/index.php(182): CApplication->run() 2020-05-08 13:53:20 Apache/2.4.38 (Debian) Yii Framework/1.1.22-dev