Karelke
Well-known member
MariaDB 10.3.16 (not running in strict mode).
Inserting a random smiley like this:
Results into the following error:
Inserting a random smiley like this:
Results into the following error:
Code:
XF\Db\Exception: MySQL query error [1366]: Incorrect string value: '\xF0\x9F\x91\x8D' for column [ICODE]xenforo[/ICODE].[ICODE]xf_draft[/ICODE].[ICODE]message[/ICODE] at row 1
src/XF/Db/AbstractStatement.php:217
INSERT INTO [ICODE]xf_draft[/ICODE] ([ICODE]user_id[/ICODE], [ICODE]draft_key[/ICODE], [ICODE]message[/ICODE], [ICODE]extra_data[/ICODE], [ICODE]draft_id[/ICODE], [ICODE]last_update[/ICODE]) VALUES (?, ?, ?, ?, ?, ?)
------------
#0 src/XF/Db/Mysqli/Statement.php(196): XF\Db\AbstractStatement->getException('MySQL query err...', 1366, '22007')
#1 src/XF/Db/Mysqli/Statement.php(77): XF\Db\Mysqli\Statement->getException('MySQL query err...', 1366, '22007')
#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(1452): XF\Db\AbstractAdapter->insert('xf_draft', Array, false)
#5 src/XF/Mvc/Entity/Entity.php(1184): XF\Mvc\Entity\Entity->_saveToSource()
#6 src/XF/Draft.php(44): XF\Mvc\Entity\Entity->save()
#7 src/XF/ControllerPlugin/Draft.php(29): XF\Draft->save()
#8 src/XF/Pub/Controller/Thread.php(275): XF\ControllerPlugin\Draft->updateMessageDraft(Object(XF\Draft), Array)
#9 src/XF/Mvc/Dispatcher.php(321): XF\Pub\Controller\Thread->actionDraft(Object(XF\Mvc\ParameterBag))
#10 src/XF/Mvc/Dispatcher.php(244): XF\Mvc\Dispatcher->dispatchClass('XF:Thread', 'Draft', Object(XF\Mvc\RouteMatch), Object(XF\Pub\Controller\Thread), NULL)
#11 src/XF/Mvc/Dispatcher.php(100): XF\Mvc\Dispatcher->dispatchFromMatch(Object(XF\Mvc\RouteMatch), Object(XF\Pub\Controller\Thread), NULL)
#12 src/XF/Mvc/Dispatcher.php(50): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#13 src/XF/App.php(2177): XF\Mvc\Dispatcher->run()
#14 src/XF.php(390): XF\App->run()
#15 index.php(20): XF::runApp('XF\\Pub\\App')
#16 {main}
array(4) {
["url"] => string(32) "/forum/threads/test.282986/draft"
["referrer"] => string(51) "/forum/threads/test.282986/"
["_GET"] => array(0) {
}
["_POST"] => array(9) {
["message_html"] => string(198) "<p><img class="smilie smilie--emoji fr-fic fr-dii" alt="👍" title="Thumbs up (y)" src="https://cdn.jsdelivr.net/emojione/assets/4.5/png/64/1f44d.png" data-shortname="(y)"><br></p>"
["attachment_hash"] => string(32) "6e9cca62d75c35735d18cb33bc89d43f"
["attachment_hash_combined"] => string(88) "{"type":"post","context":{"thread_id":282986},"hash":"6e9cca62d75c35735d18cb33bc89d43f"}"
["last_date"] => string(10) "1476350154"
["last_known_date"] => string(10) "1561388432"
["_xfRequestUri"] => string(27) "/forum/threads/test.282986/"
["_xfWithData"] => string(1) "1"
["_xfToken"] => string(8) "[B]****[/B]"
["_xfResponseType"] => string(4) "json"
}
}