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.

Tagged: 

This topic contains 0 replies, has 0 voices.

Last updated by bassemr 4 days, 22 hours ago.

Assisted by: Noman.

Author Posts
January 5, 2025 at 12:08 am #16563932

bassemr

Background of the issue:
Hi, i am trying to setup wpml on my site after uploading the plugin, i got this message:
WPML is missing some records in the languages tables and it cannot fully work until this issue is fixed.
Please go to the Troubleshooting page and click on "Clear language information and repopulate languages" to fix this problem.

This warning will disappear once this issue is fixed.

when i try to navigate to "Troubleshooting page" i get this message:Sorry, you are not allowed to access this page, the tab of wpml plugin isn't even shown .
could you please help me.

Symptoms:
I received a message stating: 'WPML is missing some records in the languages tables and it cannot fully work until this issue is fixed. Please go to the Troubleshooting page and click on "Clear language information and repopulate languages" to fix this problem.' When I try to navigate to the 'Troubleshooting page', I get the message: 'Sorry, you are not allowed to access this page, the tab of WPML plugin isn't even shown.'

Questions:
How can I fix the issue with missing records in the languages tables?
Why am I not allowed to access the Troubleshooting page?

January 5, 2025 at 8:07 am #16564169

Noman
Supporter

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Hi,

Thank you for contacting WPML Support. It seems something went wrong during the WPML installation. If it’s a new site with no translated content, you can reset WPML and set it up again.

To do so:

=== Please backup your database and website ===

- Please go to WPML >> Support >> Troubleshooting (the link is at the bottom of the support page). >> There, click on “Reset and deactivate WPML” >> then Delete the plugin.

- After deleting all WPML data and WPML-related plugins then please install WPML plugins again and I hope now you will not face any issues.

Here is the doc for more details:
https://wpml.org/documentation/getting-started-guide/language-setup/deleting-languages-and-plugin-data-by-doing-a-wpml-reset-on-your-site/#step-3-do-the-wpml-reset

Please let me know if this resolves the issue or if you need further assistance.

Thank you

January 5, 2025 at 8:51 am #16564197

bassemr

Hi, the biggest problem is there is no Wpml button appearing in the site WordPress dashboard, so i can't access troubleshooting or debug info.

January 5, 2025 at 9:06 am #16564199

Noman
Supporter

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Thanks for the additional details. Could you please try to add the following code to your active theme's functions.php file and then open a page in the back and/or front-end once:

function wpmlsupp_1706_reset_wpml_capabilities() {
    if ( function_exists( 'icl_enable_capabilities' ) ) {
        icl_enable_capabilities();
    }
}
add_action( 'shutdown', 'wpmlsupp_1706_reset_wpml_capabilities' );	

After that try to follow the suggested steps from the previous reply and let me know how it goes.

Thank you

January 5, 2025 at 10:59 am #16564293

bassemr

Hi, thanks for your help, the tab is opened now but i still have the error messages, but i could reach the debug info this time.
the error messages:
1- WPML is missing some records in the languages tables and it cannot fully work until this issue is fixed.
Please go to the Troubleshooting page and click on "Clear language information and repopulate languages" to fix this problem.

This warning will disappear once this issue is fixed.

2- There is a problem with the String Translation table in your site. This problem is not causing a problem running the site right now, but can become a critical issue in the future. WPML support team knows how to fix it. Please add a message in the relevant support thread and we'll fix it for you.

January 5, 2025 at 11:24 am #16564327

Noman
Supporter

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Glad to hear the tabs are open now and thanks for the additional details the debug info seems fine.

If the issue still persists after resetting WPML plugin as I suggested here:
https://wpml.org/forums/topic/wpml-error-6/#post-16564169 then please provide temporary access (WP-Admin and FTP Login info) to your site (preferably staging site), so that I can look into your setup and debug the issue.

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

=== Please backup your database and website ===

✙ I would additionally need your permission to deactivate and reactivate Plugins and the Theme and to change configurations on the site. This is also a reason the backup is essential.

Thank you

January 5, 2025 at 9:48 pm #16564836

bassemr

could you please send another private message to send ftp details.
and now even all pages and posts are not shown or working properly even the Elementor not working, everything not working after editing functions.php

January 6, 2025 at 8:54 am #16565347

Noman
Supporter

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

I enabled a private input box for your next reply to share the FTP login details.

Now, you can remove the code from functions.php file that I shared above and see if it makes any difference.

Thank you for your cooperation

January 6, 2025 at 6:26 pm #16567364

Noman
Supporter

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Thank you for providing the login details. I was able to resolve the issue by following the steps in this errata:
https://wpml.org/errata/missing-_icl_strings-_icl_string_translations-data-tables/

WPML is now installed and configured correctly, and the errors previously visible on the dashboard have been resolved.

Could you please check and confirm?

Thank you for your cooperation and patience

January 7, 2025 at 1:13 am #16567825
bassemr

thank you for your help that fixed almost everything, but there is still one problem, the plugin is affecting the Elementor page builder, you can check the home page for example, you will find that there is drop in some blocks, even the custom css that i made to edit main menu isn't appearing, if you deactivate the plugin you will find out what i mean.

New threads created by Noman and linked to this one are listed below:

https://wpml.org/forums/topic/wpml-plugin-is-affecting-the-elementor-page-builder/

January 7, 2025 at 11:23 am #16569198

Noman
Supporter

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Glad to hear that “WPML is missing some records in the languages tables” issue is solved. For “affecting the Elementor page builder” problem, it’s a different issue and will be handled separately as per our support policy. I've created a new ticket for this at: https://wpml.org/forums/topic/wpml-plugin-is-affecting-the-elementor-page-builder/

If the “WPML is missing some records in the languages tables” issue is solved, please mark this ticket as resolved and we will continue working on the above ticket for it.

Thank you for your cooperation

January 7, 2025 at 1:18 pm #16569605

bassemr

Thank you for your help really appreciate it