Skip Navigation

This thread is resolved. Here is a description of the problem and solution.

Problem:

When translating the homepage with ATE, the following fatal error occurs.

PHP Fatal error:  Uncaught TypeError: trim(): Argument #1 ($string) must be of type string, array given in /public_html/wp-content/plugins/sitepress-multilingual-cms/addons/wpml-page-builders/classes/Shared/st/class-wpml-pb-string-registration.php:95

Solution:

1. Go to WPML -> Settings -> Custom XML Configuration (tab).

2. Insert the following code.

<wpml-config>
  <elementor-widgets>
    <widget name="houzez_elementor_icon_box">
      <conditions>
        <condition key="widgetType">houzez_elementor_icon_box</condition>
      </conditions>
      <fields-in-item items_of="icon_boxes">
        <field type="Icon Box: Title" editor_type="LINE">title</field>
        <field type="Icon Box: Text" editor_type="LINE">text</field>
        <field type="Icon Box: Read More Text" editor_type="AREA">read_more_text</field>
        <field type="Icon Box: Read More Link" editor_type="LINK">read_more_link>link</field>
      </fields-in-item>
    </widget>
  </elementor-widgets>
</wpml-config>

3. Press the Save button.

4. Check if now the problem is fixed and you can translate the homepage.

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: 

This topic contains 16 replies, has 2 voices.

Last updated by Itamar 1 year, 8 months ago.

Assisted by: Itamar.

Author Posts
May 7, 2023 at 11:34 am

andrejsS-4

when I try to update home page. it shows critical errors

May 7, 2023 at 1:10 pm
May 8, 2023 at 7:48 am #13602591

Itamar
Supporter

Languages: English (English ) Hebrew (עברית )

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

Hi,

As I mentioned yesterday, we want to investigate this further. For this, we need a copy of your site. I've created a temporary server on our Cludways server for this. You will be able to migrate your site there. The process is quite easy. Please read all the information and explanations in the following private reply.

Regards,
Itamar.

May 8, 2023 at 7:49 am
May 8, 2023 at 9:25 am #13603537

andrejsS-4

I should pay those 10 eur? for this cloudservice?

May 8, 2023 at 10:15 am #13604151

Itamar
Supporter

Languages: English (English ) Hebrew (עברית )

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

Hi,

No, you should pay nothing.

I'm not sure why you see a request to pay anything. If you can not proceed, please share a screenshot of the screen where you requested to pay 10 EUR.

Thanks,
Itamar.

May 9, 2023 at 12:05 pm #13613567

andrejsS-4

I think it is donne. the only thing: may I ask you to hold on a liittle, for now HOUZEZ theme guys a cheching some issues as well. or you now will do in clouds, which is not related to main website? as they do main website on usual hosting

Снимок экрана 2023-05-09 в 15.02.59.png
May 9, 2023 at 1:07 pm #13614033

Itamar
Supporter

Languages: English (English ) Hebrew (עברית )

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

Thanks for migrating your site to our server.

I'll continue to check the issue on the copy of your site on our server. This will not interfere with your main website. If the HOUZEZ guys find something related to the issue we are checking, I'd appreciate your informing me.

Otherwise, I'll keep you updated on any news regarding this issue.

Regards,
Itamar.

May 9, 2023 at 2:01 pm #13614581

andrejsS-4

OFC I will. thank you. I explained them some troubles I am struggling with. So they also try to help. And huge THANK YOU to all of you guys!

May 9, 2023 at 2:17 pm #13614825

Itamar
Supporter

Languages: English (English ) Hebrew (עברית )

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

Hi,

I've checked things on the copy of your site. In the beginning, I got the same fatal error when translating the homepage. But then I noticed that Elementor is not updated on the site. It was on version 3.12.2. So I updated it to the latest version, 3.13.0. And after that, I didn't get this fatal error. So it seems that Elementor was the cause of this problem.

Please update Elementor to its latest version and check if the fatal error persists on your site.

Please let me know how it goes.

Thanks,
Itamar.

May 9, 2023 at 2:24 pm #13614839

andrejsS-4

updated. 3.13.1. ( even more up to date version) still critical error

May 9, 2023 at 3:16 pm #13615249

Itamar
Supporter

Languages: English (English ) Hebrew (עברית )

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

