CDbException

CDbCommand failed to execute the SQL statement: SQLSTATE[42000]: [Microsoft][ODBC Driver 11 for SQL Server][SQL Server]The multi-part identifier "t.template_name" could not be bound.. The SQL statement executed was: SELECT * FROM (SELECT TOP 10 * FROM (SELECT TOP 20 [t].[id], [t].[template_name], [t].[sid], [t].[gsid], [t].[uid], [t].[files_css], [t].[files_js], [t].[files_print_css], [t].[options], [t].[cssframework_name], [t].[cssframework_css], [t].[cssframework_js], [t].[packages_to_load], [t].[packages_ltr], [t].[packages_rtl] FROM [dbo].[lime_template_configuration] [t] INNER JOIN lime_templates AS template ON t.template_name = template.name WHERE ((t.sid IS NULL) AND (t.gsid IS NULL)) AND (template.name IS NOT NULL) ORDER BY t.template_name) as [__inner__] ORDER BY t.template_name DESC) as [__outer__] ORDER BY t.template_name ASC

E:\WebSite\limesurvey\framework\db\CDbCommand.php(543)

531         {
532             if($this->_connection->enableProfiling)
533                 Yii::endProfile('system.db.CDbCommand.query('.$this->getText().$par.')','system.db.CDbCommand.query');
534 
535             $errorInfo=$e instanceof PDOException ? $e->errorInfo : null;
536             $message=$e->getMessage();
537             Yii::log(Yii::t('yii','CDbCommand::{method}() failed: {error}. The SQL statement executed was: {sql}.',
538                 array('{method}'=>$method, '{error}'=>$message, '{sql}'=>$this->getText().$par)),CLogger::LEVEL_ERROR,'system.db.CDbCommand');
539 
540             if(YII_DEBUG)
541                 $message.='. The SQL statement executed was: '.$this->getText().$par;
542 
543             throw new CDbException(Yii::t('yii','CDbCommand failed to execute the SQL statement: {error}',
544                 array('{error}'=>$message)),(int)$e->getCode(),$errorInfo);
545         }
546     }
547 
548     /**
549      * Builds a SQL SELECT statement from the given query specification.
550      * @param array $query the query specification in name-value pairs. The following
551      * query options are supported: {@link select}, {@link distinct}, {@link from},
552      * {@link where}, {@link join}, {@link group}, {@link having}, {@link order},
553      * {@link limit}, {@link offset} and {@link union}.
554      * @throws CDbException if "from" key is not present in given query parameter
555      * @return string the SQL statement

Stack Trace

#7
+
 E:\WebSite\limesurvey\application\extensions\bootstrap\widgets\TbGridView.php(44): CGridView->init()
39     /**
40      * Initializes the widget.
41      */
42     public function init()
43     {
44         parent::init();
45         $classes = array('table');
46         if (isset($this->type) && !empty($this->type)) {
47             if (is_string($this->type)) {
48                 $this->type = explode(' ', $this->type);
49             }
#10
+
 E:\WebSite\limesurvey\application\views\admin\themeoptions\surveythemelist.php(6): CBaseController->widget("bootstrap.widgets.TbGridView", array("dataProvider" => CActiveDataProvider, "filter" => TemplateConfiguration, "id" => "themeoptions-grid", "ajaxUpdate" => true, ...))
01 
02 <div class="row">
03     <div class="col-sm-12 content-right">
04         
05         <?php $this->widget('bootstrap.widgets.TbGridView', array(
06             'dataProvider' => $oSurveyTheme->searchGrid(),
07             'filter'        => $oSurveyTheme,
08             'id'            => 'themeoptions-grid',
09             'ajaxUpdate'    => true,
10             'ajaxType'      => 'POST',
11             'summaryText'=>gT('Displaying {start}-{end} of {count} result(s).').' '. sprintf(gT('%s rows per page'),
#14
+
 E:\WebSite\limesurvey\application\views\admin\themeoptions\index.php(36): CController->renderPartial("themeoptions/surveythemelist", array("oSurveyTheme" => TemplateConfiguration, "pageSize" => 10))
31             <div class="col-lg-12 list-surveys">
32 
33                 <?php echo '<h3>'.gT('Installed survey themes:').'</h3>'; ?>
34 
35                 <?php $this->renderPartial('themeoptions/surveythememenu',['canImport'=>$canImport,'importErrorMessage'=>$importErrorMessage]); ?>
36                 <?php $this->renderPartial('themeoptions/surveythemelist', array( 'oSurveyTheme'=> $oSurveyTheme, 'pageSize'=>$pageSize )); ?>
37 
38                 <!-- Available Themes -->
39                 <?php if (count($oSurveyTheme->templatesWithNoDb) > 0 ):?>
40                     <h3><?php eT('Available survey themes:'); ?></h3>
41                     <div class="row">
2019-06-19 13:07:54 Microsoft-IIS/10.0 Yii Framework/1.1.21