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.

Elementor users - please update WPML to the latest version to maintain compatibility. More details here - https://wpml.org/changelog/2024/12/wpml-4-6-15-critical-update-for-elementor-sites/
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: Africa/Cairo (GMT+02:00)

Tagged: 

This topic contains 0 replies, has 0 voices.

Last updated by Osama Mersal 3 days, 14 hours ago.

Assisted by: Osama Mersal.

Author Posts
December 20, 2024 at 1:11 pm #16534313

davidR-169

Background of the issue:
I’m using the Salient theme on my site hidden link, and I want to ensure that WPML applies translations to the Global Sections, such as a CTA block that appears on every page.

Symptoms:
WPML translations are not appearing in the Global Sections of the Salient theme, despite being correctly set in String Translations and cache being cleared.

Questions:
Can you please help with getting WPML translations to appear in Global Sections?

December 22, 2024 at 2:22 pm #16537797

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.

1) 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.

2) Could you please share your Debug information with me?
You can read a detailed explanation about it here. (http://wpml.org/faq/provide-debug-information-faster-support)
The debug info will give me a lot of information about how your site is configured.

Best regards,
Osama

December 23, 2024 at 10:46 am #16539956

Osama Mersal
Supporter

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

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

Hi,

Please translate the hidden link">Global sections and check the issue.

Best regards,
Osama

December 23, 2024 at 11:10 am #16540046

davidR-169

Thx, but how can I translate the Global Sections? There is no pencil icon to activate this - and I already put in the manual translation with strings. Thanks for clarifying

December 23, 2024 at 11:18 am #16540055

Osama Mersal
Supporter

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

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

Hi,

I set the global section post type to be translatable in WPML-> Settings-> Post Type Translation section.

After that, you can see the + icon correctly in the global sections. (Kindly check the attached screenshot)

Best regards,
Osama

2024-12-23_13-17-01.png
December 23, 2024 at 11:34 am #16540107

davidR-169

That sounds amazing! Hey, but I can't access it now anymore - it says a critical error

Screenshot 2024-12-23 at 12.33.47.jpg
December 23, 2024 at 11:35 am #16540123

davidR-169

Also this per mail

<Howdy!

WordPress has a built-in feature that detects when a plugin or theme causes a fatal error on your site, and notifies you with this automated email.

In this case, WordPress caught an error with one of your plugins, WPML Multilingual CMS.

First, visit your website (hidden link) and check for any visible issues. Next, visit the page where the error was caught (hidden link) and check for any visible issues.

Please contact your host for assistance with investigating this issue further.

If your site appears broken and you can't access your dashboard normally, WordPress now has a special "recovery mode". This lets you safely login to your dashboard and investigate further.

hidden link

To keep your site safe, this link will expire in 1 day. Don't worry about that, though: a new link will be emailed to you if the error occurs again after it expires.

When seeking help with this issue, you may be asked for some of the following information:
WordPress version 6.7.1
Active theme: Salient (version 17.0.5)
Current plugin: WPML Multilingual CMS (version 4.6.15)
PHP version 8.2.26

Error Details
=============
An error of type E_ERROR was caused in line 26 of the file /home/customer/www/staging.witpac.de/public_html/wp-content/plugins/sitepress-multilingual-cms/menu/post-menus/wpml-posts-listing-page.class.php. Error message: Uncaught TypeError: count(): Argument #1 ($value) must be of type Countable|array, null given in /home/customer/www/staging.witpac.de/public_html/wp-content/plugins/sitepress-multilingual-cms/menu/post-menus/wpml-posts-listing-page.class.php:26
Stack trace:
#0 /home/customer/www/staging.witpac.de/public_html/wp-includes/class-wp-hook.php(324): WPML_Posts_Listing_Page->pre_populate_caches(Object(WP))
#1 /home/customer/www/staging.witpac.de/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array)
#2 /home/customer/www/staging.witpac.de/public_html/wp-includes/plugin.php(565): WP_Hook->do_action(Array)
#3 /home/customer/www/staging.witpac.de/public_html/wp-includes/class-wp.php(830): do_action_ref_array('wp', Array)
#4 /home/customer/www/staging.witpac.de/public_html/wp-includes/functions.php(1336): WP->main(Array)
#5 /home/customer/www/staging.witpac.de/public_html/wp-admin/includes/post.php(1306): wp(Array)
#6 /home/customer/www/staging.witpac.de/public_html/wp-admin/includes/class-wp-posts-list-table.php(165): wp_edit_posts_query()
#7 /home/customer/www/staging.witpac.de/public_html/wp-admin/edit.php(235): WP_Posts_List_Table->prepare_items()
#8 {main}
thrown>

December 23, 2024 at 11:37 am #16540139

Osama Mersal
Supporter

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

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

Hi,

Please let me know the steps to reproduce the error. I can visit the global sections correctly. (Kindly check the attached screenshot)

Best regards,
Osama

2024-12-23_13-35-47.png
December 23, 2024 at 11:42 am #16540162

davidR-169

Hi there! Yes, things are back to normal now. Hope it stays safe.

Thanks a bunch for your help today - I learned a lot! Can you log out again so I can make the rest of the changes?

Have a wonderful holiday!

December 23, 2024 at 11:45 am #16540169

Osama Mersal
Supporter

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

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

Hi,

It's great to hear that the issue is fixed. 🙂 Please don't hesitate to open a new ticket if you face any other issues. We are always happy to help you.

Have a great holiday!

Best regards,
Osama