• Resolved Petr Sláma

    (@seo-peter)


    You use in the wp-content/plugins/translatepress-multilingual/includes/class-query.php this:

    if ( $this->db->get_var( “SHOW TABLES LIKE ‘$table_name'” ) != $table_name )

    I had a client who had 2 tables “wp_trp_dictionary_en_gb_nl-nl” and “wp_trp_dictionary_en_gb_nl_nl” for unknown reason in the database.

    SHOW TABLES LIKE “wp_trp_dictionary_en_gb_nl_nl” returns 2 tables:
    wp_trp_dictionary_en_gb_nl-nl
    wp_trp_dictionary_en_gb_nl_nl

    (the wrong one first)

    Escape table name like this:

    SHOW TABLES LIKE “wp\_trp\_dictionary\_en\_gb\_nl\_nl”

    LIKE uses 2 special characters:
    ‘%’ = “.*” = anything
    ‘_’ = “.” = any one character

Viewing 1 replies (of 1 total)
  • Plugin Support Alex

    (@alexcozmoslabs)

    Hi,

    It seems to be a bug. I noticed our developers and they will try to manage it as soon as possible. A fix should be available with one of the next versions of the plugin.

Viewing 1 replies (of 1 total)
  • The topic ‘bug in the code’ is closed to new replies.