Bug MySQL query error [1406]: Data too long for column 'dbtech_security_user_agent' at row 1

Status
Not open for further replies.

Nirjonadda

Customer
Server error log:

Code:
XF\Db\Exception: MySQL query error [1406]: Data too long for column 'dbtech_security_user_agent' at row 1 src/XF/Db/AbstractStatement.php:228

Generated by: Spellbinder May 24, 2021 at 1:14 PM

Stack trace

INSERT  INTO `xf_user_remember` (`user_id`, `remember_key`, `expiry_date`, `dbtech_security_user_agent`, `remember_id`, `start_date`) VALUES (?, ?, ?, ?, ?, ?)
------------

#0 src/XF/Db/Mysqli/Statement.php(196): XF\Db\AbstractStatement->getException('MySQL query err...', 1406, '22001')
#1 src/XF/Db/Mysqli/Statement.php(77): XF\Db\Mysqli\Statement->getException('MySQL query err...', 1406, '22001')
#2 src/XF/Db/AbstractAdapter.php(94): XF\Db\Mysqli\Statement->execute()
#3 src/XF/Db/AbstractAdapter.php(218): XF\Db\AbstractAdapter->query('INSERT  INTO `x...', Array)
#4 src/XF/Mvc/Entity/Entity.php(1510): XF\Db\AbstractAdapter->insert('xf_user_remembe...', Array, false)
#5 src/XF/Mvc/Entity/Entity.php(1242): XF\Mvc\Entity\Entity->_saveToSource()
#6 src/XF/Repository/UserRemember.php(15): XF\Mvc\Entity\Entity->save()
#7 src/XF/ControllerPlugin/Login.php(267): XF\Repository\UserRemember->createRememberRecord(18627)
#8 src/XF/Pub/Controller/Register.php(480): XF\ControllerPlugin\Login->createVisitorRememberKey()
#9 src/XF/Pub/Controller/Register.php(430): XF\Pub\Controller\Register->finalizeRegistration(Object(Datio\AllowedEmails\XF\Entity\User))
#10 src/addons/AddonFlare/PaidRegistrations/XF/Pub/Controller/Register.php(230): XF\Pub\Controller\Register->actionRegister()
#11 src/XF/Mvc/Dispatcher.php(350): AddonFlare\PaidRegistrations\XF\Pub\Controller\Register->actionRegister(Object(XF\Mvc\ParameterBag))
#12 src/XF/Mvc/Dispatcher.php(257): XF\Mvc\Dispatcher->dispatchClass('XF:Register', 'Register', Object(XF\Mvc\RouteMatch), Object(AddonFlare\PaidRegistrations\XF\Pub\Controller\Register), NULL)
#13 src/XF/Mvc/Dispatcher.php(113): XF\Mvc\Dispatcher->dispatchFromMatch(Object(XF\Mvc\RouteMatch), Object(AddonFlare\PaidRegistrations\XF\Pub\Controller\Register), NULL)
#14 src/XF/Mvc/Dispatcher.php(55): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#15 src/XF/App.php(2337): XF\Mvc\Dispatcher->run()
#16 src/XF.php(488): XF\App->run()
#17 index.php(20): XF::runApp('XF\\Pub\\App')
#18 {main}

Request state

array(4) {
  ["url"] => string(18) "/register/register"
  ["referrer"] => string(46) "/register/?accountType=1"
  ["_GET"] => array(0) {
  }
  ["_POST"] => array(19) {
    ["username"] => string(0) ""
    ["5f7da697f26650c1fc076ca1341e7b177e0839e8"] => string(11) "Spellbinder"
    ["ccc2828a8b835e35cf362ff91ab4cc0366bbb7d8"] => string(22) "@gmail.com"
    ["password"] => string(8) "********"
    ["2f7c7572af371aaae92dfd4fb7d839f8d9380ec7"] => string(8) "********"
    ["dob_month"] => string(1) "5"
    ["dob_day"] => string(1) "5"
    ["dob_year"] => string(4) "1986"
    ["location"] => string(9) "Maldives "
    ["custom_fields"] => array(2) {
      ["gender"] => string(4) "male"
      ["siropu_referrer"] => string(0) ""
    }
    ["g-recaptcha-response"] => string(2360) "P0_eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJwYXNza2V5IjoiekRJQnJYUDVwMkVYMUJiSEgvbEdFTlFGSnpRTkJCSXlURE56VDZYV1ZWMjJEdGdpSjVBSnBhZVoxZU02dkJGalNyZFdJbnJkOU5ScnZtNFQ5Sy8zYjhwcjgyTElndExkYzBPUnlleXVuQXFhZnJzRnhBRVp4a3d2WCs1Z2QrRERMdkYweWpoaVE4NGVEWWdKUExvZjhyNTIwS2VXY055Mldsc0p1MXQxbWFuVmJld1Fjc0FjK3JybjBjbEh1V0pBZFdEWTdzQW5TUTZZaW5uR29MM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vZ2NXaE1oQVRoYjNtR1BnZHNwam5nOEpLVy9qQVVZRm9Td1Z0blhIL21zVmVjMU8vTUtIVWcwc0ZkL0VsQWdMNzNjS1pZdFhBM1NBd0lkNERaTWdMdGZ6SiIsImV4cCI6MTYyMTg0MDU3Niwic2hhcmRfaWQiOjI1OTE4OTM1OSwicGQiOjB9.tOWn8UALvVA3Y-Bp-8wj32NcW8g6rg3RulHphB2w3BI"
    ["accept"] => string(1) "1"
    ["reg_key"] => string(16) "NNRdotYybruiJ-Av"
    ["fc0b58b77158005d2479ccc3d8aac5d5f00105c3"] => string(13) "Asia/Tashkent"
    ["_xfToken"] => string(8) "********"
    ["_xfRequestUri"] => string(24) "/register/?accountType=1"
    ["_xfWithData"] => string(1) "1"
    ["_xfResponseType"] => string(4) "json"
  }
}
 
Check the column definition of dbtech_security_user_agent on the xf_user_remember table. It should be a BLOB type, which is 64 kb - no user agent will ever be that long.
 
Hello @Nirjonadda,

We hope your ticket regarding DragonByte Security has been addressed to your satisfaction. This ticket has now been scheduled to be closed.

If your ticket has not been resolved, you can reply to this thread at any point in the next 7 days in order to reopen the ticket, afterwards this thread will be closed.

Please do not reply to this thread if your ticket has been resolved.

Thank you.


- DragonByte Technologies, Ltd.
 
Hello @Nirjonadda,

We hope your ticket regarding DragonByte Security has been addressed to your satisfaction. This ticket has now been scheduled to be closed.

If your ticket has not been resolved, you can reply to this thread at any point in the next 7 days in order to reopen the ticket, afterwards this thread will be closed.

Please do not reply to this thread if your ticket has been resolved.

Thank you.


- DragonByte Technologies, Ltd.
 
Status
Not open for further replies.

DragonByte Security

XenForo 1.5.3+ XenForo 2.0.x XenForo 2.1.x XenForo 2.2.x XenForo 2.3.x
Seller
DragonByte Technologies
Release date
Last update
Total downloads
2,295
Customer rating
5.00 star(s) 1 ratings
Back
Top