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: Exception
This topic contains 18 replies, has 2 voices.
Last updated by legaltreeB 1 year, 9 months ago.
Assisted by: Osama Mersal.
Author | Posts |
---|---|
August 22, 2023 at 10:12 pm #14273899 | |
legaltreeB |
I'm developing a website for client LegaltreeB, I can change the email address to mine if you like. Tell us what you are trying to do? Is there any documentation that you are following? Is there a similar example that we can see? What is the link to your site? |
August 23, 2023 at 8:31 am #14275803 | |
Osama Mersal WPML Supporter since 02/2020
Languages: English (English ) Arabic (العربية ) Timezone: Africa/Cairo (GMT+03:00) |
Hi, Thanks for contacting WPML forums support. I'll be glad to help you today. 1) If you mean you want to translate the labels of the fields or choices, please search for them in WPML-> String Translation. Kindly check our guide about translating ACF fields. (https://wpml.org/documentation/related-projects/translate-sites-built-with-acf/) 2) It's unrelated to the issue, but according to your Debug.info, the WP memory limit needs to be increased. PHP memory is fine, but WordPress uses 40Mb as default. The minimum requirements for WPML are 128 MB. (Kindly check this page https://wpml.org/home/minimum-requirements/) You can increase it by adding the following code in your wp-config.php file right before the /* That's all, stop editing! Happy publishing. */ line: /* Memory Limit */ define('WP_MEMORY_LIMIT', '256M'); define( 'WP_MAX_MEMORY_LIMIT', '256M'); Best regards, |
August 23, 2023 at 7:13 pm #14280431 | |
legaltreeB |
With a lot of tinkering I managed to make the ACF fields visible in the EN version (original language is Dutch). But now, when I enter a translation, the Dutch field also changes into English. Where can I turn that option off? I looked through a lot of documentation an YT-vids but most of them are too old be of much help. The UI and flow has changed too much for me, sorry. |
August 24, 2023 at 6:06 am #14281639 | |
Osama Mersal WPML Supporter since 02/2020
Languages: English (English ) Arabic (العربية ) Timezone: Africa/Cairo (GMT+03:00) |
Hi Anton, Would you please let me know where to check the issue on your site and how to reproduce it? Also, I would need to look closely at your site, so I would need to request temporary access (WP-Admin and FTP) Your next answer will be private, which means only you and I can access it. ❌ Please backup your database and website ❌ ✙ I would need your permission to de-activate and re-activate the Plugins and the Theme and change configurations on the site. This is also a reason the backup is critical. ✙ I also need your permission to take a local copy of your site to debug the issue without affecting your live site. Best regards, |
August 24, 2023 at 5:07 pm #14287417 | |
legaltreeB |
Hello Osama, Sorry for my late reply - I was out all day. Great that you want to help me out. Maybe he can help me and that could save you a lot of diagnosing. Jus to let you know. Feel free to do whatever you like but I wouldn't mind if you wait till I come back to you tomorrow. I have copied the site to another URL as well so we won't get in each other's way, in case you want to take a look anyway. Elaborating on my problem: I have 2 Field Groups (for now). The 'Category info' works fine. The 'Partner info' does not. I must have done something wrong with the group 'Partner info' in the beginning because that Field Group doesn't work. First I had no visible English Fields and when I finally managed to activate these, they synced their content with the Dutch original. I can't find where to turn that syncing off and I can't follow what is written in documentation. If you could repair it and let me know what I should do next time, that would be great. Both Field groups are set to "Same Fields across languages" which is fine, but I never meant to say "same content across languages"! I have backed up the site. English translations were only entered for testing purposes, so you can delete all English ACF-fields for the group "Partner info" if you like. I also have a version of the site wh Please leave the group 'Category info' as is, if possible, including English, because that group works as expected. [Access details Deleted] Nobody will work on the site. You have my permission to de-activate and re-activate the Plugins and the Theme and change configurations on the site. Kind regards, |
August 24, 2023 at 5:25 pm #14287449 | |
Osama Mersal WPML Supporter since 02/2020
Languages: English (English ) Arabic (العربية ) Timezone: Africa/Cairo (GMT+03:00) |
Hi Anton, Thanks for your explanation. I deleted the access details for your site's safety. Please add them in the following private reply. If you don't see the form below, please don't add your credentials, as they will be publicly exposed٫ (hidden link) I'll wait for the access details after the mentioned meeting to let me know the updates before logging into the site. Best regards, |
August 25, 2023 at 11:26 am #14291585 | |
legaltreeB |
Hello Osama, I had a videocall with Boris Hoekmeijer. We pinned down the problem: ACF Fields in type User can only be edited in the String Translator. For my client this is not workable, unfortunately. I guess you won't need credentials to answer this question, otherwise, let me know! Kind regards, |
August 25, 2023 at 11:41 am #14291653 | |
Osama Mersal WPML Supporter since 02/2020
Languages: English (English ) Arabic (العربية ) Timezone: Africa/Cairo (GMT+03:00) |
Hi Anton, I'm afraid you found the workaround for such a case because user types (Admin, Author, Subscriber, etc) are not post types (Post, Page, Product, etc), so they are not treated like a post type because of how they are saved in the database and how WordPress treats them. Also, please note that user types are not posts, so they are not translatable. You can only translate some user info using String Translation, but the user itself is not translatable because some fields can't be duplicated due to WordPress regulations. Thanks, |
August 25, 2023 at 6:51 pm #14293697 | |
legaltreeB |
Hi Osama, Thanks for your affirmative answer. Now I can fully appreciate that native WordPress User Fields need restrictive protection. Especially User Name, email address, password, telephone, website and such more. Having said this, I really don’t get why this also goes for ACF fields that are assigned to another Type then Page, Post, Category. We’re talking ACF Fields like all others. It’s just the condition where they should be displayed that is different. I’d suggest that WPML just skip the restriction for Custom Fields if they are assigned to a User Type. They can be stored like all other Fields. You could even display them in the User Profile (a plugin like Custom Profile Picture does this as well) After all, If WordPress allows adding ACF fields to User Fields, what’s the use of not being able to translate these? Of course you can’t help it, I understand. Please don’t take this personally 😉 But maybe it’s something to discuss (again), internally. For now, I know how to proceed: a CPT. Thanks for your help anyway, much appreciated! Kind regards, Anton Theunissen |
August 25, 2023 at 8:50 pm #14293881 | |
Osama Mersal WPML Supporter since 02/2020
Languages: English (English ) Arabic (العربية ) Timezone: Africa/Cairo (GMT+03:00) |
Hi Anton, Thanks for sharing your thoughts. Would you please login to this sandbox site and import your ACF field to reproduce the issue? (hidden link) If the issue is replicable, please let me know how to reproduce it to discuss it with our compatibility team. Thanks for your cooperation. Best regards, |
August 25, 2023 at 9:33 pm #14293907 | |
legaltreeB |
Hi Osama, I’ll do that tomorrow from a backup because I am working with the CPT already. Then set it up in WPML (ACFML active) for another language. After that, the content between the two remain 2-way synced. But I’ll try do find out how to export my current Field Groups tomorrow. Kind regards, Anton Theunissen |
August 26, 2023 at 10:25 am #14294455 | |
Osama Mersal WPML Supporter since 02/2020
Languages: English (English ) Arabic (العربية ) Timezone: Africa/Cairo (GMT+03:00) |
Hi Anton, I tried to replicate the issue on the sandbox. Please check it and confirm that this is the same result you have on your site. Best regards, |
August 26, 2023 at 12:07 pm #14294629 | |
legaltreeB |
Confirmed. |
August 27, 2023 at 7:54 am #14295609 | |
Osama Mersal WPML Supporter since 02/2020
Languages: English (English ) Arabic (العربية ) Timezone: Africa/Cairo (GMT+03:00) |
Hi, Thanks for your confirmation. I've consulted our 2nd tier support team regarding this issue and will update you as soon as I get their reply. Best regards, |
August 27, 2023 at 7:57 am #14295613 | |
legaltreeB |
You're exceeding my expectations, thank you. |