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.

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

Problem:
Unable to translate a string in flatsome header
Solution:
Use the following XML:

<wpml-config>
    <admin-texts>
        <key name="theme_mods_flatsome-child">
            <key name="header_newsletter_label"/>
            <key name="topbar_left"/></key>
    </admin-texts>
</wpml-config>

Relevant Documentation:
https://wpml.org/documentation/support/language-configuration-files/

This topic contains 6 replies, has 2 voices.

Last updated by עדי שפירא 1 month, 2 weeks ago.

Assigned support staff: Bruno Kos.

Author Posts
August 22, 2019 at 12:23 pm #4439211

עדי שפירא

Unable to translate a string:
Costumers club
instead of
מועדון לקוחות
Screenshot attached

August 22, 2019 at 12:43 pm #4439461

עדי שפירא

1) is it a theme option? yes
2) is it a widget? No
3) it is available within string translation?
wpml-string-translation
The error:

[Thu Aug 22 11:24:12.080043 2019] [lsapi:error] [pid 10940:tid 140007134160640] [client 80.178.250.111:57950] [host hidden link; Backend fatal error: PHP Fatal error: Uncaught Error: Call to undefined function icl_get_string_id() in /home/seecoil/domains/orit-jewelry.com/public_html/wp-content/plugins/sitepress-multilingual-cms/classes/url-handling/class-wpml-endpoints-support.php:107\nStack trace:\n#0 /home/seecoil/domains/orit-jewelry.com/public_html/wp-content/plugins/sitepress-multilingual-cms/classes/url-handling/class-wpml-endpoints-support.php(90): WPML_Endpoints_Support->register_endpoint_string('order-pay', 'order-pay')\n#1 /home/seecoil/domains/orit-jewelry.com/public_html/wp-includes/class-wp-hook.php(286): WPML_Endpoints_Support->get_endpoint_translation('order-pay', 'order-pay', 'he')\n#2 /home/seecoil/domains/orit-jewelry.com/public_html/wp-includes/plugin.php(203): WP_Hook->apply_filters('order-pay', Array)\n#3 /home/seecoil/domains/orit-jewelry.com/public_html/wp-content/plugins/woocommerce-multilingual/inc/class-wcml-endpoints.php(190): apply_filters('wpml_get_endpoi...', 'order-pay', 'order-pay', 'he')\n#4 /home/seecoil/domains/orit-jewelry.com/public_html/wp-c in /home/seecoil/domains/orit-jewelry.com/public_html/wp-content/plugins/sitepress-multilingual-cms/classes/url-handling/class-wpml-endpoints-support.php on line 107\n, referer: hidden link [Thu Aug 22 11:24:12.118973 2019] [lsapi:error] [pid 10940:tid 140007201302272] [client 192.116.109.192:57932] [host hidden link; Backend fatal error: PHP Fatal error: Uncaught Error: Call to undefined function icl_get_string_id() in /home/seecoil/domains/orit-jewelry.com/public_html/wp-content/plugins/sitepress-multilingual-cms/classes/url-handling/class-wpml-endpoints-support.php:107\nStack trace:\n#0 /home/seecoil/domains/orit-jewelry.com/public_html/wp-content/plugins/sitepress-multilingual-cms/classes/url-handling/class-wpml-endpoints-support.php(90): WPML_Endpoints_Support->register_endpoint_string('order-pay', 'order-pay')\n#1 /home/seecoil/domains/orit-jewelry.com/public_html/wp-includes/class-wp-hook.php(286): WPML_Endpoints_Support->get_endpoint_translation('order-pay', 'order-pay', 'he')\n#2 /home/seecoil/domains/orit-jewelry.com/public_html/wp-includes/plugin.php(203): WP_Hook->apply_filters('order-pay', Array)\n#3 /home/seecoil/domains/orit-jewelry.com/public_html/wp-content/plugins/woocommerce-multilingual/inc/class-wcml-endpoints.php(190): apply_filters('wpml_get_endpoi...', 'order-pay', 'order-pay', 'he')\n#4 /home/seecoil/domains/orit-jewelry.com/public_html/wp-c in /home/seecoil/domains/orit-jewelry.com/public_html/wp-content/plugins/sitepress-multilingual-cms/classes/url-handling/class-wpml-endpoints-support.php on line 107\n, referer: hidden link [Thu Aug 22 11:24:43.217057 2019] [lsapi:error] [pid 10940:tid 140006748096256] [client 13.74.24.180:58424] [host hidden link; Backend fatal error: PHP Fatal error: Uncaught Error: Call to undefined function icl_get_string_id() in

August 22, 2019 at 12:49 pm #4439485

Bruno Kos
Supporter

Languages: English (English )

Timezone: Europe/Zagreb (GMT+02:00)

Hi,

Let's focus on the backend error first:

Backend fatal error: PHP Fatal error: Uncaught Error: Call to undefined function icl_get_string_id() in 

Can you do this:
- remove WPML and its addons from your site (plugins only, this will not delete any translation data, directly from dashboard)
- download these versions and install them:
https://wpml.org/account/downloads/

There might be corrupted plugin on your site so we need to start fresh with them.

Regards,
Bruno Kos

August 22, 2019 at 5:13 pm #4441793

עדי שפירא

ok, done 🙂

August 23, 2019 at 6:05 am #4444183

Bruno Kos
Supporter

Languages: English (English )

Timezone: Europe/Zagreb (GMT+02:00)

Hi,

Ok, so there is no error any more? 🙂 In order to debug this issue further quickly, would you be willing to provide me with temporary WordPress admin username so I could investigate the issue directly?

https://wpml.org/purchase/support-policy/privacy-and-security-when-providing-debug-information-for-support/

Please make a full backup of your site before sharing this info!

You can use plugins such as UpdraftPlus WordPress Backup Plugin (https://wordpress.org/plugins/updraftplus/) or ask your host to perform a site backup.

May I also ask you to download this plugin and install it (green "Clone or download" button):
hidden link

Regards,
Bruno Kos

August 26, 2019 at 6:06 am #4456093

Bruno Kos
Supporter

Languages: English (English )

Timezone: Europe/Zagreb (GMT+02:00)

Hi,

I used this XML:

<wpml-config>
    <admin-texts>
        <key name="theme_mods_flatsome-child">
            <key name="header_newsletter_label"/>
            <key name="topbar_left"/></key>
    </admin-texts>
</wpml-config>

I've registered that other string also, in case you'll want to translate it. They are available within String Translation, under admin_texts_theme_mods_flatsome-child domain.

Regards,
Bruno Kos

August 26, 2019 at 7:18 am #4456295

עדי שפירא

My issue is resolved now. Thank you!