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.

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 11 replies, has 3 voices.

Last updated by Andreas W. 1 year, 9 months ago.

Assisted by: Andreas W..

Author Posts
March 3, 2023 at 11:19 am #13162753

jamesI-2

I have used WPML and it was working fine.
All of the sudden Website navigation stop translating when switch to other language
I have check configuration of navigation and translation in wpml so far seem to good to me.
I can't found anything why it stop translating for front-end

March 3, 2023 at 12:59 pm #13163729

Andreas

Hi,

before your ticket is assigned to one of my colleagues, please allow me to walk you through some initial debugging steps. This will help speed up the support process.

May I ask you to give some more information about your issue and maybe share some screenshots of your problem?

Regards,
Andreas

March 3, 2023 at 1:09 pm #13163871

jamesI-2

Hi Andreas,

I have take screenshot and attached to explain the issue. This might be help you to understand the issue. You can go to hidden link and check there by switching the language.
Please let me know if you need and further details

Thanks

WMA-Spanish.png
WMA-English.png
March 4, 2023 at 8:06 pm #13170761

Andreas W.
Supporter

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

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

Hello,

Usually, by default WPML translates the menu automatically but as soon you actually translate the menus you will need to take care of those yourself.

Does WPML > WP Menus Sync solve this issue for you?

Please read this documentation:
https://wpml.org/documentation/getting-started-guide/translating-menus/

If further assistance will be needed, please let me know.

Best regards
Andreas

March 7, 2023 at 12:19 pm #13189237

jamesI-2

Hi Andres,

I have checked, WPML > WP Menus Sync
It's alreday sync and at bottom disable button said "Nothing sync"
please see attached screenshot.
My issue still not resolved.

WP-Menus-Sync-‹-WMA.png
March 7, 2023 at 1:49 pm #13189931

Andreas W.
Supporter

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

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

Hello,

It seems there are many items to sync - could you please try to run the task twice or more times until it finishes?

Also, what could help here is:

Could you please increase your WP Memory limit to 512M?
Your current values are:

PHP MemoryLimit 1024M
WP Memory Limit 256M
Edit this code to your wp-config.php to increase WP memory:

define('WP_MEMORY_LIMIT', '512M');

The code should be right before the line:

/ That's all, stop editing! Happy blogging. /

You can verify the current settings at WPML > Support > WordPress.

Also, if you encounter a problem during saving this option, it could be due to a low value of MaxInputVars. To increase the PHP limit for max_input_vars you need to edit either php.ini or .htaccess file.

Let us say that you want to increase max_input_vars value to 10000.

You could do one of the following:

add line:

max_input_vars = 10000 

to php.ini
or
add line:

php_value max_input_vars 10000

to .htaccess

If you do not have permission to change your server settings you can ask your hosting provider to increase the value of MaxInputVars.

In case of any doubt please contact your hosting provider and ask for assistance.

If those changes will not solve the problem, then please let me know.

Best regards
Andreas

March 8, 2023 at 3:43 pm #13200307

jamesI-2

Hello,

I have added code in wp-config.php and added code in .htaccess file.
Still issue is not resolve

Thanks

March 8, 2023 at 7:16 pm #13201597

Andreas W.
Supporter

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

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

Hello,

I would like to request temporary access (wp-admin and FTP) to your site to take a better look at the issue.

You will find the needed fields for this below the comment area when you log in to leave your next reply. The information you will enter is private which means only you and I can see and have access to it.

IMPORTANT

Please make a backup of site files and database before providing us access.
If you do not see the wp-admin/FTP fields this means your post & website login details will be made PUBLIC. DO NOT post your website details unless you see the required wp-admin/FTP fields. If you do not, please ask me to enable the private box. The private box looks like this:
hidden link

The steps are also shown in this video: hidden link

Best regards
Andreas

March 15, 2023 at 6:52 pm #13254739

Andreas W.
Supporter

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

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

Hello,

In order to assist you on this matter, the provided user account needs to have the user role "admin".

Please leave me a short comment on this ticket, once the use role has been adjusted.

Best regards
Andreas

March 17, 2023 at 2:30 pm #13270287

jamesI-2

administrative access provided

March 17, 2023 at 10:00 pm #13272989

Andreas W.
Supporter

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

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

Hello,

Thank you!

I am taking a copy of your site, for further revision.

Take note, that I have set the post type ACF Field Groups to "Not translatable" as it could cause you unexpected issues when having the group set to "Translatable".

https://wpml.org/errata/advanced-custom-fields-field-group-should-be-set-as-not-translatable/

Once I have reviewed your site, I will be in contact, but please take note that debugging custom code, like such used in your custom theme, is not covered by our support policy:

https://wpml.org/purchase/support-policy/

Anyhow, I will try to run a debug and see what might be causing the issue, in order to guide on this matter.

Best regards
Andreas

March 18, 2023 at 8:03 am #13274423

Andreas W.
Supporter

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

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

Hello,

I see you are not using the default WordPress function in order to call the menu:
https://developer.wordpress.org/reference/functions/wp_nav_menu/

Instead, you are using a custom class called Menu.php and I do not see that you are doing anything regarding language in this class.

Please take note that we provide Developer Information here:
https://wpml.org/documentation/support/

I suppose that you will need to use WPML Hooks in order to make this work:
https://wpml.org/documentation/support/wpml-coding-api/wpml-hooks-reference/

With this hook for example you could get the menu ID in the current language:
https://wpml.org/wpml-hook/wpml_object_id/

Question:
Are you saying that this custom Menu.php class was working in all languages before updating to WPML 4.6.0?

Which was the last WPML version with which the menu worked as expected?

Best regards
Andreas

The topic ‘[Closed] Navigation translation not working’ is closed to new replies.