We recently upgraded from version 3.1.2.1 to version 3.3.0.8. Even before that, our operating system was from debian 9 to debian 10. Currently debian 10, php7.3, mysql Ver 15.1 Distrib 10.3.31-MariaDB.
We ran into an error with the sql update TRUNCATE the following tables:
submission_search_object_keywords; submission_search_objects; submission_search_keyword_list;
The reason is to re-create the database with the settings (CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci). Unfortunately, the load was very slow due to the large search database.
Re-indexing runs to the next error:
[08-Mar-2022 01:41:50 Europe/Budapest] PHP Fatal error: Uncaught PDOException: SQLSTATE[22007]: Invalid datetime format: 1366 Incorrect string value: ‘\xF0\x9D\x91\x89\xF0\x9D…’ for column ojsdata
.submission_search_keyword_list
.keyword_text
at row 1 in /pathojs//lib/pkp/lib/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOStatement.php:115
Stack trace:
#0 /pathojs/lib/pkp/lib/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOStatement.php(115): PDOStatement->execute(NULL)
#1 /pathojs/lib/pkp/lib/vendor/laravel/framework/src/Illuminate/Database/Connection.php(489): Doctrine\DBAL\Driver\PDOStatement->execute()
#2 /path/ojs/lib/pkp/lib/vendor/laravel/framework/src/Illuminate/Database/Connection.php(664): Illuminate\Database\Connection->Illuminate\Database{closure}(‘INSERT INTO sub…’, Array)
#3 /pathojs/lib/pkp/lib/vendor/laravel/framework/src/Illuminate/Database/Connection.php(631): Illuminate\Database\Connection->runQueryCallback(‘INSERT INTO sub…’, Array, Object(Closure)) in /pathojs/lib/pkp/lib/vendor/laravel/framework/src/Illuminate/Database/Connection.php on line 671
SHOW FULL COLUMNS FROM submission_search_keyword_list; +--------------+-------------+-----------------+------+-----+---------+----------------+---------------------------------+---------+ | Field | Type | Collation | Null | Key | Default | Extra | Privileges | Comment | +--------------+-------------+-----------------+------+-----+---------+----------------+---------------------------------+---------+ | keyword_id | bigint(20) | NULL | NO | PRI | NULL | auto_increment | select,insert,update,references | | | keyword_text | varchar(60) | utf8_general_ci | NO | UNI | NULL | | select,insert,update,references | | +--------------+-------------+-----------------+------+-----+---------+----------------+---------------------------------+---------+