unable to save japanese text in templates or content fields
Step to reproduce
I thought it was due to the database being set to latin_swedish_ci but even changing to utf8_general_ci the problem still occurs.
Observed behavior
as soon as i place any Japanese kanji (character) in my template and try to save it I get this error popping up “An error occurred while saving the template.”
I check the error log and it has this error
[2022-06-01 04:17:18] (ERROR @ /var/www/vhosts/53/105674/webspace/httpdocs/etv.efriendseigomura.com/core/src/Revolution/modTemplate.php : 94) An error occurred while saving the template.Array
[2022-06-01 04:18:56] (ERROR @ /var/www/vhosts/53/105674/webspace/httpdocs/etv.efriendseigomura.com/core/vendor/xpdo/xpdo/src/xPDO/xPDO.php : 1309) Could not get table name for class: MODX\Revolution\modFormCustomizationSet
[2022-06-01 04:18:56] (ERROR @ /var/www/vhosts/53/105674/webspace/httpdocs/etv.efriendseigomura.com/core/vendor/xpdo/xpdo/src/xPDO/xPDO.php : 786) MODX\Revolution\modFormCustomizationSet::getSelectColumns() is not a valid static method.
[2022-06-01 04:18:56] (ERROR @ /var/www/vhosts/53/105674/webspace/httpdocs/etv.efriendseigomura.com/core/vendor/xpdo/xpdo/src/xPDO/Om/xPDOObject.php : 227) Error 42S02 executing statement:
Array
(
[0] => 42S02
[1] => 1146
[2] => Table 'db1041222_etv_v2.FCSet' doesn't exist
)
Environment
MODX version MODX Revolution 3.0.1-pl (traditional)
PHP Version 7.2.10
In MySQL every table in a database (even every column in a table) can have its own charset.
I suspect you didn’t change the charset correctly for all the tables in the database.
This topic was automatically closed 2 days after discussion ended and a solution was marked. New replies are no longer allowed. You can open a new topic by clicking the link icon below the original post or solution and selecting “+ New Topic”.