Skip Navigation

This thread is resolved. Here is a description of the problem and solution.

Problem:
The client was facing an issue where translations added in the Advanced Translation Editor were not displayed on the search page. Specifically, the client mentioned that the Post Cards created with the Avada theme were translated into English, but the button with the permalink was not translated. The client was using multiple dynamic values such as Post title, Post type name, Excerpt, and Permalink.
Solution:
If you're experiencing a similar issue with translations not appearing on your search page, we recommend the following steps:
1. Ensure that you have translated the page where the search functionality is present.
2. Translate the Postcard Template used on the search page.
3. Translate the Search template itself.
4. After translating the Search template, edit the translated version to select the translated Postcard template.

Please note that this solution might not be applicable to your case if it's outdated or if your website setup is different. We highly recommend checking the related known issues, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If the issue persists, please open a new support ticket with us, and we'll be happy to help.

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.

Tagged: 

This topic contains 24 replies, has 2 voices.

Last updated by Osama Mersal 7 months ago.

Assisted by: Osama Mersal.

Author Posts
April 16, 2024 at 9:13 am #15523699

PA_Facts_2000

I have added the translation in the advanced translation editor, but somehow the translation isn't shown on the search page: hidden link

April 16, 2024 at 10:37 am #15524209

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.

Would you please elaborate more on the issue to help me understand it better?

It would be very helpful if you could share screenshots or a screen-recorded video while reproducing the issue.

Best regards,
Osama

April 16, 2024 at 11:16 am #15524538

PA_Facts_2000

Hi Osama,

I think the provided URL would give enough information, but in Avada I use Post Cards. I have translated these to English but the button with permalink isn't translated.

I use multiple dynamic values:

1. Post title
2. Post type name (aren't all translated correctly either)
3. Excerpt
4. Permalink (button)

I can provide you with login details? Can I share these safely here?

Scherm­afbeelding 2024-04-16 om 13.11.32.png
Scherm­afbeelding 2024-04-16 om 13.12.59.png
April 16, 2024 at 11:26 am #15524605

Osama Mersal
Supporter

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+02:00)

Hi,

Thanks for your reply. I checked the read more button URL, and it's correct. The issue is in the button string.

Please go to WPML-> String Translation and search for "Lees meer" and translate it.

If that didn't fix the issue, I would need to look closely at your site, so I would need to request temporary access (WP-Admin and FTP)
Preferably to a test site where the problem has been replicated.

Your answer will be private, meaning only you and I can access it.

❌ Please backup 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,
Osama

April 16, 2024 at 12:36 pm #15525414

Osama Mersal
Supporter

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+02:00)

Hi,

1) I deactivated the plugins to check the issue, but I faced a fatal error that only appeared in the dashboard. I also tried using the provided FTP details, but they did not work.

Please provide the WordPress debug.log; this will allow us to see if any PHP errors are being produced. More Info: https://wordpress.org/support/article/debugging-in-wordpress/

To enable it, open your wp-config.php file and look for the following line:

define('WP_DEBUG', false);

And change it to:

define('WP_DEBUG', true);
// Enable Debug logging to the /wp-content/debug.log file
define('WP_DEBUG_LOG', true);
// Disable display of errors and warnings, which is recommended on a live site.
define('WP_DEBUG_DISPLAY', false);
@ini_set('display_errors',0);

Then, try reproducing the issue and checking if any errors were saved to the debug.log log file inside the /wp-content/ directory.
It would be great if you could paste your debug.log to https://pastebin.com/ and provide me with that link!

If you can see a plugin name in error, please rename this plugin's folder and check the dashboard.

2) For the settings page error issue, please try the following steps:

1- Take a database backup
2- Go to wp_options table
3- Search for the "icl_sitepress_settings" key
4- Delete this key
5- Go to your site's dashboard
6- Re-install WPML

❌ Please backup your database before performing the above steps ❌

Best regards,
Osama

April 16, 2024 at 12:43 pm #15525429