Hi, and thanks for following my suggestion and reporting back to me.

I'll continue to investigate this tomorrow.

Please tell me if you are still getting the same fatal error.

PHP Fatal error: Uncaught TypeError: trim(): Argument #1 ($string) must be of type string, array given in /public_html/wp-content/plugins/sitepress-multilingual-cms/addons/wpml-page-builders/classes/Shared/st/class-wpml-pb-string-registration.php:95

Or is it a different one now?

Thanks,
Itamar.

May 9, 2023 at 3:19 pm #13615263

andrejsS-4

where I can check it? Im getting this screen

Снимок экрана 2023-05-09 в 18.19.01.png
May 9, 2023 at 3:30 pm #13615331

Itamar
Supporter

Languages: English (English ) Hebrew (עברית )

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

Thanks!

Can you now please check the debug.log for that actual error?
It is as I explained, and you followed when we were a chat. You should see the debug.log in the /wp-content/ folder. Check for the errors from the last minute you tried this and the fatal error occurred.

Thanks,
Itamar.

May 10, 2023 at 5:27 am #13618347

andrejsS-4

this are last ones

#40 /home/u267323439/domains/sellhouse.lv/public_html/wp-content/plugins/sitepress-multilingual-cms/classes/menu/translation-queue/class-wpml-translations-queue.php(52): WPML\TM\Editor\Editor->open()
#41 /home/u267323439/domains/sellhouse.lv/public_html/wp-includes/class-wp-hook.php(308): WPML_Translations_Queue->load()
#42 /home/u267323439/domains/sellhouse.lv/public_html/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters()
#43 /home/u267323439/domains/sellhouse.lv/public_html/wp-includes/plugin.php(517): WP_Hook->do_action()
#44 /home/u267323439/domains/sellhouse.lv/public_html/wp-admin/includes/class-wp-screen.php(424): do_action()
#45 /home/u267323439/domains/sellhouse.lv/public_html/wp-admin/includes/screen.php(243): WP_Screen->set_current_screen()
#46 /home/u267323439/domains/sellhouse.lv/public_html/wp-admin/admin.php(212): set_current_screen()
#47 {main}
thrown in /home/u267323439/domains/sellhouse.lv/public_html/wp-content/plugins/sitepress-multilingual-cms/addons/wpml-page-builders/classes/Shared/st/class-wpml-pb-string-registration.php on line 95
[09-May-2023 19:49:21 UTC] App: PurgeListings
[09-May-2023 19:49:21 UTC] App: PurgeListings : call core
[09-May-2023 19:49:21 UTC] App: purgeAttachments
[09-May-2023 19:49:21 UTC] App: purgeAttachments : call core
[09-May-2023 22:13:39 UTC] App: PurgeListings
[09-May-2023 22:13:39 UTC] App: PurgeListings : call core
[09-May-2023 22:13:39 UTC] App: purgeAttachments
[09-May-2023 22:13:39 UTC] App: purgeAttachments : call core
[09-May-2023 22:13:48 UTC] MLS SYNC : Update check
[09-May-2023 22:13:48 UTC] MLS SYNC : Update is not available
[09-May-2023 22:56:48 UTC] App: PurgeListings
[09-May-2023 22:56:48 UTC] App: PurgeListings : call core
[09-May-2023 22:56:48 UTC] App: purgeAttachments
[09-May-2023 22:56:48 UTC] App: purgeAttachments : call core
[10-May-2023 01:41:05 UTC] App: PurgeListings
[10-May-2023 01:41:05 UTC] App: PurgeListings : call core
[10-May-2023 01:41:05 UTC] App: purgeAttachments
[10-May-2023 01:41:05 UTC] App: purgeAttachments : call core
[10-May-2023 03:15:00 UTC] App: PurgeListings
[10-May-2023 03:15:00 UTC] App: PurgeListings : call core
[10-May-2023 03:15:00 UTC] App: purgeAttachments
[10-May-2023 03:15:00 UTC] App: purgeAttachments : call core
[10-May-2023 05:24:25 UTC] App: PurgeListings
[10-May-2023 05:24:25 UTC] App: PurgeListings : call core
[10-May-2023 05:24:25 UTC] App: purgeAttachments
[10-May-2023 05:24:25 UTC] App: purgeAttachments : call core