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 thread is resolved. Here is a description of the problem and solution.

Problem:

The Language switcher does not appear on the translated pages

Solution:

The issue occurs because the main navigation menu was not translated to secondary language. Translating the main navigation menu solves the problem.

Relevant Documentation:

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

This topic contains 12 replies, has 2 voices.

Last updated by brendanV 5 months ago.

Assigned support staff: Dennis.

Author Posts
May 7, 2019 at 1:30 am #3753047

brendanV

I am trying to get back to English (master language for site) after I've clicked on the japanese translated page.

Link to a page where the issue can be seen:hidden link

I expected to see: a language switcher on all pages so you can flick backwards and forwards

Instead, I got: only a language switcher on the english pages

May 7, 2019 at 5:58 am #3754133

Dennis
Supporter

Languages: English (English )

Timezone: Asia/Manila (GMT+08:00)

Hi,

Welcome to WPML Support forum.

Could you please share your Debug information with me?

You can read the 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 and will help me understand the source of the problem.

Have you tried running routines from WPML troubleshooting page? If not, could you please try these steps and see if it resolves the issue?

Note: Please make sure to make a complete backup of your site before proceeding.

-delete the strings from String Translation page. Select the strings and then click 'Delete Selected Strings' button

-Go to WPML>>Support page
-Click on Troubleshooting link (link in the middle of the page)
-In Troubleshooting page, please click on the following options of 'Clean up' section. Wait for confirmation of processing after each one.
- Clear the cache in WPML
- Remove ghost entries from the translation tables
- Fix element_type collation
- Set language information
- Assign translation status to duplicated content
- Fix terms count
- Fix post type assignment

Does it help? Please let me know.

Kind regards,
Dennis

May 7, 2019 at 6:27 am #3754357

brendanV

I have tried all the items in your trouble shooting menu and it still does not resolve the issue.

I can see the switcher on the english page, but not on the japanese page.

May 7, 2019 at 9:23 am #3755881

Dennis
Supporter

Languages: English (English )

Timezone: Asia/Manila (GMT+08:00)

Hi,

Thank you for your reply.

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. Your next reply will be set to private.

Maybe I'll need to replicate your site locally to continue debugging and escalate if necessary. For this I’ll need to temporarily install a plugin called “Duplicator” on your site. This will allow me to create a copy of your site and your content. Once the problem is resolved I will delete the local site. Please confirm if this okay with you.

Our Debugging Procedures
I will be checking various settings in the backend to see if the issue can be resolved. Although I won't be making changes that affect the live site, it is still good practice to BACKUP the site before providing us access.

Privacy and Security Policy
We have strict policies regarding privacy and access to your information. Please see:
https://wpml.org/purchase/support-policy/privacy-and-security-when-providing-debug-information-for-support/

Kind regards,
Dennis

May 14, 2019 at 8:29 am #3804711

Dennis
Supporter

Languages: English (English )

Timezone: Asia/Manila (GMT+08:00)

Hi,

Thank you for providing us with the access details.

I have successfully created a duplicator package. I will download a copy and try deploy it on my local machine. Then I will continue debugging your site locally and will give you feedback when I got some results.

Kind regards,
Dennis

May 14, 2019 at 9:00 am #3804967

Dennis
Supporter

Languages: English (English )

Timezone: Asia/Manila (GMT+08:00)

Hi,

I tried to deploy a duplicator snapshot of your site to my local test environment. Unfortunately, I'm having issues deploying it on my local machine.

Another option is to migrate your site to our test server is by using Cloudways WordPress Migrator plugin ( https://wordpress.org/plugins/bv-cloudways-automated-migration/ ).

If it is OK with you, we can migrate your site to our test server from CloudWays to continue debugging without any risk on your end.
https://wpml.org/hosting-partner/cloudways/

Please let me know if you wish to proceed so I can create an application instance for you.

Kind regards,
Dennis

May 14, 2019 at 10:27 am #3805889

brendanV

I do not want to migrate the site anywhere. I have supplied debug information and given you access to the back end of my site.

May 15, 2019 at 3:57 am #3812063

Dennis
Supporter

Languages: English (English )

Timezone: Asia/Manila (GMT+08:00)

Hi,

Thank you for your reply.

I noticed that your 'main navigation' menu is not yet translated to Japanese. Could you please translate this menu to secondary language?

Documentation: https://wpml.org/documentation/getting-started-guide/translating-menus/

Kind regards,
Dennis

May 15, 2019 at 4:52 am #3812273

brendanV

I have done this now.

May 15, 2019 at 7:39 am #3813189

Dennis
Supporter

Languages: English (English )

Timezone: Asia/Manila (GMT+08:00)

Hi,

Thank you for your reply.

I checked your menu and it seems that it is still not translated to Japanese. Please check the attached image.

Kind regards,
Dennis

May 15, 2019 at 10:33 pm #3820427

brendanV

I have pressed the +Japanese button, gone to the next page and tried to add the main navigation menu and pressed create menu then it doesn't go anywhere.

It reloads the page as if nothing happened.

May 16, 2019 at 2:45 am #3821137

Dennis
Supporter

Languages: English (English )

Timezone: Asia/Manila (GMT+08:00)

Hi,

I tried to translate your main navigation menu to japanese and it seems to work just fine. With that, i can see that language switcher now appears on your japanese pages:

hidden link

You may now continue translating that menu. Kindly check and confirm if the issue is now resolved.

Thank you.

Kind regards,
Dennis

May 16, 2019 at 2:53 am #3821181

brendanV

This support process is very long and took over a week to get resolved. You basically have to wait 24 hours for a response. You have to give away full access to the back end of the website, which makes me feel uncomfortable from a security point of view.

Yes my issue was resolved, but its very painful and I am dreading the next time I have a problem I need support with.