-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CDbException on password update or new user registration #859
Comments
see also #864 - same error message when trying to create a new account |
still getting CDb exception in Jan20 version: CDbExceptionCDbCommand failed to execute the SQL statement: SQLSTATE[22001]: String data, right truncated: 7 ERROR: value too long for type character varying(64). The SQL statement executed was: UPDATE "gigadb_user" SET "id"=:yp0, "email"=:yp1, "password"=:yp2, "first_name"=:yp3, "last_name"=:yp4, "affiliation"=:yp5, "role"=:yp6, "is_activated"=:yp7, "newsletter"=:yp8, "previous_newsletter_state"=:yp9, "facebook_id"=:yp10, "twitter_id"=:yp11, "linkedin_id"=:yp12, "google_id"=:yp13, "username"=:yp14, "orcid_id"=:yp15, "preferred_link"=:yp16 WHERE "gigadb_user"."id"=35. Bound with :yp0=35, :yp1='[email protected]', :yp2='$argon2id$v=19$m=65536,t=2,p=1$BNyHBP32MiD+81R351wrxA$HkODM8OfS9yRjX4BpYbAmROgKwut0A82mIRH/mRD3yU', :yp3='Chris', :yp4='Hunter', :yp5='GigaScience database', :yp6='user', :yp7=true, :yp8=NULL, :yp9=true, :yp10=NULL, :yp11=NULL, :yp12=NULL, :yp13=NULL, :yp14='[email protected]', :yp15=NULL, :yp16='EBI' /var/www/vendor/yiisoft/yii/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
2022-01-20 18:33:48 nginx/1.21.3 Yii Framework/1.1.20-yii2-2.0.15.1-migration
|
When using: https://staging.gigadb.org/user/reset/username/ The server error is the same as described in description |
@rija @only1chunts I've instantiated a new dockerhost EC2 server but have not been able to replicate the CDb exception when changing a user's password on the https://staging.gigadb.org/user/changePassword page. Debug messages do not show any problems with running database migrations which is also confirmed by the @only1chunts If you can confirm that the change password functionality is working on the staging server then I suggest we move this ticket to the |
I still get the CDb Exception, try to reset the password for "[email protected]" |
NB whilst testing this I attempted to delete my [email protected] user account, but that functionality isn't working in staging, I dont think its working in live either! so I have create a low impact bug ticket for that too #952 |
@only1chunts I'm able to update my password for my user account on beta.gigadb.org using the /user/changePassword page without getting an CDbException error message. I can also created a new account on the beta website too. |
beta appears to be down for me so I cant check at the moment |
it up now, and I can confirm that the reset password page is indeed working for me, as is the change password link and the create new account pages. |
Describe the bug
CDbException when trying to update user password or register an account
To Reproduce
Steps to reproduce the behavior:
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
n1 - CDbException when trying to update user password or register an account
CDbException
CDbCommand failed to execute the SQL statement: SQLSTATE[22001]: String data, right truncated: 7 ERROR: value too long for type character varying(64). The SQL statement executed was: UPDATE "gigadb_user" SET "id"=:yp0, "email"=:yp1, "password"=:yp2, "first_name"=:yp3, "last_name"=:yp4, "affiliation"=:yp5, "role"=:yp6, "is_activated"=:yp7, "newsletter"=:yp8, "previous_newsletter_state"=:yp9, "facebook_id"=:yp10, "twitter_id"=:yp11, "linkedin_id"=:yp12, "google_id"=:yp13, "username"=:yp14, "orcid_id"=:yp15, "preferred_link"=:yp16 WHERE "gigadb_user"."id"=35. Bound with :yp0=35, :yp1='[email protected]', :yp2='$argon2id$v=19$m=65536,t=2,p=1$DrmhmKjMKz8k41rg9Wc9LA$E0rSktXtxL6msxt/VQeG6tqRSdXRxTTnDzZbLNCSnsk', :yp3='Chris', :yp4='Hunter', :yp5='GigaDB', :yp6='user', :yp7=true, :yp8=true, :yp9=false, :yp10=NULL, :yp11=NULL, :yp12=NULL, :yp13=NULL, :yp14='[email protected]', :yp15=NULL, :yp16='EBI'
/var/www/vendor/yiisoft/yii/framework/db/CDbCommand.php(358)
Stack Trace
Originally posted by @only1chunts in #747 (comment)
Additional information
The text was updated successfully, but these errors were encountered: