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/Template.php(505): TemplateConfig->prepareTemplateRendering("extends_fruity", null) 500 return self::getTemplateConfiguration($sTemplateName, $iSurveyId, $iSurveyGroupId, $bForceXML, true); 501 } 502 503 if ( empty(self::$instance) || ! self::isCorrectInstance($sTemplateName) ) { 504 self::$instance = self::getTemplateConfiguration($sTemplateName, $iSurveyId, $iSurveyGroupId, $bForceXML); 505 self::$instance->prepareTemplateRendering($sTemplateName, $iSurveyId); 506 } 507 508 return self::getLastInstance(false); 509 } 510 #2 – /var/www/html/application/controllers/admin/themeoptions.php(591): Template::getInstance("extends_fruity", null, null) 586 * @return void 587 */ 588 private function updateCommon(TemplateConfiguration $model, $sid = null, $gsid = null) 589 { 590 /* init the template to current one if option use some twig function (imageSrc for example) mantis #14363 */ 591 $oTemplate = Template::model()->getInstance($model->template_name, $sid, $gsid); 592 593 $oModelWithInheritReplacement = TemplateConfiguration::model()->findByPk($model->id); 594 $aOptionAttributes = TemplateManifest::getOptionAttributes($oTemplate->path); 595 $aTemplateConfiguration = $oModelWithInheritReplacement->getOptionPageAttributes(); 596 App()->clientScript->registerPackage('bootstrap-switch', LSYii_ClientScript::POS_BEGIN); #3 + /var/www/html/application/controllers/admin/themeoptions.php(245): themeoptions->updateCommon(TemplateConfiguration) #4 unknown(0): themeoptions->update("6") #5 + /var/www/html/framework/web/actions/CAction.php(109): ReflectionMethod->invokeArgs(themeoptions, array("6")) #6 + /var/www/html/application/core/Survey_Common_Action.php(86): CAction->runWithParamsInternal(themeoptions, ReflectionMethod, array("id" => "6", "sa" => "update", "iId" => "6")) #7 + /var/www/html/framework/web/CController.php(308): Survey_Common_Action->runWithParams(array("id" => "6", "sa" => "update", "iId" => "6")) #8 + /var/www/html/framework/web/CController.php(286): CController->runAction(themeoptions) #9 + /var/www/html/framework/web/CController.php(265): CController->runActionWithFilters(themeoptions, array()) #10 + /var/www/html/application/controllers/AdminController.php(180): CController->run("themeoptions") #11 + /var/www/html/framework/web/CWebApplication.php(282): AdminController->run("themeoptions") #12 + /var/www/html/framework/web/CWebApplication.php(141): CWebApplication->runController("admin/themeoptions/sa/update") #13 + /var/www/html/framework/base/CApplication.php(185): CWebApplication->processRequest() #14 + /var/www/html/index.php(182): CApplication->run() 2020-05-08 14:02:26 Apache/2.4.38 (Debian) Yii Framework/1.1.22-dev