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: Compatibility
This topic contains 8 replies, has 2 voices.
Last updated by fabianS-4 1 year, 6 months ago.
Assisted by: Long Nguyen.
Author | Posts |
---|---|
June 12, 2023 at 10:57 am | |
fabianS-4 |
hi support |
June 12, 2023 at 12:45 pm | |
June 13, 2023 at 8:51 am #13814725 | |
Long Nguyen Supporter
Languages: English (English ) Timezone: Asia/Ho_Chi_Minh (GMT+07:00) |
Hi Fabian, Thank you for contacting WPML support, I'd be happy to help you with this issue. Checking the error log, I see there are some fatal errors, for example: [13-Jun-2023 08:16:20 UTC] PHP Fatal error: Uncaught TypeError: trim(): Argument #1 ($string) must be of type string, array given in /home/suterfab/public_html/nnbs23/wp-content/plugins/sitepress-multilingual-cms/addons/wpml-page-builders/classes/Shared/st/class-wpml-pb-string-registration.php:95 Stack trace: #0 /home/suterfab/public_html/nnbs23/wp-content/plugins/sitepress-multilingual-cms/addons/wpml-page-builders/classes/Shared/st/class-wpml-pb-string-registration.php(95): trim(Array) #1 /home/suterfab/public_html/nnbs23/wp-content/plugins/sitepress-multilingual-cms/addons/wpml-page-builders/classes/Shared/st/compatibility/class-wpml-page-builders-register-strings.php(95): WPML_PB_String_Registration->register_string(16, Array, 'LINK', 'Logo Carousel -...', 'ucaddon_logo_ca...', 30, '') that caused the translation is not completed on your site. It indicates the issue comes from link/URL fields of some widgets of the plugin "Unlimited Elements for Elementor" that are not registered for translation correctly. Then I try to add the custom XML configuration code below to WPML > Settings > Custom XML Configuration tab, to register them and the homepage is translated completely. <wpml-config> <elementor-widgets> <widget name="ucaddon_ue_circle_menu"> <fields-in-item items_of="uc_items"> <field type="Circle menu item" editor_type="LINK">url</field> </fields-in-item> </widget> <widget name="ucaddon_image_card_carousel"> <fields-in-item items_of="uc_items"> <field type="Image Card Carousel item" editor_type="LINK">url</field> </fields-in-item> </widget> <widget name="ucaddon_logo_carousel"> <fields> <field type="Logo URL source" editor_type="LINE">multisource_posts_field_meta_link</field> <field type="Logo URL source" editor_type="LINE">multisource_posts_field_source_link</field> </fields> </widget> </elementor-widgets> </wpml-config> Refer documentation https://wpml.org/documentation/support/language-configuration-files/how-to-register-page-builder-widgets-for-translation/ Look forward to your reply. |
June 13, 2023 at 11:39 am #13816699 | |
fabianS-4 |
Hi Long Thank for your help. As I see, the widgets you added in the xml are not translated anymore? it should be solved by the devs because of this editor_type... |
June 14, 2023 at 3:06 am #13821127 | |
Long Nguyen Supporter
Languages: English (English ) Timezone: Asia/Ho_Chi_Minh (GMT+07:00) |
Hi, You can register other fields of those widgets for translation by adding more code but please don't remove the code that I shared above. If not, the homepage will not be translated properly. For example: if you want to translate content of widget Circle Menu and Image Carousel, please use this custom XML configuration code: <wpml-config> <elementor-widgets> <widget name="ucaddon_ue_circle_menu"> <fields> <field type="Circle menu title" editor_type="LINE">title</field> <field type="Circle menu text" editor_type="LINE">text</field> </fields> <fields-in-item items_of="uc_items"> <field type="Circle menu item" editor_type="LINK">url</field> <field type="Circle menu item" editor_type="LINE">title</field> </fields-in-item> </widget> <widget name="ucaddon_image_card_carousel"> <fields-in-item items_of="uc_items"> <field type="Image Card Carousel item" editor_type="LINK">url</field> <field type="Image Card Carousel item" editor_type="LINE">title</field> <field type="Image Card Carousel item" editor_type="AREA">content</field> <field type="Image Card Carousel item" editor_type="LINE">btn_text</field> </fields-in-item> </widget> <widget name="ucaddon_logo_carousel"> <fields> <field type="Logo URL source" editor_type="LINE">multisource_posts_field_meta_link</field> <field type="Logo URL source" editor_type="LINE">multisource_posts_field_source_link</field> </fields> </widget> </elementor-widgets> </wpml-config> You can check the translation of the home page after updating the content. Look forward to your reply. |
June 14, 2023 at 6:15 am #13821557 | |
fabianS-4 |
Hi Long Thank you very much. I'm in contact with the devs of UE Plugin to get it solved without a custom xml configuration...That's the reason why I removed it and gave your xml code to the devs 🙂 they are trying to make the whole widgets compatibel with wpml but I think there are some issues... you can navigate on my site to Unlimited Elements --> General Settings --> Integrations and see the configuration of WPML fields. I think there is something wrong / missing? I attached an image to show where the fields are visible |
June 14, 2023 at 7:02 am #13821823 | |
Long Nguyen Supporter
Languages: English (English ) Timezone: Asia/Ho_Chi_Minh (GMT+07:00) |
Hi, When I click on that button, there is a list of elements that need to use to register the widget for translation when use the XML configuration code, screenshot hidden link I'm not sure how it does or just show the elements. Also, the plugin "Unlimited Elements for Elementor" is not available in our list of compatible plugins, which you can check here https://wpml.org/plugin/. Look forward to your reply. |
June 14, 2023 at 7:31 am #13822139 | |
fabianS-4 |
Hi Long Okey. I asked the Devs about further information for this case. I let you know. I have offered them to join your global progam. Don't know if they are registered now... Hope they will do it 🙂 |
June 14, 2023 at 8:47 am #13822901 | |
Long Nguyen Supporter
Languages: English (English ) Timezone: Asia/Ho_Chi_Minh (GMT+07:00) |
Hi, Thanks for your co-operation. If you see the main issue of this ticket with the translation of homepage on your site is resolved, please mark this ticket as Resolved. If you have new questions/issues please create new tickets for those. Regards. |
June 14, 2023 at 9:39 am #13823553 | |
fabianS-4 |
Hi Long Yes you can close this thread. I have all informations for the devs of UE 🙂 Thanks for your help. |