Problem with submission after servidor change

Hello everyone! It’s been a long time since I’ve been here, many years without any issues with OJS. I’m using version 3.3.0.16, and recently we had to make a server change because we hired a new server with a more advanced processor. The issue is that after this update, I’ve been encountering occasional problems during submissions. Some users have indicated that on the third step of the submission, the process freezes, and the loading icon keeps spinning but nothing progresses (as shown in the screenshot below).

Checking the error log, the message is as follows:

[26-May-2025 14:56:34 America/Sao_Paulo] PHP Fatal error:  Uncaught PDOException: SQLSTATE[HY000]: General error: 3988 Conversion from collation utf8mb3_general_ci into latin1_swedish_ci impossible for parameter in /home/dpgpsifp/psicodebate/lib/pkp/lib/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOStatement.php:119
Stack trace:
#0 /home/dpgpsifp/psicodebate/lib/pkp/lib/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOStatement.php(119): PDOStatement->execute()
#1 /home/dpgpsifp/psicodebate/lib/pkp/lib/vendor/laravel/framework/src/Illuminate/Database/Connection.php(489): Doctrine\DBAL\Driver\PDOStatement->execute()
#2 /home/dpgpsifp/psicodebate/lib/pkp/lib/vendor/laravel/framework/src/Illuminate/Database/Connection.php(664): Illuminate\Database\Connection->Illuminate\Database\{closure}()
#3 /home/dpgpsifp/psicodebate/lib/pkp/lib/vendor/laravel/framework/src/Illuminate/Database/Connection.php(631): Illuminate\Database\Connection->runQueryCallback()
#4 /home/dpgpsifp/psicodebate/lib/pkp/lib/vendor/laravel/framework/src/Illuminate/Database/Connection.php(477): Illuminate\Database\Connection->run()
#5 /home/dpgpsifp/psicodebate/lib/pkp/lib/vendor/staudenmeir/laravel-upsert/src/Query/Builder.php(91): Illuminate\Database\Connection->affectingStatement()
#6 /home/dpgpsifp/psicodebate/lib/pkp/classes/db/DAO.inc.php(152): Staudenmeir\LaravelUpsert\Query\Builder->upsert()
#7 /home/dpgpsifp/psicodebate/lib/pkp/classes/db/SchemaDAO.inc.php(173): DAO->replace()
#8 /home/dpgpsifp/psicodebate/lib/pkp/classes/publication/PKPPublicationDAO.inc.php(150): SchemaDAO->updateObject()
#9 /home/dpgpsifp/psicodebate/lib/pkp/classes/services/PKPPublicationService.inc.php(526): PKPPublicationDAO->updateObject()
#10 /home/dpgpsifp/psicodebate/lib/pkp/classes/submission/PKPSubmissionMetadataFormImplementation.inc.php(196): PKP\Services\PKPPublicationService->edit()
#11 /home/dpgpsifp/psicodebate/lib/pkp/classes/submission/form/PKPSubmissionSubmitStep3Form.inc.php(100): PKPSubmissionMetadataFormImplementation->execute()
#12 /home/dpgpsifp/psicodebate/lib/pkp/pages/submission/PKPSubmissionHandler.inc.php(177): PKPSubmissionSubmitStep3Form->execute()
#13 /home/dpgpsifp/psicodebate/lib/pkp/classes/core/PKPRouter.inc.php(397): PKPSubmissionHandler->saveStep()
#14 /home/dpgpsifp/psicodebate/lib/pkp/classes/core/PKPPageRouter.inc.php(246): PKPRouter->_authorizeInitializeAndCallRequest()
#15 /home/dpgpsifp/psicodebate/lib/pkp/classes/core/Dispatcher.inc.php(144): PKPPageRouter->route()
#16 /home/dpgpsifp/psicodebate/lib/pkp/classes/core/PKPApplication.inc.php(360): Dispatcher->dispatch()
#17 /home/dpgpsifp/psicodebate/index.php(68): PKPApplication->execute()
#18 {main}

