Possible bug: Collate Charset.
-
Hi,
I installed this plugin in a fresh installation of WordPress 4.0 and noticed that it doesn’t work because the necessary tables were missing. In the PHP log file I encountered the following error in the creation table statements: “Unknown character set: ‘utf_swedish_ci'”.
I have trackdown the error to the alo-easymail.php file in the alo_em_install_db_tables() function. There is this code:
if( defined( ‘DB_COLLATE’ ) && constant( ‘DB_COLLATE’ ) != ” ) {
$collate = constant( ‘DB_COLLATE’ );
} else {
$collate = constant( ‘DB_CHARSET’ );
}and later the tables are created like this:
CREATE TABLE … DEFAULT CHARSET=”.$collate.”;That seems to be an error because COLLATE and CHARSET are two different things (https://dev.mysql.com/doc/refman/5.0/en/charset-database.html).
I don’t know exactly who are affected by this problem and maybe it depends on his/her local charsets. But I think is a serious bug, as it prevents totally the functioning of the plugin.
Cheers,
Christian.
- The topic ‘Possible bug: Collate Charset.’ is closed to new replies.