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 |
---|---|---|---|---|---|---|
9:00 – 18:00 | 9:00 – 18:00 | 9:00 – 18:00 | 9:00 – 18:00 | 9:00 – 18:00 | - | - |
- | - | - | - | - | - | - |
Supporter timezone: Africa/Cairo (GMT+02:00)
Tagged: Documentation request
This topic contains 2 replies, has 0 voices.
Last updated by Osama Mersal 1 day, 7 hours ago.
Assisted by: Osama Mersal.
Author | Posts |
---|---|
April 4, 2025 at 12:26 pm #16897167 | |
tobiO |
Background of the issue: Symptoms: Questions: |
April 7, 2025 at 11:17 am #16903833 | |
Osama Mersal WPML Supporter since 02/2020
Languages: English (English ) Arabic (العربية ) Timezone: Africa/Cairo (GMT+02:00) |
Hi, Thanks for contacting WPML forums support. I'll be glad to help you today. First of all, sorry for the late reply; it was due to a higher workload. Some blocks might need to be registered for translation before the pages are translated. Please check this guide to learn more about registering custom blocks. Best regards, |
April 7, 2025 at 11:40 am #16903994 | |
tobiO |
Hi, We have done this countless times; some blocks are showing, and some are still not showing. |
April 7, 2025 at 11:51 am #16904033 | |
Osama Mersal WPML Supporter since 02/2020
Languages: English (English ) Arabic (العربية ) Timezone: Africa/Cairo (GMT+02:00) |
Hi, I would need to look closely at your site, so I would need to request temporary access (WP-Admin and FTP) Your answer will be private, meaning only you and I can access it. ❌ Please back up your database and website ❌ ✙ I need your permission to deactivate and reactivate the plugins and themes and change site configurations. This is also why the backup is critical. ✙ I also need your permission to take a local copy of your site to debug the issue without affecting your live site. Best regards, |
April 7, 2025 at 4:56 pm #16905518 | |
Osama Mersal WPML Supporter since 02/2020
Languages: English (English ) Arabic (العربية ) Timezone: Africa/Cairo (GMT+02:00) |
Hi, Thanks for the access details. I face the following error whenever I try to create a new page or update an existing one. (Updating failed. The response is not a valid JSON response.) Please log in to this hidden link">sandbox site and install the theme or plugin that created these custom blocks. I'll then check them there. Best regards, |
April 7, 2025 at 5:31 pm #16905549 | |
tobiO |
Can you please resend the sandbox link |
April 8, 2025 at 9:38 am #16908116 | |
Osama Mersal WPML Supporter since 02/2020
Languages: English (English ) Arabic (العربية ) Timezone: Africa/Cairo (GMT+02:00) |
Hi, Here is the link: hidden link. Best regards, |
April 8, 2025 at 11:31 am #16908852 | |
tobiO |
The theme has been installed now. |
April 8, 2025 at 1:46 pm #16909696 | |
Osama Mersal WPML Supporter since 02/2020
Languages: English (English ) Arabic (العربية ) Timezone: Africa/Cairo (GMT+02:00) |
Hi, Thanks for installing the theme. I tried the following XML code to register the Home Carousel block, but it didn't fix the issue on the sandbox site. <wpml-config> <gutenberg-blocks> <gutenberg-block type="studio14-blocks/home-carousel-block" translate="1"> <key name="sectionTitle" /> <key name="sections"> <key name="*" > <key name="title" /> <key name="contents" /> <key name="linkTitle" /> <key name="link" /> </key> </key> </gutenberg-block> </gutenberg-blocks> </wpml-config> However, the code registers the block correctly when adding this block as a plugin or to another theme, which I tested on a local sandbox copy. (Kindly check the attached screenshot) Please check the block registration on your theme and any custom code that might prevent the block from being registered. Best regards, |
April 9, 2025 at 1:10 am #16911194 | |
tobiO |
Thank you for getting back to us and for taking the time to troubleshoot the issue. I noticed that the test was not performed using the theme we uploaded to the staging site you created, but rather on a sandbox copy. When I attempted the same translation using the block on the sandbox environment, it also did not work as expected. Could you please confirm whether you used the same block in your sandbox test? If so, would you be able to share the code or the approach you used to implement it? As mentioned in my earlier response, some of our blocks are working correctly—WPML is able to detect and translate their attributes—while others are not. All blocks in our theme are properly registered, and the issue seems to occur only with those that utilize the ServerSideRender component from @wordpress/server-side-render to render HTML via PHP. Is there any special consideration or customization needed in WPML to support blocks implemented using this server-side rendering approach? |
April 9, 2025 at 9:57 am #16912348 | |
Osama Mersal WPML Supporter since 02/2020
Languages: English (English ) Arabic (العربية ) Timezone: Africa/Cairo (GMT+02:00) |
Hi, Thanks for your reply. I used the same block files in my local copy but added them as a plugin. I'm not sure if there are any limitations to server-side render blocks. I'll consult our compatibility team and update you when I get their reply. Best regards, |
April 9, 2025 at 10:01 am #16912383 | |
tobiO |
Thanks please come back to me asap as this is delaying the launch of the site |
April 9, 2025 at 10:11 am #16912428 | |
Osama Mersal WPML Supporter since 02/2020
Languages: English (English ) Arabic (العربية ) Timezone: Africa/Cairo (GMT+02:00) |
Hi, Sure, I'll update you as soon as I get an update. Best regards, |
April 10, 2025 at 11:03 am #16917966 | |
Osama Mersal WPML Supporter since 02/2020
Languages: English (English ) Arabic (العربية ) Timezone: Africa/Cairo (GMT+02:00) |
Hi, Could you please share some examples of the working custom blocks? Best regards, |
April 14, 2025 at 11:43 am #16929075 | |
Osama Mersal WPML Supporter since 02/2020
Languages: English (English ) Arabic (العربية ) Timezone: Africa/Cairo (GMT+02:00) |
Hi, Our 2nd-tier support team found an issue with the theme code. In several places, the theme uses the WPML filter wpml_config_array to expand the configuration settings, but it does it wrong and overwrites the existing settings instead of adding new ones. That overwrites the configuration for the block we added to WPML > Settings > Custom XML Configuration. The configuration added there is correct, but the code elsewhere in the theme using the filter overwrites it, so it isn't used. We commented out the few places where the filter is used to prevent that, and then the block texts are available for translation as expected. You can find such code in uwc-wp/core/Blocks/AccordionBlock.php, uwc-wp/core/Blocks/HomeBannerBlock.php, and uwc-wp/core/Blocks/StatisticsBlock.php. Best regards, |