Please make sure to update to WPML 4.3.6 and check our list of Known Issues before reporting

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

Last updated by Nikita Nanos 2 years, 2 months ago.

Assigned support staff: Bruno.

Author Posts
November 9, 2017 at 3:10 pm #1426172

Nikita Nanos

Hi,

The language toggle on our home page doesn't work. You can see the option to switch to French but you cannot actually click the link/button. This feature works on every page other than the home page.

hidden link

Thank you.

November 9, 2017 at 6:22 pm #1426428

Andrés
Supporter

Languages: English (English ) Spanish (Español ) French (Français )

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

Hello Nikita,

Welcome to WPML support forum.

While one of my teammates takes care of your case, please go to:
- Settings > General.
- Check that the following settings have been full filled.
x WordPress Address (URL)
x Site Address (URL)

If this is the case, but they are greyed and you can't modify them, please double check your database.
- Take a look at wp_options table.
- Check that the following rows as your site's URL:
x siteurl
x homeurl

If it was not the case and while another supporter takes personal charge of your situation, could you please provide a screenshot of the previous settings?

Let us know if it helps.
Andrés

November 9, 2017 at 8:28 pm #1426536

Nikita Nanos

Hi,

How would I access my data base?

Yes, they are filled out and not modifiable.

Just unsure why its only an issue on one page, while it works for all of the others.

Thanks.

November 10, 2017 at 5:04 pm #1427343

Bruno
Supporter

Languages: English (English ) Portuguese (Brazil) (Português )

Timezone: America/Sao_Paulo (GMT-03:00)

Hi,

This may be some cache issue with your server or the way it is configured. Please open the wp-config.php file at the root of your site and look for this line:

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

Above this line, add these two lines:

define('WP_HOME', '<em><u>hidden link</u></em>');
define('WP_SITEURL', '<em><u>hidden link</u></em>');

This will look like this:

define('WP_HOME', '<em><u>hidden link</u></em>');
define('WP_SITEURL', '<em><u>hidden link</u></em>');

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

After following the steps above, save the changes and upload the wp-config.php file again.

Please, let me know if after following these steps, the problem persists.

Thank you.

November 10, 2017 at 8:57 pm #1427555

Nikita Nanos

Hi,

I did do this, I'm not 100% sure if the file was edited correctly. When I open it in notepad it displays the text a bit differently (no line #s). As far as I can tell I did it properly.

I re-uploaded the updated file, cleared the browser cache and it still doesn't work.

Any ideas?

Thanks.

November 10, 2017 at 11:18 pm #1427617

Bruno
Supporter

Languages: English (English ) Portuguese (Brazil) (Português )

Timezone: America/Sao_Paulo (GMT-03:00)

Hi,

Thank you. I'll need to request temporary access (wp-admin and FTP) to your site - preferably to a test site where the problem has been replicated if possible - in order to be of better help.

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.

*** Note: Please make a full backup of your site.

Privacy and Security when Providing Debug Information for Support: https://wpml.org/purchase/support-policy/privacy-and-security-when-providing-debug-information-for-support/

Thank you.

November 13, 2017 at 7:06 pm #1429372

Bruno
Supporter

Languages: English (English ) Portuguese (Brazil) (Português )

Timezone: America/Sao_Paulo (GMT-03:00)

Hi,

Thank you. Inside the wp-config.php file, I made the changes I posted earlier and it looks like the language selector is working correctly now.

Please, could you check if the language selector is working properly?

Thank you.

November 13, 2017 at 7:28 pm #1429398

Nikita Nanos

Hi,

It works!

Thank you for your help!

Thanks.