Next Doctrine\DBAL\Driver\PDO\Exception: SQLSTATE[HY000]: General error: 3988 Conversion from collation utf8mb3_general_ci into latin1_swedish_ci impossible for parameter in /home/dpgpsifp/psicodebate/lib/pkp/lib/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDO/Exception.php:18
Stack trace:
#0 /home/dpgpsifp/psicodebate/lib/pkp/lib/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOStatement.php(121): Doctrine\DBAL\Driver\PDO\Exception::new()
#1 /home/dpgpsifp/psicodebate/lib/pkp/lib/vendor/laravel/framework/src/Illuminate/Database/Connection.php(489): Doctrine\DBAL\Driver\PDOStatement->execute()
#2 /home/dpgpsifp/psicodebate/lib/pkp/lib/vendor/laravel/framework/src/Illuminate/Database/Connection.php(664): Illuminate\Database\Connection->Illuminate\Database\{closure}()
#3 /home/dpgpsifp/psicodebate/lib/pkp/lib/vendor/laravel/framework/src/Illuminate/Database/Connection.php(631): Illuminate\Database\Connection->runQueryCallback()
#4 /home/dpgpsifp/psicodebate/lib/pkp/lib/vendor/laravel/framework/src/Illuminate/Database/Connection.php(477): Illuminate\Database\Connection->run()
#5 /home/dpgpsifp/psicodebate/lib/pkp/lib/vendor/staudenmeir/laravel-upsert/src/Query/Builder.php(91): Illuminate\Database\Connection->affectingStatement()
#6 /home/dpgpsifp/psicodebate/lib/pkp/classes/db/DAO.inc.php(152): Staudenmeir\LaravelUpsert\Query\Builder->upsert()
#7 /home/dpgpsifp/psicodebate/lib/pkp/classes/db/SchemaDAO.inc.php(173): DAO->replace()
#8 /home/dpgpsifp/psicodebate/lib/pkp/classes/publication/PKPPublicationDAO.inc.php(150): SchemaDAO->updateObject()
#9 /home/dpgpsifp/psicodebate/lib/pkp/classes/services/PKPPublicationService.inc.php(526): PKPPublicationDAO->updateObject()
#10 /home/dpgpsifp/psicodebate/lib/pkp/classes/submission/PKPSubmissionMetadataFormImplementation.inc.php(196): PKP\Services\PKPPublicationService->edit()
#11 /home/dpgpsifp/psicodebate/lib/pkp/classes/submission/form/PKPSubmissionSubmitStep3Form.inc.php(100): PKPSubmissionMetadataFormImplementation->execute()
#12 /home/dpgpsifp/psicodebate/lib/pkp/pages/submission/PKPSubmissionHandler.inc.php(177): PKPSubmissionSubmitStep3Form->execute()
#13 /home/dpgpsifp/psicodebate/lib/pkp/classes/core/PKPRouter.inc.php(397): PKPSubmissionHandler->saveStep()
#14 /home/dpgpsifp/psicodebate/lib/pkp/classes/core/PKPPageRouter.inc.php(246): PKPRouter->_authorizeInitializeAndCallRequest()
#15 /home/dpgpsifp/psicodebate/lib/pkp/classes/core/Dispatcher.inc.php(144): PKPPageRouter->route()
#16 /home/dpgpsifp/psicodebate/lib/pkp/classes/core/PKPApplication.inc.php(360): Dispatcher->dispatch()
#17 /home/dpgpsifp/psicodebate/index.php(68): PKPApplication->execute()
#18 {main}

