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.

This topic contains 1 reply, has 2 voices.

Last updated by Bobby 1 year, 5 months ago.

Assigned support staff: Bobby.

Author Posts
May 6, 2018 at 4:45 pm #2000126

aymanK

2018/05/06 15:56:28 [error] 27525#27525: *2667352 FastCGI sent in stderr: "PHP message: WordPress database error Duplicate entry '919-16' for key 'PRIMARY' for query UPDATE wp_term_relationships AS o,
wp_icl_translations AS ic,
wp_icl_translations AS iw,
wp_icl_translations AS ip,
wp_posts AS p
SET o.term_taxonomy_id = ic.element_id
WHERE ic.trid = iw.trid
AND ic.element_type = iw.element_type
AND iw.element_id = o.term_taxonomy_id
AND ic.language_code = ip.language_code
AND ip.element_type = CONCAT('post_', p.post_type)
AND ip.element_id = p.ID
AND o.object_id = p.ID
AND o.term_taxonomy_id != ic.element_id
AND iw.element_type = 'tax_product_type' made by require_once('wp-admin/admin.php'), require_once('wp-load.php'), require_once('/var/www/misrelkheir.org/wp-config.php'), require_once('wp-settings.php'), do_action('init'), WP_Hook->do_action, WP_Hook->apply_filters, TranslationManagement->init, WPML_Config::load_config, WPML_Config::load_config_run, WPML_Config::parse_wpml_config_files, WPM" while reading response header from upstream, client: 197.164.248.25, server: misrelkheir.org, request: "GET /wp-admin/plugins.php HTTP/2.0", upstream: "hidden link", host: "misrelkheir.org", referrer: "hidden link"

May 7, 2018 at 9:14 pm #2020881

Bobby
Supporter

Languages: English (English )

Timezone: America/Los_Angeles (GMT-07:00)

Hello,

Are you able to go to WPML->Support->Troubleshooting and see if the button "Recreate ST DB Table" exists ? if yes please run it and let me know if the error resolves.

If not please go to your DB and provide me with a screenshot of your wp_icl_ DB tables.

also your debug error log.

You can see how to enable debug logging here:
https://wpml.org/documentation/support/debugging-wpml/

Go in your wp-config.php file and look for define(‘WP_DEBUG’, false);. Change it to:
define('WP_DEBUG', true);

Edit your wp-config.php file and add these lines, just before it says 'stop editing here':

ini_set('log_errors',TRUE);
ini_set('error_reporting', E_ALL);
ini_set('error_log', dirname(__FILE__) . '/error_log.txt');

This will create an error_log.txt file in your site's root directory. Please send me its contents.

The topic ‘[Closed] WP Error with WPML’ is closed to new replies.