Home›Support›English Support›[Resolved] Cannot add Georgian as a language (We already have 50+ languages added)
[Resolved] Cannot add Georgian as a language (We already have 50+ languages added)
This thread is resolved. Here is a description of the problem and solution.
Problem:
The client is unable to add Georgian as a language to your website, which already supports over 50 languages. The process never completes and continues indefinitely.
Solution:
We recommend increasing the PHP setting max_input_vars to 10,000. This adjustment should resolve the issue with adding Georgian as a custom language, which occurs due to the large number of languages configured on the site.
For instructions on how to change max_input_vars, please refer to this article:
If you need assistance with this setting, please contact your system administrator or hosting provider.
If this solution does not apply to your case, or if it seems outdated, we highly recommend checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. Should you need further assistance, please open a new support ticket at WPML support forum.
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.
Background of the issue:
I am trying to add Georgian as a language to my website, which already has over 50 languages. The issue can be seen on this page: hidden link.
Symptoms:
When I try to add Georgian, it never loads and the process continues indefinitely. I have successfully added custom languages on websites with fewer languages, but it does not work on our main website.
Questions:
Why can't I add Georgian as a language when I already have 50+ languages?
Is there a limit to the number of languages I can add with WPML?
Welcome to the WPML support forum. I will do my best to assist you in resolving the issue.
Please let us know the language code you are using when adding Georgian as a custom language.
Please share the WordPress debug.log (not the WPML debug information) with us so we can gather more details on this issue. Refer to the following links for instructions.
To enable WordPress Debug log, open your wp-config.php file of the site root and look for define('WP_DEBUG', false);. Change it to:
// Enable WP_DEBUG mode
define( 'WP_DEBUG', true );
// Enable Debug logging to the /wp-content/debug.log file
define( 'WP_DEBUG_LOG', true );
// Disable display of errors and warnings
define( 'WP_DEBUG_DISPLAY', false );
@ini_set( 'display_errors', 0 );
In this case, the errors will be saved to a debug.log log file inside the */wp-content/* directory. Please do the steps to reproduce the bug (adding Georgian language) and check if you are getting any errors or warnings related to WPML in the log file.
If you can paste your debug.log to http://pastebin.com/index.php and provide me with that link it would be great! (This is the cleanest way because sometimes the logs are long and create a complete mess of discussion).
Thank you for the updates and for sharing the debug log. It shows the following warnings related to WPML:
Warning: Undefined array key "default_locale" in /wp-content/plugins/sitepress-multilingual-cms/menu/edit-languages.php on line 967
Warning: Undefined array key "tag" in /wp-content/plugins/sitepress-multilingual-cms/menu/edit-languages.php on line 967
We have a request. Please increase the PHP setting max_input_vars to 10,000. Afterward, add Georgian as a custom language and check if the issue persists.
For instructions on changing max_input_vars, please refer to the following article or contact your system administrator or hosting provider for assistance.
Thank you for the updates. Glad to hear that adding a custom language is now working as expected.
I have created a new ticket for the Menu Sync issue to make follow-up easier and to avoid mixing multiple issues in a single thread, will get back to you soon in the new ticket.