Openlitespeed php cmd.php xf:convert-utf8mb4 problem is Fixed
Today i upgraded from XF 1.5 to 2.4 version but i take like this error message, if you ask me php cmd.php xf:convert-utf8mb4 i did it but dosent work...
How can i fix this problem clearly ?
Error message
INSERT INTO
------------
#0 src/XF/Db/Mysqli/Statement.php(196): XF\Db\AbstractStatement->getException('MySQL query err...', 1366, 'HY000')
#1 src/XF/Db/Mysqli/Statement.php(77): XF\Db\Mysqli\Statement->getException('MySQL query err...', 1366, 'HY000')
#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/Search/Sourc
Today i upgraded from XF 1.5 to 2.4 version but i take like this error message, if you ask me php cmd.php xf:convert-utf8mb4 i did it but dosent work...
How can i fix this problem clearly ?
Error message
- XF\Db\Exception: MySQL query error [1366]: Incorrect string value: '\xF0\x9F\x98\x81' for column 'message' at row 1
- src/XF/Db/AbstractStatement.php:217
- Generated by: xxxx
- Feb 19, 2020 at 8:43 PM
INSERT INTO
xf_search_index
(content_type
, content_id
, title
, message
, metadata
, item_date
, user_id
, discussion_id
) VALUES (?, ?, ?, ?, ?, ?, ?, ?) ON DUPLICATE KEY UPDATE title = VALUES(title), message = VALUES(message), metadata = VALUES(metadata), item_date = VALUES(item_date), user_id = VALUES(user_id), discussion_id = VALUES(discussion_id)------------
#0 src/XF/Db/Mysqli/Statement.php(196): XF\Db\AbstractStatement->getException('MySQL query err...', 1366, 'HY000')
#1 src/XF/Db/Mysqli/Statement.php(77): XF\Db\Mysqli\Statement->getException('MySQL query err...', 1366, 'HY000')
#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/Search/Sourc
Last edited: