CDbException

CDbCommand failed to execute the SQL statement: SQLSTATE[22001]: String data, right truncated: 1406 Data too long for column 'plugin_type' at row 1. The SQL statement executed was: INSERT INTO `lime_plugins` (`plugin_type`, `active`, `load_error`, `priority`, `name`, `version`) VALUES (:yp0, :yp1, :yp2, :yp3, :yp4, :yp5)

/mnt/data/shnoulle/nginx/www/develop/framework/db/CDbCommand.php(358)

346         {
347             if($this->_connection->enableProfiling)
348                 Yii::endProfile('system.db.CDbCommand.execute('.$this->getText().$par.')','system.db.CDbCommand.execute');
349 
350             $errorInfo=$e instanceof PDOException ? $e->errorInfo : null;
351             $message=$e->getMessage();
352             Yii::log(Yii::t('yii','CDbCommand::execute() failed: {error}. The SQL statement executed was: {sql}.',
353                 array('{error}'=>$message, '{sql}'=>$this->getText().$par)),CLogger::LEVEL_ERROR,'system.db.CDbCommand');
354 
355             if(YII_DEBUG)
356                 $message.='. The SQL statement executed was: '.$this->getText().$par;
357 
358             throw new CDbException(Yii::t('yii','CDbCommand failed to execute the SQL statement: {error}',
359                 array('{error}'=>$message)),(int)$e->getCode(),$errorInfo);
360         }
361     }
362 
363     /**
364      * Executes the SQL statement and returns query result.
365      * This method is for executing an SQL query that returns result set.
366      * @param array $params input parameters (name=>value) for the SQL execution. This is an alternative
367      * to {@link bindParam} and {@link bindValue}. If you have multiple input parameters, passing
368      * them in this way can improve the performance. Note that if you pass parameters in this way,
369      * you cannot bind parameters or values using {@link bindParam} or {@link bindValue}, and vice versa.
370      * Please also note that all values are treated as strings in this case, if you need them to be handled as

Stack Trace

#2
+
 /mnt/data/shnoulle/nginx/www/develop/application/libraries/PluginManager/PluginManager.php(147): CActiveRecord->save()
142         $plugin->version     = (string) $extensionConfig->xml->metadata->version;
143         if(!empty($extensionConfig->xml->priority)) {
144             $plugin->priority   = (int) $extensionConfig->xml->priority;
145         }
146         $plugin->plugin_type = $pluginType;
147         $plugin->save();
148         return [true, null];
149     }
150 
151     /**
152      * Return the status of plugin (true/active or false/desactive)
#3
+
 /mnt/data/shnoulle/nginx/www/develop/application/controllers/admin/PluginManagerController.php(353): LimeSurvey\PluginManager\PluginManager->installPlugin(ExtensionConfig, "upload")
348             );
349             $this->getController()->redirect($this->getPluginManagerUrl());
350         } else {
351             list($result, $errorMessage) = $pluginManager->installPlugin(
352                 $pluginInfo['extensionConfig'],
353                 $pluginInfo['pluginType']
354             );
355             if ($result) {
356                 Yii::app()->setFlashMessage(
357                     gT('Plugin was installed.'),
358                     'success'
#6
+
 /mnt/data/shnoulle/nginx/www/develop/application/core/Survey_Common_Action.php(86): CAction->runWithParamsInternal(PluginManagerController, ReflectionMethod, array("r" => "admin/pluginmanager", "sa" => "installPluginFromFile"))
81             $oMethod = new ReflectionMethod($this, $sDefault);
82         }
83 
84         // We're all good to go, let's execute it
85         // runWithParamsInternal would automatically get the parameters of the method and populate them as required with the params
86         return parent::runWithParamsInternal($this, $oMethod, $params);
87     }
88 
89     /**
90      * Some functions have different parameters, which are just an alias of the
91      * usual parameters we're getting in the url. This function just populates
2019-10-17 20:50:48 nginx/1.16.1 Yii Framework/1.1.21