Incorrect string value: '\xF0\x9F\x91\x87\xF0\x9F - error

Wolf Knight

+Lifetime VIP+
+Lifetime VIP+
S.V.I.P Member
V.I.P Member
Collaborate
Registered
Joined
Jul 3, 2019
Messages
200
Points
53

Reputation:

Hello dear,
I am facing a problem by receiving this error message Frequently:

XF\Db\Exception: MySQL query error [1366]: Incorrect string value: '\xF0\x9F\x91\x87\xF0\x9F...' for column `********`.`xf_unfurl_result`.`description` at row 1
src/XF/Db/AbstractStatement.php:230

UPDATE `xf_unfurl_result` SET `description` = ?, `image_url` = ?, `last_request_date` = ?, `pending` = ? WHERE `result_id` = 8050

#0 src/XF/Db/Mysqli/Statement.php(198): XF\Db\AbstractStatement->getException('MySQL query err...', 1366, '22007')
#1 src/XF/Db/Mysqli/Statement.php(79): XF\Db\Mysqli\Statement->getException('MySQL query err...', 1366, '22007')
#2 src/XF/Db/AbstractAdapter.php(96): XF\Db\Mysqli\Statement->execute()
#3 src/XF/Db/AbstractAdapter.php(324): XF\Db\AbstractAdapter->query('UPDATE `xf_unf...', Array)
#4 src/XF/Mvc/Entity/Entity.php(1519): XF\Db\AbstractAdapter->update('xf_unfurl_resul...', Array, '`result_id` = 8...')
#5 src/XF/Mvc/Entity/Entity.php(1246): XF\Mvc\Entity\Entity->_saveToSource()
#6 src/XF/Service/Unfurl/Fetcher.php(60): XF\Mvc\Entity\Entity->save()
#7 unfurl.php(71): XF\Service\Unfurl\Fetcher->fetch()
#8 {main}

Could someone expert help me to fix this error?
Thank you.
 

BattleKing

Spirit of darkness
Staff member
Administrator
Moderator
+Lifetime VIP+
S.V.I.P Member
Collaborate
Registered
Joined
May 24, 2020
Messages
3,514
Points
523

Reputation:

Please add some more details what you did in detail. What url did you tried to enter
 

Wolf Knight

+Lifetime VIP+
+Lifetime VIP+
S.V.I.P Member
V.I.P Member
Collaborate
Registered
Joined
Jul 3, 2019
Messages
200
Points
53

Reputation:

This error is on my site.
I am receiving this error in my site control panel.
 

BattleKing

Spirit of darkness
Staff member
Administrator
Moderator
+Lifetime VIP+
S.V.I.P Member
Collaborate
Registered
Joined
May 24, 2020
Messages
3,514
Points
523

Reputation:

This error is on my site.
I am receiving this error in my site control panel.
Wolf KnightHow often did you get this message? Are there any more errors or information

Which version of xenforo is it
 
View previous replies…

Fenrir

Collaborate
Collaborate
Registered
Joined
Dec 11, 2021
Messages
110
Points
143

Reputation:

I think the problem is in the base charset
Do you have emoji support enabled?
 

Wolf Knight

+Lifetime VIP+
+Lifetime VIP+
S.V.I.P Member
V.I.P Member
Collaborate
Registered
Joined
Jul 3, 2019
Messages
200
Points
53

Reputation:

View previous replies…

Fenrir

Collaborate
Collaborate
Registered
Joined
Dec 11, 2021
Messages
110
Points
143

Reputation:

more details please, from where I can check that?
Wolf KnightI think you got this error due to the fact that somewhere on your forum there is a link that has emoji in the preview, that's why you got this error.

Add $config['fullUnicode'] = true; to your src/config.php file. Then go to the main page in the admin panel. If your base has the wrong charset, you will see a warning there
 

BattleKing

Spirit of darkness
Staff member
Administrator
Moderator
+Lifetime VIP+
S.V.I.P Member
Collaborate
Registered
Joined
May 24, 2020
Messages
3,514
Points
523

Reputation:

I think you got this error due to the fact that somewhere on your forum there is a link that has emoji in the preview, that's why you got this error.

Add $config['fullUnicode'] = true; to your src/config.php file. Then go to the main page in the admin panel. If your base has the wrong charset, you will see a warning there
notwonderfulYes there is
1640112457900.png
in the message
 

Wolf Knight

+Lifetime VIP+
+Lifetime VIP+
S.V.I.P Member
V.I.P Member
Collaborate
Registered
Joined
Jul 3, 2019
Messages
200
Points
53

Reputation:

I think you got this error due to the fact that somewhere on your forum there is a link that has emoji in the preview, that's why you got this error.

Add $config['fullUnicode'] = true; to your src/config.php file. Then go to the main page in the admin panel. If your base has the wrong charset, you will see a warning there
notwonderfulI did but nothing is shown in the admin panel
 

Fenrir

Collaborate
Collaborate
Registered
Joined
Dec 11, 2021
Messages
110
Points
143

Reputation:

I did but nothing is shown in the admin panel
Wolf KnightBut to be sure run the conversion script

Log in to your server using SSH, or open a command prompt over Remote Desktop if you are using a Windows server.

When you have a command line available, change your current working directory to your XenForo directory. You will know that you are in the correct directory, as it will contain a script called cmd.php.

You can now run the following command:

php cmd.php xf:convert-utf8mb4

Or just recheck your base charset via phpMyAdmin or something else.
 

Wolf Knight

+Lifetime VIP+
+Lifetime VIP+
S.V.I.P Member
V.I.P Member
Collaborate
Registered
Joined
Jul 3, 2019
Messages
200
Points
53

Reputation:

But to be sure run the conversion script

Log in to your server using SSH, or open a command prompt over Remote Desktop if you are using a Windows server.

When you have a command line available, change your current working directory to your XenForo directory. You will know that you are in the correct directory, as it will contain a script called cmd.php.

You can now run the following command:

php cmd.php xf:convert-utf8mb4

Or just recheck your base charset via phpMyAdmin or something else.
notwonderfulI got this error

You should contact the table creator for guidance. Failure to correct this may lead to unexpected behavior.
 
Top