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.
Our next available supporter will start replying to tickets in about 6.19 hours from now. Thank you for your understanding.
Background of the issue:
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: hidden link
Symptoms:
Can't register any theme strings. ACF options text fields page can't be translated.
Questions:
Why can't I register theme strings using WPML?
Why can't I translate options text fields from the ACF options page?
Please let me know how the testing goes with minimal settings. You can use the sandbox link that I shared to see the code that was excuded there and is working on the staging site.
Yes please provide cresdentials to a test site with minimal settings so we can see if the theme can register strings. The next field is marked as private so that you can safely share credentials.
Thanks, but when I try to login, I get the message "The username wpml is not registered on this site. If you are unsure of your username, try your email address instead.". Can you please double check credentials and let me know if anything changes?
I'm trying to enable the debug log for your test site but I"m getting a 500 error on your site. Can you please add debug information in the next reply so i can try enabling the debug log that way?
Have you tried registering a new site key? I Found an error related to the key in the communication log, so let's try that and see what happens.
Go to wpml.org/account/sites and delete the existing URL. Then, add it back. This generates a new site key. Copy this key.
Next, go to your WordPress dashboard and go to Plugins -> Add New -> Commercial. Click the link to unregister WPML from this site, and then you'll see the option to register the new key.
After that, try running the scan for the theme strings again and let me know if anything changes.
Unortunatelly there was an error during migration and now i can't start it anymore.
marcinS-43 confirmed that the issue was resolved on 2024-07-24 15:11:45.
This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.