We are trying to add a PDF that has an emoji in it (😂). We get the same error through the import media function as well as the add representation function:
"Incorrect string value: '\xF0\x9F\x98\x82.\x0A...' for column 'media_content' at row 1 in /collectiveaccess/pawtucket-dev/admin/app/lib/Db/mysqli.php line 316:" I've copied the full error message below. It seems to be affecting the media_content column of the ca_object_representations table.
I've checked the DB, table, column, and connection variables; they are set to utf8mb4 and the collation is utf8mb4_unicode_ci. I've tried several other utf8mb4 collations and I still get the same error. If I remove the emoji from the PDF, it works fine. I can also manually update the media_content value with the emoji using the MySQL8 cli and it will appear fine in the DB. So it seems MySQL on the server is fine with the emoji, but it's something in between that causing issues. The default charset for php is set to utf-8.
Any idea of where to look next? Thanks!
+--------------------------+--------------------+
| VARIABLE_NAME | VARIABLE_VALUE |
+--------------------------+--------------------+
| character_set_client | utf8mb4 |
| character_set_connection | utf8mb4 |
| character_set_database | utf8mb4 |
| character_set_results | utf8mb4 |
| collation_connection | utf8mb4_unicode_ci |
+--------------------------+--------------------+
Warning: join(): Invalid arguments passed in /collectiveaccess/pawtucket-dev/admin/themes/default/views/system/fatal_error_html.php on line 52
In Db_mysqli->execute() in DbStatement line 151
Warning: join(): Invalid arguments passed in /collectiveaccess/pawtucket-dev/admin/themes/default/views/system/fatal_error_html.php on line 52
At DbStatement->executeWithParamsAsArray() in Db line 261
Warning: join(): Invalid arguments passed in /collectiveaccess/pawtucket-dev/admin/themes/default/views/system/fatal_error_html.php on line 52
At Db->query() in BaseModel line 2652
Warning: join(): Invalid arguments passed in /collectiveaccess/pawtucket-dev/admin/themes/default/views/system/fatal_error_html.php on line 52
At BaseModel->insert() in BaseModelWithAttributes line 508
Warning: join(): Invalid arguments passed in /collectiveaccess/pawtucket-dev/admin/themes/default/views/system/fatal_error_html.php on line 52
At BaseModelWithAttributes->insert() in BundlableLabelableBaseModelWithAttributes line 256
Warning: join(): Invalid arguments passed in /collectiveaccess/pawtucket-dev/admin/themes/default/views/system/fatal_error_html.php on line 52
At BundlableLabelableBaseModelWithAttributes->insert() in ca_object_representations line 414
Warning: join(): Invalid arguments passed in /collectiveaccess/pawtucket-dev/admin/themes/default/views/system/fatal_error_html.php on line 52
At ca_object_representations->insert() in RepresentableBaseModel line 570
Warning: join(): Invalid arguments passed in /collectiveaccess/pawtucket-dev/admin/themes/default/views/system/fatal_error_html.php on line 52
At RepresentableBaseModel->addRepresentation() in BundlableLabelableBaseModelWithAttributes line 4151
Warning: join(): Invalid arguments passed in /collectiveaccess/pawtucket-dev/admin/themes/default/views/system/fatal_error_html.php on line 52
At BundlableLabelableBaseModelWithAttributes->saveBundlesForScreen() in BaseEditorController line 298
Warning: join(): Invalid arguments passed in /collectiveaccess/pawtucket-dev/admin/themes/default/views/system/fatal_error_html.php on line 52
At BaseEditorController->Save() in RequestDispatcher line 273
Warning: join(): Invalid arguments passed in /collectiveaccess/pawtucket-dev/admin/themes/default/views/system/fatal_error_html.php on line 52
At RequestDispatcher->dispatch() in AppController line 113
Warning: join(): Invalid arguments passed in /collectiveaccess/pawtucket-dev/admin/themes/default/views/system/fatal_error_html.php on line 52
At AppController->dispatch() in index line 120