TWOKam
Member
Hi,
I ran the 'php cmd.php xf:convert-utf8mb4 ' command however it didn't complete:
Looking through threads here, I saw someone with a similar issue and they were advised to "truncate the xf_search_index table and run the command again. You’ll need to rebuild your search index afterwards though." I got my hosts to do this as I wasn't confident doing this myself. The hosts did this, when I tried running the first command again, this time I saw 'No convertable tables found. No action required.' - so that looks like that part is done. I then rebuild the search index.
I then added the below text to my src/config.php file:
When I view the forums, I can see the extra emoji options when making a post. When I go to make a post using one of the emoji's I get the below error. I click OK, refresh the forum, the message and emoji are posted...however each time anyone uses an emoji this error will popup:
Is there something I'm missing - any suggestions on what could be going wrong?
I ran the 'php cmd.php xf:convert-utf8mb4 ' command however it didn't complete:
The following tables failed to convert:
* xf_search_index: xf_search_index: MySQL query error [1366]: Incorrect string value: '\x88\x01\x000...' for column 'metadata' at row 8434
You should contact the table creator for guidance. Failure to correct this may lead to unexpected behavior.
Conversion complete, but with errors!
Looking through threads here, I saw someone with a similar issue and they were advised to "truncate the xf_search_index table and run the command again. You’ll need to rebuild your search index afterwards though." I got my hosts to do this as I wasn't confident doing this myself. The hosts did this, when I tried running the first command again, this time I saw 'No convertable tables found. No action required.' - so that looks like that part is done. I then rebuild the search index.
I then added the below text to my src/config.php file:
Code:
$config['fullUnicode'] = true;
When I view the forums, I can see the extra emoji options when making a post. When I go to make a post using one of the emoji's I get the below error. I click OK, refresh the forum, the message and emoji are posted...however each time anyone uses an emoji this error will popup:
XF\Db\Exception: MySQL query error [1366]: Incorrect string value: '\xF0\x9F\x92\xAA' for column 'message' at row 1 in src/XF/Db/AbstractStatement.php at line 217
XF\Db\AbstractStatement->getException() in src/XF/Db/Mysqli/Statement.php at line 196
XF\Db\Mysqli\Statement->getException() in src/XF/Db/Mysqli/Statement.php at line 77
XF\Db\Mysqli\Statement->execute() in src/XF/Db/AbstractAdapter.php at line 94
XF\Db\AbstractAdapter->query() in src/XF/Db/AbstractAdapter.php at line 221
XF\Db\AbstractAdapter->insert() in src/XF/Search/Source/MySqlFt.php at line 96
XF\Search\Source\MySqlFt->index() in src/XF/Search/Search.php at line 40
XF\Search\Search->index() in src/XF/Behavior/Indexable.php at line 46
XF\Behavior\Indexable->XF\Behavior\{closure}() in src/XF.php at line 290
XF::triggerRunOnce() in src/XF/Mvc/Dispatcher.php at line 143
XF\Mvc\Dispatcher->dispatchLoop() in src/XF/Mvc/Dispatcher.php at line 50
XF\Mvc\Dispatcher->run() in src/XF/App.php at line 2177
XF\App->run() in src/XF.php at line 390
XF::runApp() in index.php at line 20
Is there something I'm missing - any suggestions on what could be going wrong?