InvalidArgumentException: Received invalid UTF-8 for string column [style_variation]

christisking

New member
I have hundreds of pages of these errors in the server log. There seems to be a lot of repetition, but not all the same user or post id. We have been running clean for months and I am not aware of any recent changes that may have caused this issue which seems to have started happening about a week ago.

  • InvalidArgumentException: Received invalid UTF-8 for string column [style_variation]
  • src/XF/Mvc/Entity/Entity.php:808
  • Generated by: Unknown account
  • Oct 14, 2024 at 5:06 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(2773): XF\Pub\App->start(true)
#3 src/XF.php(798): 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(2773): XF\Pub\App->start(true)
#4 src/XF.php(798): XF\App->run()
#5 index.php(23): XF::runApp('XF\\Pub\\App')
#6 {main}

Request state​

array(4) {
["url"] => string(53) "/threads/<private>.981/post-54097"
["referrer"] => string(45) "https://www.google.com/search?hl=en&q=testing"
["_GET"] => array(1) {
["/threads/<private>_981/post-54097"] => string(0) ""
}
["_POST"] => array(0) {
}
}

Running XF 2.3.0 with a handfull of add-ons. FIle check is clean.

Server environment report
You have the recommended PHP version.
PHP version8.3.6
MySQL version10.11.8 (10.11.8-MariaDB-0ubuntu0.24.04.1)
Server softwarenginx/1.24.0
PHP memory_limit512M
PHP post_max_size32M
PHP upload_max_filesize32M
PHP max_input_vars1000
PHP max_execution_time30
cURL version8.5.0
cURL SSL versionOpenSSL/3.0.13
OpenSSL versionOpenSSL 3.0.13 30 Jan 2024
Snuffleupagus enabledNo
Imagick supportYes
EXIF supportYes
GZip supportYes
gmp supportYes
ZipArchive supportYes
 
Last edited:
Back
Top Bottom