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: Custom Work
This topic contains 19 replies, has 2 voices.
Last updated by Lauren 3 months, 3 weeks ago.
Assisted by: Lauren.
Author | Posts |
---|---|
July 9, 2024 at 2:42 pm #15921453 | |
marcinS-43 |
Background of the issue: Symptoms: Questions: |
July 9, 2024 at 4:37 pm #15922187 | |
Lauren Supporter
Languages: English (English ) Timezone: America/New_York (GMT-05:00) |
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. |
July 10, 2024 at 10:47 am #15927683 | |
marcinS-43 |
Unoftunatelly, no changes. |
July 10, 2024 at 11:35 am #15927934 | |
marcinS-43 |
Should i maybe deliver creditencials to test webvsite? |
July 10, 2024 at 12:13 pm #15928058 | |
Lauren Supporter
Languages: English (English ) Timezone: America/New_York (GMT-05:00) |
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. |
July 10, 2024 at 1:08 pm #15928205 | |
Lauren Supporter
Languages: English (English ) Timezone: America/New_York (GMT-05:00) |
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? Thanks. |
July 10, 2024 at 1:13 pm #15928218 | |
marcinS-43 |
Sorry, that was my bad. |
July 10, 2024 at 1:30 pm #15928258 | |
Lauren Supporter
Languages: English (English ) Timezone: America/New_York (GMT-05:00) |
I was able to login but it seems I don't have access. Can you please make mine an admin account? |
July 10, 2024 at 1:37 pm #15928284 | |
marcinS-43 |
You are set as admin now |
July 10, 2024 at 2:57 pm #15928792 | |
marcinS-43 |
If you will need i can provide ftp access as well. |
July 11, 2024 at 2:09 am #15931161 | |
Lauren Supporter
Languages: English (English ) Timezone: America/New_York (GMT-05:00) |
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? Thanks! |
July 11, 2024 at 9:25 pm #15937825 | |
Lauren Supporter
Languages: English (English ) Timezone: America/New_York (GMT-05:00) |
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. |
July 12, 2024 at 11:04 am #15942067 | |
marcinS-43 |
Unoftunatelly it is still the same as it was before. |
July 16, 2024 at 6:42 pm #15962280 | |
Lauren Supporter
Languages: English (English ) Timezone: America/New_York (GMT-05:00) |
Please see my previous private reply and let me know once the migration is complete. |
July 17, 2024 at 12:52 pm #15966290 | |
marcinS-43 |
Unortunatelly there was an error during migration and now i can't start it anymore. |