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: Bug
This topic contains 5 replies, has 0 voices.
Last updated by Juan de Paco 4 weeks, 1 day ago.
Assisted by: Marcel.
| Author | Posts |
|---|---|
| November 20, 2025 at 1:34 pm #17595887 | |
|
Pieter |
Background of the issue: Related resources: Symptoms: Questions: |
| November 21, 2025 at 6:59 am #17597447 | |
|
Marcel Supporter
Languages: English (English ) Spanish (Español ) German (Deutsch ) Timezone: Europe/Vienna (GMT+02:00) |
Hi, could you share a staging site or a Duplicator package so we can reproduce the problem and investigate further? Best regards, |
| November 21, 2025 at 6:29 pm #17600327 | |
|
Marcel Supporter
Languages: English (English ) Spanish (Español ) German (Deutsch ) Timezone: Europe/Vienna (GMT+02:00) |
Thanks, Pieter! I reproduced it on our own test environment and escalated it to our developers. Best Regards, |
| November 24, 2025 at 8:06 am #17603168 | |
|
Marcel Supporter
Languages: English (English ) Spanish (Español ) German (Deutsch ) Timezone: Europe/Vienna (GMT+02:00) |
Hi, here is a workaround for this case: 1) Open /wp-content/plugins/sitepress-multilingual-cms/classes/block-editor/Blocks/LanguageSwitcher.php 2) Put 'api_version' => '3', on two places so that it becomes:
private function registerLanguageSwitcherBlock() {
$blockSettings = [
'render_callback' => [ $this->render, 'render_block' ],
'api_version' => '3',
];
register_block_type( self::BLOCK_LANGUAGE_SWITCHER, $blockSettings );
}
private function registerNavigationLanguageSwitcherBlock() {
$blockSettings = [
'render_callback' => [ $this->render, 'render_block' ],
'attributes' => [
'navigationLsHasSubMenuInSameBlock' => [
'type' => 'boolean',
'default' => false,
],
'layoutOpenOnClick' => [
'type' => 'boolean',
'default' => false,
],
'layoutShowArrow' => [
'type' => 'boolean',
'default' => true,
],
],
'uses_context' => [
'layout',
'showSubmenuIcon',
'openSubmenusOnClick',
'style',
'textColor',
'customTextColor',
'backgroundColor',
'customBackgroundColor',
'overlayTextColor',
'customOverlayTextColor',
'overlayBackgroundColor',
'customOverlayBackgroundColor',
'fontSize',
'customFontSize'
],
'api_version' => '3',
];
register_block_type( self::BLOCK_NAVIGATION_LANGUAGE_SWITCHER, $blockSettings );
}
Our devs will change this in one of the next releases. Best Regards, |
| February 26, 2026 at 2:13 pm #17856917 | |
|
larsW-11 |
We are leaving february and this is still an issue. |
| May 7, 2026 at 8:05 pm #18021394 | |
|
Juan de Paco Supporter |
Hello I am happy to share here that this problem has been addressed for WPML 4.9.3, which was just released. You can see a list of all changes in our release notes. Regards. |