I’ve got a site with 192 users, running Omeka Classic 3.2, and am getting the following error when attempting to login. This appears to impact all users. In looking at the database configurations, it appears that the password column is set to varchar(40) / utf8mb3_unicode_ci, rather than varchar(255) / ascii_bin as one might expect just from looking at other unaffected Omeka databases on the same server. I don’t know if this issue resulted from an upgrade-related bug, or maybe a hosting issue. Any insights would be helpful, thanks.
Zend_Db_Statement_Mysqli_Exception: Mysqli statement execute error : Data too long for column 'password' at row 1 in .../application/libraries/Zend/Db/Statement/Mysqli.php:215
Stack trace:
#0 .../application/libraries/Zend/Db/Statement.php(303): Zend_Db_Statement_Mysqli->_execute(Array)
#1 .../application/libraries/Zend/Db/Adapter/Abstract.php(480): Zend_Db_Statement->execute(Array)
#2 .../application/libraries/Omeka/Db.php(80): Zend_Db_Adapter_Abstract->query('INSERT INTO `om...', Array)
#3 .../application/libraries/Omeka/Db.php(257): Omeka_Db->__call('query', Array)
#4 .../application/libraries/Omeka/Record/AbstractRecord.php(542): Omeka_Db->insert('omeka_users', Array)
#5 .../application/models/User.php(233): Omeka_Record_AbstractRecord->save()
#6 .../application/controllers/UsersController.php(429): User::upgradeHashedPassword('[user name]', '[password]')
#7 .../application/libraries/Zend/Controller/Action.php(516): UsersController->loginAction()
#8 .../application/libraries/Zend/Controller/Dispatcher/Standard.php(308): Zend_Controller_Action->dispatch('loginAction')
#9 .../application/libraries/Zend/Controller/Front.php(954): Zend_Controller_Dispatcher_Standard->dispatch(Object(Zend_Controller_Request_Http), Object(Zend_Controller_Response_Http))
#10 .../application/libraries/Zend/Application/Bootstrap/Bootstrap.php(106): Zend_Controller_Front->dispatch()
#11 .../application/libraries/Zend/Application.php(384): Zend_Application_Bootstrap_Bootstrap->run()
#12 .../application/libraries/Omeka/Application.php(73): Zend_Application->run()
#13 .../admin/index.php(28): Omeka_Application->run()
#14 {main}
Manually reverting the column structure does solve the problem, though it would still be nice to know why this might have happened.
`ALTER TABLE `omeka_users` CHANGE `password` `password` VARCHAR(255) CHARACTER SET ascii COLLATE ascii_bin NULL DEFAULT NULL;`