PHP notice

Object of class stdClass could not be converted to int

/mnt/data/shnoulle/nginx/www/master/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
+
 /mnt/data/shnoulle/nginx/www/master/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
+
 /mnt/data/shnoulle/nginx/www/master/application/models/Template.php(505): TemplateConfig->prepareTemplateRendering("copie2_vanilla", 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
+
 /mnt/data/shnoulle/nginx/www/master/application/controllers/admin/themes.php(1202): Template::getInstance("copie2_vanilla", null, null, false)
1197 
1198         $thissurvey['include_content'] = $sContentFile;
1199 
1200 
1201         // new TemplateConfiguration model created so preview can read theme options from DB
1202         $oTemplateForPreview =  Template::getInstance($templatename, null, null, false);
1203 
1204         try {
1205             $myoutput = Yii::app()->twigRenderer->renderTemplateForTemplateEditor(
1206                 $sLayoutFile,
1207                 array(
2020-05-06 06:44:21 nginx/1.18.0 Yii Framework/1.1.22-dev