Skip to content Skip to sidebar

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
10:00 – 14:00 10:00 – 14:00 10:00 – 14:00 10:00 – 14:00 10:00 – 14:00 - -
16:00 – 20:00 16:00 – 20:00 16:00 – 20:00 16:00 – 20:00 16:00 – 20:00 - -

Supporter timezone: Asia/Jerusalem (GMT+03:00)

Tagged: 

This topic contains 2 replies, has 0 voices.

Last updated by Itamar 12 hours, 54 minutes ago.

Assisted by: Itamar.

Author Posts
February 24, 2026 at 11:47 am

leeM-21

I have been creating custom languages with no problem at all. I am now trying to create a 'en-BE' custom language and suddenly the languages will not create, and I am left with the following error: 'Please, enter required data.' Even though I am filling in all the fields. Could you help please

May 13, 2026 at 11:54 pm #18034472

leeM-21

I have got to the point now that I cannot create any new languages or edit any of the language fields, such as 'hreflang'

May 14, 2026 at 8:11 am #18034815

Itamar
WPML Supporter since 02/2016

Languages: Hebrew (עברית )

Timezone: Asia/Jerusalem (GMT+03:00)

Hi,

I hope you are doing well.

I just checked your site. Regarding adding a new language, I cannot see the problem. I went to WPML -> Languages -> Site Languages, and added Irish as a new language that was not in the list of languages on your site. The process completed successfully, and Irish has been added. Please see the attached screenshot, irish-added.jpg.

Nevertheless, I can see the problem of not being able to change an 'hreflang' field. went to WPML -> Languages -> Site Languages -> Edit Languages, and changed the 'hreflang' field of the newly added Irish language from 'ga' to 'ga_IR'. But it failed with a warning.

Warning: Undefined array key "default_locale" in /var/www/vhosts/syneoshealthlondon.co.uk/stophae-dev.syneoshealthlondon.co.uk/wp-content/plugins/sitepress-multilingual-cms/menu/edit-languages.php on line 1042

Warning: Undefined array key "tag" in /var/www/vhosts/syneoshealthlondon.co.uk/stophae-dev.syneoshealthlondon.co.uk/wp-content/plugins/sitepress-multilingual-cms/menu/edit-languages.php on line 1042

Please see the attached screenshot default_locale.jpg.

However, this is exactly the problem we discussed on February 24 in our chat above. I can see you have not taken the recommended action of increasing the max_input_vars value on your server. It is still 1000, and we recommended increasing it to at least 10,000. We've also published an errata about it, which you can see here: https://wpml.org/errata/php-warnings-or-inability-to-add-a-custom-language-when-using-many-languages/. We also explain about raising the value of max_input_vars here: https://wpml.org/faq/unable-to-complete-page-translations-in-the-classic-translation-editor/.

Please try that, and I believe it will solve this issue.

Regards,
Itamar.

irish-added.jpg
max_input_vars.jpg
default_locale.jpg