• Resolved cfinnberg

    (@cfinnberg)


    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 (http://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.

    https://wordpress.org/plugins/alo-easymail/

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Possible bug: Collate Charset.’ is closed to new replies.