Skip Navigation

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

Problem:
I am trying to translate theme strings, but I can't register any. It doesn't matter if I try to do it with function like do_action( 'wpml_register_single_string', 'stegu', 'enter_search_terms', 'Enter search terms' ); or simply using __ . Also, options text fields page from ACF options page can't be translated (it works for acf fields in posts or pages). Link to a page where the issue can be seen: https://test.stegu.pl/

Solution:
For some reasons some of icl tables had positions with id 0. after removing them all works as a charm.

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 19 replies, has 2 voices.

Last updated by Lauren 3 months, 2 weeks ago.

Assisted by: Lauren.

Author Posts
July 18, 2024 at 11:01 am #15971867

marcinS-43

Today i was able to run it again, but as yesterday it stuck around 60% and than error occured again.

Zrzut ekranu 2024-07-18 130027.png
July 22, 2024 at 10:15 am #15986011

marcinS-43

Are there any logs on this services side to know what could be wrong?

July 22, 2024 at 2:01 pm #15987280

Lauren
Supporter

Languages: English (English )

Timezone: America/New_York (GMT-05:00)

Please ask your hosting provider to check the server logs to see if there are any errors there.

Also, is it possible that your hosting provider can set up a staging site for you, or could you use WP Staging plugin to create a test site?

If not, please use the Duplicator plugin to send me a package of your site and I can try to set it up locally for testing in a different server environment.

July 23, 2024 at 1:45 pm #15992593

marcinS-43

Okay!
This will weight a bit probably so i will send you link tomorrow!

July 23, 2024 at 6:45 pm #15994097

Lauren
Supporter

Languages: English (English )

Timezone: America/New_York (GMT-05:00)

thanks, I'll keep an eye out for the link.

July 24, 2024 at 3:11 pm #15999212

marcinS-43

I've found the reason for string not being added to translations.
For some reasons some of icl tables had positions with id 0. after removing them all works as a charm.
Thank you for your help!