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.

This topic contains 10 replies, has 3 voices.

Last updated by karolinaV 1 year, 10 months ago.

Assisted by: Osama Mersal.

Author Posts
March 16, 2023 at 12:06 pm #13259167

karolinaV

Hi!

I have a custom theme with 5 menus position + 3 languages. I need to have menus content independently set up. We added a third language and then the hell began - probably someone clicked "sync all the menus," and there is no way to return it back as it was. I spent hours on the issue and I rememember I had it couple of years ago too (but not sure how I solved it).

There was some weird synchronization, so I:

* Deleted all the menus (It. took me an hour to note down what was there.
* Cleared WPML cache etc.
* Re-created the Czech menus (26 items, 5 menus)
* Started to Add English menus (not as a translation), assigned them to Main menu and socials menu position

... It showed up correctly on EN site, but on Czech it shifted the menu assignment for existing menus. When I fix it, it breaks down the EN page and vice versa.
hidden link

I NEED TO FIX IT VERY URGENTLY.
(had to restore the old version backup, but this is really big issue)

March 16, 2023 at 12:31 pm #13259219

Bruno Kos
Supporter

Languages: English (English ) German (Deutsch ) French (Français )

Timezone: Europe/Zagreb (GMT+01:00)

Hi,

Thank you for contacting WPML support!

Do you have this active perhaps?
https://wpml.org/documentation/getting-started-guide/translating-menus/#option-1-translating-menus-automatically

Regards,
Bruno Kos

March 16, 2023 at 12:39 pm #13259353

karolinaV

No.
hidden link

And as you can see on the screenshare - problems are with the nav menu location not the content.

March 19, 2023 at 7:48 am #13277117

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.

1) First of all, sorry for the late reply due to a higher workload. Could you please set the menus locations in your default language only?

After that, please try the following steps:

1- Go to Appearance-> Menu, copy the primary menu ID
2- Go to WPML-> String Translation
3- Scroll down and click on the "Translate texts in admin screens »" link
4- Search for the menu ID
5- Select the strings
6- Click on the "Add to String Translation" button
7- Then click on the "« Return to String Translation" link
8- Translate the ID, clear the cache, and check the front end

Kindly check our guide to know more about translating texts in the admin texts screen. (https://wpml.org/documentation/getting-started-guide/string-translation/finding-strings-that-dont-appear-on-the-string-translation-page/)

If the above steps fix the issue, please apply them to other menu locations.

Kindly note that supporting custom themes is out of our forum scope. (https://wpml.org/purchase/support-policy/)

2) It's not related to the issue, but according to your Debug.info, the WP memory limit needs to be increased. PHP memory is fine, but WordPress uses 40Mb as default. The minimum requirements for WPML are 128 MB. (Kindly check this page https://wpml.org/home/minimum-requirements/)

You can increase it by adding the following code in your wp-config.php file right before the /* That's all, stop editing! Happy publishing. */ line:

/* Memory Limit */
define('WP_MEMORY_LIMIT', '256M');
define( 'WP_MAX_MEMORY_LIMIT', '256M');

Best regards,
Osama

March 20, 2023 at 11:03 am #13283105

karolinaV

Hi,

1) thanks, but I don't want to translate the menus. I want to assign independently menus in different languages. Which doesn't work for now and it's broken because something in WPML is set and I have no clue where - how to clear it?

I have menus in Czech (my primary language), I create a NEW menu in English, assign it into top_menu location, the Czech gets broken.

It has nothing to do with the custom theme or the logic behind it. I have several locations and I want to set menus in the location, but it looks like WPML tracks some old/broken relations between menus IDs.

Thanks
Karolina

P.S. Thanks for the memory limit notice.

March 20, 2023 at 11:08 am #13283119

Osama Mersal
Supporter

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

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

Hi Karolina,

Thanks for your explanation. It would be best if you translated the menus, so WPML can use the correct menu in the correct language.

You can create different menus per language, set the menu locations in the default language, edit the translated menu, and select the default language menu from the "translation of" drop-down menu.

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 if possible –
in order to be of better help and check if some configurations might need to be changed.

Your next answer will be private, which means only you and I can access it.

❌ Please backup your database and website ❌

✙ I would need your permission to de-activate and re-activate the Plugins and the Theme and change configurations on the site. This is also a reason 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

March 20, 2023 at 11:56 am #13283503

Osama Mersal
Supporter

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

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

Hi Karolina,

Could you please check the password? I got an error message. (ERROR: Incorrectly entered password for username ***. Did you forget the password?)

Best regards,
Osama

March 20, 2023 at 12:18 pm #13283683

Osama Mersal
Supporter

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

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

Hi,

Thanks for the access details. Could you please check the English menus on the front end and let me know if they work correctly? (hidden link)

Best regards,
Osama

March 20, 2023 at 1:47 pm #13284939

karolinaV

Yeah, that looks good ❤️. Could you have a look at the SK version too, and please - explain what was wrong and how to fix it if it occurs in the future?

March 20, 2023 at 1:51 pm #13284949

Osama Mersal
Supporter

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

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

Hi Karolina,

The menus were not translated correctly, so I synched them. (WPML-> WP Menus Sync)

After that, I edited the English menus to add the correct menu items and deleted all menu items in Footer 3 menu.

Please edit the SK menus to add the correct menu items, and check if they will work correctly.

Best regards,
Osama