Fixed Received invalid UTF-8 for string column [style_variation]

Andy.N

Well-known member
Affected version
2.3.3
Got this errors on ACP.

Server error log
  • InvalidArgumentException: Received invalid UTF-8 for string column [style_variation]
  • src/XF/Mvc/Entity/Entity.php:808
  • Generated by: Unknown account
  • 9/4/24 at 5:59 AM

Stack trace​

#0 src/XF/Mvc/Entity/Entity.php(762): XF\Mvc\Entity\Entity->_castValueToType([invalid], 'style_variation', 5, Array)
#1 src/XF/Pub/App.php(228): XF\Mvc\Entity\Entity->setAsSaved('style_variation', [invalid])
#2 src/XF/App.php(2822): XF\Pub\App->start(true)
#3 src/XF.php(806): XF\App->run()
#4 index.php(23): XF::runApp('XF\\Pub\\App')
#5 {main}

-------------

Previous InvalidArgumentException: Received invalid UTF-8 for string column - src/XF/Mvc/Entity/ValueFormatter.php:137
#0 src/XF/Mvc/Entity/Entity.php(804): XF\Mvc\Entity\ValueFormatter->castValueToType([invalid], 5, Array)
#1 src/XF/Mvc/Entity/Entity.php(762): XF\Mvc\Entity\Entity->_castValueToType([invalid], 'style_variation', 5, Array)
#2 src/XF/Pub/App.php(228): XF\Mvc\Entity\Entity->setAsSaved('style_variation', [invalid])
#3 src/XF/App.php(2822): XF\Pub\App->start(true)
#4 src/XF.php(806): XF\App->run()
#5 index.php(23): XF::runApp('XF\\Pub\\App')
#6 {main}

Request state​

array(4) {
["url"] => string(10) "/index.php"
["referrer"] => string(45) "https://www.google.com/search?hl=en&q=testing"
["_GET"] => array(0) {
}
["_POST"] => array(0) {
}
}
 
Thank you for reporting this issue, it has now been resolved. We are aiming to include any changes that have been made in a future XF release (2.3.4).

Change log:
Gracefully handle guest username and style variation containing invalid UTF-8
There may be a delay before changes are rolled out to the XenForo Community.
 
Back
Top Bottom