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.
Sun | Mon | Tue | Wed | Thu | Fri | Sat |
---|---|---|---|---|---|---|
5:00 – 13:00 | 5:00 – 13:00 | 5:00 – 13:00 | 5:00 – 13:00 | 5:00 – 13:00 | - | - |
- | - | - | - | - | - | - |
Supporter timezone: Africa/Cairo (GMT+02:00)
Tagged: Exception
This topic contains 0 replies, has 0 voices.
Last updated by Osama Mersal 7 hours, 1 minute ago.
Assisted by: Osama Mersal.
Author | Posts |
---|---|
February 27, 2025 at 9:22 am #16754703 | |
esmeraldaC |
Background of the issue: Symptoms: Questions: |
February 27, 2025 at 2:25 pm #16756661 | |
esmeraldaC |
I tested as you suggested: The result is the same as it was with the problematic post before - the content will be overwritten with english one as I described. Regards! |
February 27, 2025 at 3:47 pm #16757042 | |
esmeraldaC |
Here is one error log which appeared probably during that time when the translation problems occurred with the post: [27-Feb-2025 15:36:07 UTC] WordPress database error Duplicate entry '136298-1226' for key 'PRIMARY' for query INSERT INTO `wp_icl_links_post_to_post` (`id_from`, `id_to`) VALUES (136298, 1226) made by shutdown_action_hook, do_action('shutdown'), WP_Hook->do_action, WP_Hook->apply_filters, WPML\UserInterface\Web\Infrastructure\WordPress\CompositionRoot\Config\Event\Translation\Links\ItemUpdateEvent->WPML\UserInterface\Web\Infrastructure\WordPress\CompositionRoot\Config\Event\Translation\Links\{closure}, WPML\Infrastructure\WordPress\Component\Translation\Application\Event\Links\ItemUpdateEventListenerAdapter->onShutdown, WPML\Core\Component\Translation\Application\Event\Links\ItemUpdateListener->onItemSave, WPML\Core\Component\Translation\Domain\Links\HandleUpdateOriginal->handle, WPML\Core\Component\Translation\Domain\Links\HandleUpdateOriginal->collectRelationships, WPML\Infrastructure\WordPress\Component\Translation\Domain\Links\Repository->addRelationship |
March 2, 2025 at 12:50 pm #16765500 | |
Osama Mersal Supporter
Languages: English (English ) Arabic (العربية ) Timezone: Africa/Cairo (GMT+02:00) |
Hi, Thanks for contacting WPML forums support. I'll be glad to help you today. First of all, sorry for the late reply; it was due to a higher workload. I would need to look closely at your site, so I would need to request temporary access (WP-Admin and FTP) Your answer will be private, meaning only you and I can access it. ❌ Please back up your database and website ❌ ✙ I need your permission to deactivate and reactivate the plugins and themes and change site configurations. This is also why the backup is critical. ✙ I also need your permission to take a local copy of your site to debug the issue without affecting your live site. Best regards, |
March 3, 2025 at 9:40 am #16767659 | |
Osama Mersal Supporter
Languages: English (English ) Arabic (العربية ) Timezone: Africa/Cairo (GMT+02:00) |
Hi, Thanks for the access details. I've consulted our second-tier support team about this issue and will update you as soon as they reply. Best regards, |
March 5, 2025 at 1:14 pm #16778825 | |
esmeraldaC |
Hi Regards! |
March 5, 2025 at 4:12 pm #16779822 | |
Osama Mersal Supporter
Languages: English (English ) Arabic (العربية ) Timezone: Africa/Cairo (GMT+02:00) |
Hi, The issue is in our second-tier support team's queue now, and I'll update you as soon as I have more information. Thanks for your patience Best regards, |
March 6, 2025 at 1:51 am #16780915 | |
Osama Mersal Supporter
Languages: English (English ) Arabic (العربية ) Timezone: Africa/Cairo (GMT+02:00) |
Hi, Please add the following code to your theme's function.php file. /** * Workaround for wpmlsupp-12507 */ add_action( 'shutdown', function() { if ( isset($_POST['action']) && $_POST['action'] == "elementor_ajax" && ! empty( $_POST['actions'] ) && strpos( $_POST['actions'], 'save_builder' ) !== false ) { global $wp_filter; $hook_name = 'shutdown'; $priority = 20; $class_name = 'WPML_PB_Integration'; $method = 'save_translations_to_post'; // Make sure this hook is defined and is a WP_Hook object if ( isset( $wp_filter[ $hook_name ] ) && is_a( $wp_filter[ $hook_name ], 'WP_Hook' ) ) { $hook = $wp_filter[ $hook_name ]; // Check that priority exists in the callbacks array if ( isset( $hook->callbacks[ $priority ] ) ) { // Loop through each callback at that priority foreach ( $hook->callbacks[ $priority ] as $unique_id => $callback_data ) { // Each callback's function is stored in $callback_data['function'] $callback = $callback_data['function'] ?? null; if ( is_array( $callback ) ) { [$object_or_class, $callback_method] = $callback; // Match both the method name and the class if ( $callback_method === $method && is_object( $object_or_class ) && get_class( $object_or_class ) === $class_name ) { // Remove it! unset( $hook->callbacks[ $priority ][ $unique_id ] ); } } } } } } }, 1 ); After that, please try to reproduce the issue and let me know if the issue is fixed. Best regards, |
March 6, 2025 at 9:16 am #16781943 | |
esmeraldaC |
Hi I still have the same issues with the "old" posts which I created a couple of days ago - should it fix the problem for all the posts afterwards or should I create new posts and check then? Regards! |
March 6, 2025 at 9:18 am #16781974 | |
Osama Mersal Supporter
Languages: English (English ) Arabic (العربية ) Timezone: Africa/Cairo (GMT+02:00) |
Hi, Could you please check with new posts and let me know if they work correctly? Best regards, |