View Issue Details

This bug affects 1 person(s).
 4
IDProjectCategoryView StatusLast Update
06074Bug reportsSurvey participants (Tokens)public2012-05-10 20:46
ReporterFred Assigned Toc_schmitz  
PrioritynormalSeverityminor 
Status closedResolutionfixed 
Product Version2.00b1 
Fixed in Version2.00RC1 
Summary06074: Can't generate tokens for new token entry
Description

Crash after pressing "generate tokens" button on new token entry.

I am running LS2 2.0b2 cloned from github

Steps To Reproduce

Select a survey that uses tokens
Token managment
Add a new token (or add from central participants database)
Press the Generate tokens button

Additional Information

CDbException

CDbCommand failed to execute the SQL statement: SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ''{{tokens_733118}}' SET token= 'uy4mgiygebprsjx' WHERE tid='1'' at line 1. The SQL statement executed was: UPDATE :tablename SET token= :newtoken WHERE tid=:tid

/Users/fred/Dropbox/MAMP/htdocs/LimeSurvey/framework/db/CDbCommand.php(354)

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

TagsNo tags attached.
Bug heat4
Complete LimeSurvey version number (& build)000000
I will donate to the project if issue is resolvedNo
BrowserChrome
Database type & versionMySQL 5.5.9
Server OS (if known)Mac OS Lion
Webserver software & version (if known)Apache 2.2.17
PHP Version5.3.6

Users monitoring this issue

There are no users monitoring this issue.

Activities

c_schmitz

c_schmitz

2012-05-09 00:42

administrator   ~18638

Fix committed to Yii branch: http://bugs.limesurvey.org/plugin.php?page=Source/view&id=8366

Fred

Fred

2012-05-09 16:35

reporter   ~18640

Thanks, I synced and tried again it's working.

c_schmitz

c_schmitz

2012-05-10 20:46

administrator   ~18669

2.00RC1 released.

Related Changesets

LimeSurvey: Yii 61b077d8

2012-05-08 15:38:04

c_schmitz

Details Diff
Fixed issue 06074: Can't generate tokens for new token entry Affected Issues
06074
mod - application/controllers/admin/tokens.php Diff File
mod - application/models/Tokens_dynamic.php Diff File

Issue History

Date Modified Username Field Change
2012-05-08 22:32 Fred New Issue
2012-05-09 00:37 c_schmitz Status new => resolved
2012-05-09 00:37 c_schmitz Fixed in Version => 2.00RC1
2012-05-09 00:37 c_schmitz Resolution open => fixed
2012-05-09 00:37 c_schmitz Assigned To => c_schmitz
2012-05-09 00:42 c_schmitz Changeset attached => LimeSurvey Yii 61b077d8
2012-05-09 00:42 c_schmitz Note Added: 18638
2012-05-09 16:35 Fred Note Added: 18640
2012-05-10 20:46 c_schmitz Note Added: 18669
2012-05-10 20:46 c_schmitz Status resolved => closed
2016-12-08 10:39 c_schmitz Category Tokens => Survey participants (Tokens)