Viewing 4 replies - 1 through 4 (of 4 total)
  • You can modify the shashin/lib/ShashinDatabaseFacade.php, around the line 58 and 59

    Replace the charset
    $charset = ‘utf8’;
    $collate = ‘utf8_general_ci’;

    I don’t know why but it works. The $wpdb->charset get the wrong setting from my server.

    Kelvin

    This is the code:
    // strip trailing comma and linebreak
    $sql = substr($sql, 0, -2);
    $charset = $wpdb->charset ? $wpdb->charset : ‘utf8’;
    $collate = $wpdb->collate ? $wpdb->collate : ‘utf8_general_ci’;
    $sql .= “\n)\nDEFAULT CHARACTER SET $charset COLLATE $collate;”;

    What do you mean exactly with?
    Replace the charset
    $charset = ‘utf8’;
    $collate = ‘utf8_general_ci’;

    There are no changes.

    It works. Thank you.
    Just replacing these two lines:
    $charset = $wpdb->charset ? $wpdb->charset : ‘utf8’;
    $collate = $wpdb->collate ? $wpdb->collate : ‘utf8_general_ci’;

    for these ones:
    $charset = ‘utf8’;
    $collate = ‘utf8_general_ci’;

    You can solve the error “Failed to create table wp_shashin_album” during the installation of the plugin if you first create the two tables for Shashin; wp_shashin_album and wp_shashin_photo both with a single column “id” as primairy key.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Shashin Error’ is closed to new replies.