Skip Navigation

This is the technical support forum for WPML - the multilingual WordPress plugin.

Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.

Our next available supporter will start replying to tickets in about 0.21 hours from now. Thank you for your understanding.

Tagged: 

This topic contains 1 reply, has 2 voices.

Last updated by Bruno Kos 9 months, 4 weeks ago.

Author Posts
January 23, 2024 at 12:10 pm

georgiosS-12

i translate for a start the home page and when i change to english version i get 502 for the translated home page

January 23, 2024 at 1:18 pm
January 23, 2024 at 1:22 pm #15216938

Bruno Kos
Supporter

Languages: English (English ) German (Deutsch ) French (Français )

Timezone: Europe/Zagreb (GMT+01:00)

If the plugin fails, please try this:

1. Backup Your Database: Before making any changes, it's essential to create a backup of your WordPress database to avoid any potential data loss.

2. Identify the Affected Tables: The error message mentions several tables such as `zvTrqHjYi_term_relationships`, `zvTrqHjYi_term_taxonomy`, `zvTrqHjYi_icl_translations`, and `zvTrqHjYi_posts`. You will need to examine these tables to determine which columns have collation mismatches.

3. Change Collation: You can change the collation of specific columns in the affected tables to match the desired collation (`utf8mb4_unicode_520_ci` in most cases since it's recommended for WordPress).

Here's a general SQL query template to change the collation of a column:

ALTER TABLE table_name MODIFY column_name VARCHAR(length) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_520_ci;

Replace `table_name` with the actual table name, `column_name` with the name of the column with the collation mismatch, and `length` with the appropriate length for your column.

For example, if you want to change the collation of the `my_column` column in the `my_table` table:

ALTER TABLE my_table MODIFY my_column VARCHAR(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_520_ci;

Repeat this process for any other tables or columns mentioned in the error message that have collation mismatches.

4. Check the WordPress Configuration: Ensure that your WordPress configuration (`wp-config.php`) has the correct database character set and collation settings. You should have the following lines in your `wp-config.php`:

define('DB_CHARSET', 'utf8mb4');
define('DB_COLLATE', 'utf8mb4_unicode_520_ci');

Make sure these settings match the collation you've set in your database.

5. Test Your Website: After making these changes, test your WordPress website to ensure that the error is resolved and that your site functions correctly.

Remember to always back up your database before making any changes, as altering the database structure can have consequences if done incorrectly.

January 25, 2024 at 12:41 pm #15226156

georgiosS-12

nope for the moment thank you