PA_Facts_2000

Hi Osama,

How do I get into my website now? I seems not to work at all?

April 16, 2024 at 12:45 pm #15525431

Osama Mersal
Supporter

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+02:00)

Hi,

The front end works correctly. The dashboard is no accessible, so you need to use the FTP connection to enable the wp-debug and share the log with me.

Best regards,
Osama

April 16, 2024 at 12:48 pm #15525465

PA_Facts_2000

I think this is what you need: https://pastebin.com/Rd726PB1

April 16, 2024 at 12:50 pm #15525467

Osama Mersal
Supporter

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+02:00)

Hi,

Yes, thank you. Please go to your plugins folder and rename the ACFML plugin folder to acfml-old.

Best regards,
Osama

April 16, 2024 at 12:52 pm #15525473

PA_Facts_2000

I have changed it and the backend is working now

April 16, 2024 at 1:04 pm #15525543

Osama Mersal
Supporter

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+02:00)

Hi,

1) Perfect! I tried some workarounds with no luck. Please log in to this sandbox site and install Avada only. (hidden link)

After that, please create a test postcard for search and translate it to replicate the issue. If the issue is replicable, please let me know so I can check it and consult our compatibility team.

2) For the settings page issue, it seems that some custom field translation preferences are not correct, so please try the following steps:

1- Take a database backup
2- Go to wp_options table
3- Search for the "icl_sitepress_settings" key
4- Delete this key
5- Go to your site's dashboard
6- Re-install WPML

❌ Please backup your database before performing the above steps ❌

Best regards,
Osama

April 16, 2024 at 1:36 pm #15525738

PA_Facts_2000

I have created the sandbox website. I recreated a page, the search page layout and the post card. I have the following issues:

1. Avada layout (for translation of title and results texts)
-> I go to an empty transltations queue (instead of advanced translation editor)

2. The created postcard is gone in the Avada library. I shows (1) post card, but I cannot select it on any language. This way I can't translate it as well. When I select the post card from the admin bar I go to the AVADA LIVE editor of the homepage instead of the post card.

Empty translations queue.png
No available post card in Avada Library.png
Screenshot of search page.png
Admin bar selector - post card .png
April 16, 2024 at 4:00 pm #15527059

Osama Mersal
Supporter

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+02:00)

Hi,

Thanks for replicating the issue. Please check if the search result works correctly. (hidden link)

I translated the following:

1- The page
2- Postcard Template
3- Search template

After that, I edited the translated search template to select the translated postcard template.

Best regards,
Osama

April 16, 2024 at 6:06 pm #15527801

PA_Facts_2000

Hi Osama,

On the sandbox, the exact same issue is happening. The Read More button isn't translated into Dutch (I have added some Dutch text, but it keeps saying: 'Read More'. See screenshot.

That's not the only thing not getting translated. The singluar and plural aren't translated properly, there is only a 'before' parameter.

--

On the live site, can we continue working on it, or should we wait until this issue is being solved?

Can I do this you said earlier?

2) For the settings page issue, it seems that some custom field translation preferences are not correct, so please try the following steps:

1- Take a database backup
2- Go to wp_options table
3- Search for the "icl_sitepress_settings" key
4- Delete this key
5- Go to your site's dashboard
6- Re-install WPML

--

Re-install WPML isnt deleting translations? not quite sure what actions to do at step 6

Scherm­afbeelding 2024-04-16 om 20.02.48.png
Scherm­afbeelding 2024-04-16 om 20.01.18.png
Scherm­afbeelding 2024-04-16 om 20.00.27.png
April 17, 2024 at 8:22 am #15530070

Osama Mersal
Supporter

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+02:00)

Hi,

1) I checked the issue on the sandbox site, and the button is translated correctly when you select the translated postcard in the translated search template. (hidden link)

You can manually translate the result string from the same template.

2) These steps shouldn't delete your translations, but please create a backup before doing them.

Best regards,
Osama

2024-04-17_10-16-29.jpg