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.

WordPress 6.7 has introduced a new issue that impact translations, please update WooCommerce and WPML to the latest versions before you report issues. More about this here - https://wpml.org/errata/php-error-wp-6-7-notice-function-_load_textdomain_just_in_time-was-called/
Sun Mon Tue Wed Thu Fri Sat
- - 9:00 – 18:00 9:00 – 18:00 9:00 – 18:00 9:00 – 18:00 9:00 – 18:00
- - - - - - -

Supporter timezone: America/Lima (GMT-05:00)

This topic contains 5 replies, has 0 voices.

Last updated by Andreas W. 5 days, 19 hours ago.

Assisted by: Andreas W..

Author Posts
November 17, 2024 at 7:09 pm #16412041

carmM

Background of the issue:
I am trying to update URLs in posts, but the changes do not persist. The issue can be seen on this page: hidden link. I have also provided a video illustrating what I see in the backend and what I have done to resolve it: hidden link.

Symptoms:
The content remains in English, and the links within the text are not updating as expected.

Questions:
Why are the URLs in my posts not updating?
How can I ensure the content is translated into French and the links are updated?hidden link

November 18, 2024 at 9:41 pm #16416646

Andreas W.
Supporter

Languages: English (English ) Spanish (Español ) German (Deutsch )

Timezone: America/Lima (GMT-05:00)

Hello,

Usually, after migrating the site, you should go to the WordPress Permalink settings and save them again.

This will reset the permalinks of the site and they will use the new site URL.

But when it comes to lanks that are placed directly into the content of pages or posts, means as raw text with HTML, then you usually would need to adjust those links manually.

It is not even really a WPML issues. You usually would experience the same issue on a site running without WPML.

I see Search & Replace plugin seems not to solve the issue.

Maybe you could try to fix the issue with a PHP snippet like this one:

function replace_site_url() {
    global $wpdb;
    $old_url = '<em><u>hidden link</u></em>';
    $new_url = '<em><u>hidden link</u></em>';
    $wpdb->query(
        $wpdb->prepare(
            "UPDATE {$wpdb->posts} SET post_content = REPLACE(post_content, %s, %s)",
            $old_url,
            $new_url
        )
    );
}
add_action('init', 'replace_site_url');

Adjust the URLs, then paste it to the functions.php file of your theme. Refresh the website and remove the snippet again.

If this will still not solve the issue, please take note that this is expected WordPress behavior and not a WPML issue.

Best regards
Andreas

November 19, 2024 at 2:59 pm #16420323

carmM

Please see hidden link

November 19, 2024 at 3:50 pm #16420594

carmM

This is two articles that I cant update as examples:
hidden link

hidden link

November 19, 2024 at 7:18 pm #16421190

Andreas W.
Supporter

Languages: English (English ) Spanish (Español ) German (Deutsch )

Timezone: America/Lima (GMT-05:00)

The URLs that are getting translation on your video according to their label are Button Links and not Text Links.

Internal links from raw text do usually not appear inside the WPML Translation Editor.

Instead WPML will be able to adjust those links once the content you are linking to has been translated.

At the moment I see that this seems to work on your French example posts.

Could you please verify?

November 19, 2024 at 8:44 pm #16421535

carmM

The content has already been translated... the editor is not saving the updates I make to the blog posts. This is a live site and a big problem can I get some quick help please.

November 19, 2024 at 10:19 pm #16421792

Andreas W.
Supporter

Languages: English (English ) Spanish (Español ) German (Deutsch )

Timezone: America/Lima (GMT-05:00)

I would like to request temporary access (wp-admin and FTP) to the site to investigate the issue further.

The required fields are below the comment section when you log in to leave the next reply. The information you provide is private, meaning only you and I can see and access it.

IMPORTANT
Please be sure to back up the site and database before granting us access.

If you can't see the "wp-admin / FTP" fields, your post and site login details will be set to "PUBLIC". DO NOT publish the data unless you see the required wp-admin / FTP fields.

The private reply form looks like this:
hidden link

The next time you reply, click on "I still need assistance".

Video:
hidden link

Please note that we are obliged to request this information individually on each ticket. We are not allowed to access any credentials that were not specifically submitted on this ticket in the private response form.

November 19, 2024 at 11:21 pm #16421894

Andreas W.
Supporter

Languages: English (English ) Spanish (Español ) German (Deutsch )

Timezone: America/Lima (GMT-05:00)

Hello,

I was not yet able to figure out what is causing the issue, but it seems to be related to the new UI of the Advanced Translation Editor.

Take note, that it is not recommended to use inlide CSS when working with the Advanced Translation Editor, as you need to translate it.

Example:
<p style="padding-left: 40px;">3. Ensuring Safety and Reliability</p>

See screenshot. Anyhow, the translation is still stuck at 98%.

I wanted to ask, if you would agree converting the post content to WP Bakery content and give it a try with the translation?

Are there more posts that have a similar issue?

Best regards
Andreas

inline style.jpg
November 20, 2024 at 1:17 am #16422063

carmM

Hi Andreas, every post uses the avada theme. It is all 144 of them. I was able to get past this issue by a very cumbersome editing process of going to the view posts screen -> click the translate button there -> go to the advanced editor -> Update the links -> switch to old editor -> check off the updated links and change them from green to orange -> click the button to save -> go. back to post screen

This seems to be a very long and time consuming workaround

November 20, 2024 at 4:42 pm #16425780

Andreas W.
Supporter

Languages: English (English ) Spanish (Español ) German (Deutsch )

Timezone: America/Lima (GMT-05:00)

By switching to the old editor, you mean that you changes the Advanced Translation Editor setting to use its old UI?