Next Illuminate\Database\QueryException: SQLSTATE[HY000]: General error: 3988 Conversion from collation utf8mb3_general_ci into latin1_swedish_ci impossible for parameter (SQL: insert into `publication_settings` (`publication_id`, `locale`, `setting_name`, `setting_value`) values (1227, , citationsRaw, Benassi, C. B. P., Cancian, Q. G., & Strieder D. M. (2023). Estudo piloto: Um instrumento primordial para a pequisa de percepção da ciência. Ensino e Tecnologia em Revista, 7(1), 210-225. 
Borges, J. L., & Dell’Aglio, D. D. (2008). Abuso Sexual Infantil: Indicadores de Risco e Conseqüências no Desenvolvimento de Crianças. Revista Interamericana de Psicología, 42(3), 528–536. Retrieved from http://pepsic.bvsalud.org/pdf/rip/v42n3/v42n3a13.pdf
Cassidy, J., & Shaver, P. R. (2016). Handbook of attachment : theory, research, and clinical applications. In Handbook of Attachment: Theory, Research, and Clinical Appication (3rd ed.). London.
Conselho Federal de Psicologia. Resolução N° 031, de 15 de dezembro de 2022. Estabelece diretrizes para a realização de Avaliação Psicológica no exercício profissional da psicóloga e do psicólogo, regulamenta o Sistema de Avaliação de Testes Psicológicos - SATEPSI e revoga a Resolução CFP nº09/2018. (2022).
Conselho Federal de Psicologia. Resolução No 004, de 26 de março de 2020. Dispõe sobre regulamentação de serviços psicológicos prestados por meio de Tecnologia da Informação e da Comunicação durante a pandemia do COVID-19. (2020).
Dosovitsky, G., & Bunge, E. (2023). Development of a Chatbot for depression adolescent perceptions and recommendations. Child and Adolescent Mental Health, 28(1), 124-127. https://doi.org/10.1111/camh.12627  
Dunham, J. (2024). Compreendendo as intenções e entidades do chatbot para aumentar a eficiência e a eficácia. Retrived from https://www.chatbot.com/blog/chatbot-intents.
Florentino, B. R. B. (2015). As possíveis consequências do abuso sexual praticado contra crianças e adolescentes. Fractal : Revista de Psicologia, 27(2), 139–144. https://doi.org/10.1590/1984-0292/805
Fogg, B. J. (2002). Persuasive technology: Using Computers to Change What We Think and Do. Ubiquity, 2002:1–32. https://doi.org/10.1145/764008.763957
Fontes, L. F. C., Conceição, O. C., & Machado, S. (2017). Violência sexual na adolescência, perfil da vítima e impactos sobre a saúde mental. Ciência & Saúde Coletiva, 22(9), 2919–2928. https://doi.org/10.1590/1413-81232017229.11042017
Gonçalves, A. P., Zuanazzi, A. C., & Villemor-Amaral, A. E. de. (2019). Aplicação R-Otimizada no Zulliger: evidências de validade com pacientes depressivos. Revista Avaliação Psicológica, 18(02), 111–120. https://doi.org/10.15689/ap.2019.1802.16215.01
Google. (2025). Conceitos básicos do Dialogflow ES. Retrieved from https://cloud.google.com/dialogflow/es/docs/basics?hl=pt-br
Hill, J., Randolph Ford, W., & Farreras, I. G. (2015). Real conversations with artificial intelligence: A comparison between human–human online conversations and human–chatbot conversations. Computers in Human Behavior, 49, 245–250. https://doi.org/10.1016/j.chb.2015.02.026
Hou, J., Liu, S., & van Wingen, G. (2023). Increased subcortical brain activity in anxious but not depressed individuals. J Psychiatr Res., 160, 38-46. http://dx.doi.org/10.1016/j.jpsychires.2023.02.013
 IBM. What is a Chatbot? (2022). Retrieved from:  https://www.ibm.com/topics/Chatbots.
Kowatsch, T., Schachner, T., Harperink, S. Barata, F., Dittler, U., Xiao, G., Stanger, C., Wangenheim, F., Fleisch, E., Oswald, H., & Möller, A. (2021). 
Labadze, L., Grigolia, M., & Machaidze L. (2023). Role of AI chatbots in education: Systematic literature review. Revista Internacional de Tecnologia Educacional no Ensino Superior, 20, 56. https://doi.org/10.1186/s41239-023-00426-1.
Lima, E. S., & Scortegagna, S. A. (2022). Child Sexual Violence: Interpersonal Relationship and Self-Image Evaluated by Zulliger R-Optimized Application. Psico-USF, 27(3), 553-565. https://doi.org/10.1590/1413-82712033270312
Lima, E. S., Scortegagna, S. A., & De Marchi, A. C. B. (2024) Psico Bot: un robot para la evaluación psicológica de niños y adolescentes. Ciencias Psicológicas, 18(2) e3428. https://doi.org/10.22235/cp.v18i2.3428
Marry, S. N., Cargo, T., Christie G., Donkin, L., Hetrick S., Fleming T., Holt-Quick, C., Hopkins, S., Stasiak, K., & Warren, J. (2020). Debate: Supporting the mental health of school students in the COVID-19 pandemic in New Zealand – a digital ecosystem approach. Child Adolescent Mental Health, 25(4), 267-269. http://dx.doi.org/10.1111/camh.12429
Oracle. (2020). O que é um chatbot? Retrived from: https://www.oracle.com/br/chatbots/what-is-a-chatbot/?utm_source=chatgpt.com
Perfect, M. M., Tharinger, D. J., Keith, T. Z., & Lyle-Lahroud, T. (2011). Relations Between Minnesota Multiphasic Personality Inventory–A Scales and Rorschach Variables With the Scope and Severity of Maltreatment Among Adolescents. Journal of Personality Assessment, 93(6), 582–591. https://doi.org/10.1080/00223891.2011.608754
Polli, L., Zanin, S. C. G., & Gaspodini, I. B. (2019). Características cognitivas e emocionais de crianças vítimas de violência sexual no teste das Pirâmides Coloridas de Pfister. Revista Universo Psi, 1(1), 103–124.
Schick, A., Feine, J., Morana, S., Maedche, A., & Reininghaus, U. (2022) Validity of Chatbots Use for Mental Health Assessment: Experimental Study. Advancing Digital Health & Open Science, 10(10), e28082. http://dx.doi.org/10.2196/28082
Scortegagna, S. A., & Villemor-Amaral, A. E. De. (2009). Autopercepção no Rorschach de vítimas de abuso sexual infantil. Psico, 40, 328–336.
Scortegagna, S. A., & Villemor-Amaral, A. E. De. (2013). Traumatic loss and helplessness : qualitative analysis of responses in the Rorschach. Psico-USF, 18, 1–12.
Scortegagna, S. A., Ribeiro, R. K. S. M., & Villemor-Amaral, A. E. (2016). New Contributions of the Rorschach Method on the Effects of Sexual Abuse in Childhood. Psychology, 07(02), 215–222. https://doi.org/10.4236/psych.2016.72024
Seitl, M., Dočkalová, J., Dostál, D., Kolařík, M., Hasoňová, V., Palová, K., & Fryštacká, K. (2018). Standardizace počtu odpovědí v zulligerově testu: první krok při vývoji nového evidence - based systému. E-Psychologie, 12(4), 1–15.
Villemor-Amaral, A. E., & Primi, R. (2009). Teste de Zulliger no sistema compreensivo ZSC - forma individual (1st ed.). São Paulo: Casa do Psicólogo.
Wu, Q., Chi, P., Lin, X., & Du, H. (2018). Child maltreatment and adult depressive symptoms: Roles of self-compassion and gratitude. Child Abuse and Neglect, 80, 62–69. https://doi.org/10.1016/j.chiabu.2018.03.013
Zhang, J., Wang, X., Lu, J., Liu, L., & Feng, Y. (2024). The impact of emotional expression by artificial intelligence recommendation chatbots on perceived humanness and social interactivity. Decision Support Systems, 187, e114347. https://doi.org/10.1016/j.dss.2024.114347) on duplicate key update `publication_id` = values(`publication_id`), `locale` = values(`locale`), `setting_name` = values(`setting_name`), `setting_value` = values(`setting_value`)) in /home/dpgpsifp/psicodebate/lib/pkp/lib/vendor/laravel/framework/src/Illuminate/Database/Connection.php:671
Stack trace:
#0 /home/dpgpsifp/psicodebate/lib/pkp/lib/vendor/laravel/framework/src/Illuminate/Database/Connection.php(631): Illuminate\Database\Connection->runQueryCallback()
#1 /home/dpgpsifp/psicodebate/lib/pkp/lib/vendor/laravel/framework/src/Illuminate/Database/Connection.php(477): Illuminate\Database\Connection->run()
#2 /home/dpgpsifp/psicodebate/lib/pkp/lib/vendor/staudenmeir/laravel-upsert/src/Query/Builder.php(91): Illuminate\Database\Connection->affectingStatement()
#3 /home/dpgpsifp/psicodebate/lib/pkp/classes/db/DAO.inc.php(152): Staudenmeir\LaravelUpsert\Query\Builder->upsert()
#4 /home/dpgpsifp/psicodebate/lib/pkp/classes/db/SchemaDAO.inc.php(173): DAO->replace()
#5 /home/dpgpsifp/psicodebate/lib/pkp/classes/publication/PKPPublicationDAO.inc.php(150): SchemaDAO->updateObject()
#6 /home/dpgpsifp/psicodebate/lib/pkp/classes/services/PKPPublicationService.inc.php(526): PKPPublicationDAO->updateObject()
#7 /home/dpgpsifp/psicodebate/lib/pkp/classes/submission/PKPSubmissionMetadataFormImplementation.inc.php(196): PKP\Services\PKPPublicationService->edit()
#8 /home/dpgpsifp/psicodebate/lib/pkp/classes/submission/form/PKPSubmissionSubmitStep3Form.inc.php(100): PKPSubmissionMetadataFormImplementation->execute()
#9 /home/dpgpsifp/psicodebate/lib/pkp/pages/submission/PKPSubmissionHandler.inc.php(177): PKPSubmissionSubmitStep3Form->execute()
#10 /home/dpgpsifp/psicodebate/lib/pkp/classes/core/PKPRouter.inc.php(397): PKPSubmissionHandler->saveStep()
#11 /home/dpgpsifp/psicodebate/lib/pkp/classes/core/PKPPageRouter.inc.php(246): PKPRouter->_authorizeInitializeAndCallRequest()
#12 /home/dpgpsifp/psicodebate/lib/pkp/classes/core/Dispatcher.inc.php(144): PKPPageRouter->route()
#13 /home/dpgpsifp/psicodebate/lib/pkp/classes/core/PKPApplication.inc.php(360): Dispatcher->dispatch()
#14 /home/dpgpsifp/psicodebate/index.php(68): PKPApplication->execute()
#15 {main}
  thrown in /home/dpgpsifp/psicodebate/lib/pkp/lib/vendor/laravel/framework/src/Illuminate/Database/Connection.php on line 671

It is important to note that apparently, this problem is not widespread, as we continue to receive other submissions, but we have already encountered two similar cases with the same error. If anyone can guide me, I would really appreciate it!

Hi @Hugo_Melo,

I suspect there was an inadvertent collation change when you moved the database from one server to another. Try using MySQL SHOW TABLE STATUS statements to check what collations your tables/columns use, and then check config.inc.php to see what the collation configuration is there:

SHOW TABLE STATUS WHERE name = 'publication_settings';

We recommend using collation = utf8_general_ci in config.inc.php and a collation of utf8mb3_general_ci in MySQL – but simply changing those to the right setting may not be enough. If they mismatch, you may need to convert the data as well. That’s more of a MySQL process than an OJS process, so you might find resources on StackOverflow etc.

(UTF8MB4 character sets are good too.)

Regards,
Alec Smecher
Public Knowledge Project Team

Thank you so much for anwering me @asmecher!

Well, I’ve been studying this error a lot because it was something that didn’t exist before the server migration, and I keep wondering how this type of change could happen simply by migrating the server. Well, the “publication_settings” table is actually in latin1_swedish_ci. I’ve been trying to figure out if the first versions of OJS used this collation or if it just came out of nowhere.
In my config.inc.php, the collation is “;collation = utf8_general_ci”, that is, disabled. The database is in utf8mb3_general_ci.
I really think the most logical solution would be to convert this table to utf8mb3_general_ci, but I’m afraid of corrupting my data. It’s 10 years of magazines.

Hi @Hugo_Melo,

I forget the exact details, but at some point MySQL changed its default character set from Latin1 to UTF-8. (This is what gets used when you run a CREATE DATABASE statement without specifying a DEFAULT CHARACTER SET clause.) So if you created your database before that change, and didn’t specify DEFAULT CHARACTER SET utf8 when creating the database, your tables would’ve been created with a Latin1 encoding in MySQL; if your OJS configuration was set to use UTF8 (the long-standing default), it will lead to a mismatch.

The most important thing is that before the server move your data will be consistent, even if it’s incorrectly encoded. This is a lot easier to fix than a situation where some data is correctly encoded and other data is not!

In addition to StackOverflow, search the forum for references to a tool called ftfy; there are several threads about database encoding issues and how to potentially resolve them.

Regards,
Alec Smecher
Public Knowledge Project Team