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: ATE
This topic contains 27 replies, has 2 voices.
Last updated by Carlos Rojas 7 months, 1 week ago.
Assisted by: Carlos Rojas.
Author | Posts |
---|---|
March 21, 2024 at 12:24 pm #15436263 | |
Ton |
Tell us what you are trying to do? What is the link to your site? The automatic translation just keeps saying "Refreshing translation status". I can provide FTP + WP login. I cannot provide a Duplicator, please fix it on our own server. Kind regards |
March 21, 2024 at 1:20 pm #15436437 | |
Carlos Rojas Supporter
Languages: English (English ) Spanish (Español ) Timezone: Europe/Madrid (GMT+01:00) |
Hello, 1.- Could you tell me if this site was moved, or restored, or is this a staging site from a production site? 2.- I would like to request temporary access (wp-admin and FTP) to your site to take a better look at the issue. You will find the needed fields for this below the comment area when you log in to leave your next reply. The information you will enter is private which means only you and I can see and have access to it. Our Debugging Procedures I will be checking various settings in the backend to see if the issue can be resolved. Although I won't be making changes that affect the live site, it is still good practice to back up the site before providing us access. If we do need to debug the site further, I will duplicate the site and work in a separate, local development environment to avoid affecting the live site. Regards, |
March 22, 2024 at 9:41 am #15439632 | |
Carlos Rojas Supporter
Languages: English (English ) Spanish (Español ) Timezone: Europe/Madrid (GMT+01:00) |
Thank you very much for sharing the credentials requested. Before we continue I need to ask you to: Please let me know when the above is finished so we can continue. Also, please check if the issue disappeared (updating all outdated plugins and the core will allow us to rule out the possibility that an outdated functionality is causing this problem) |
March 22, 2024 at 10:13 am #15439710 | |
Ton |
Hello Carlos, No problem, I updated everything etc. Hope to hear from you with a nice solution 🙂 Kind regards. |
March 22, 2024 at 10:27 am #15439782 | |
Carlos Rojas Supporter
Languages: English (English ) Spanish (Español ) Timezone: Europe/Madrid (GMT+01:00) |
Hi, I found this warning message in the backend after sending the homepage to automatic translation: Warning: mb_ereg_replace_callback(): mbregex search failure in php_mbereg_replace_exec(): retry-limit-in-match over in /home/rhvhmazqva/domains/vertaaltest20.int.webton.dev/public_html/inhoud/plugins/sitepress-multilingual-cms/classes/xliff/class-wpml-tm-validate-html.php on line 363 This error is related to the configuration of the 'Multibyte String' extension of PHP and you should contact your hosting providers and ask them to check this issue on the server side, because the extension is active. In this link you will find a ticket with the same issue: https://wpml.org/forums/topic/call-to-undefined-function-mb_ereg_replace_callback/#post-10349045 |
March 22, 2024 at 11:22 am #15440027 | |
Ton |
Hello Carlos, The link you mentioned is archived and not accessible? |
March 22, 2024 at 11:39 am #15440319 | |
Carlos Rojas Supporter
Languages: English (English ) Spanish (Español ) Timezone: Europe/Madrid (GMT+01:00) |
You are right, I'm sorry I missed the status of that ticket. Here is the content of the message: |
March 25, 2024 at 6:42 am #15444747 | |
Ton |
They told me to add this in the code: But that dit not work. Can you perhaps also open the ticket you mentioned? |
March 25, 2024 at 10:37 am #15445821 | |
Carlos Rojas Supporter
Languages: English (English ) Spanish (Español ) Timezone: Europe/Madrid (GMT+01:00) |
Hi, Here is the unarchived link: https://wpml.org/forums/topic/call-to-undefined-function-mb_ereg_replace_callback/#post-10349045 |
March 26, 2024 at 10:07 am #15450389 | |
Ton |
Hello Carlos, Somehow it does work with the "twentytwenty" theme, with the same technical ACF setup as my custom theme. Is there any way we or you can pinpoint out why there is a difference although the technical setup (so plugins etc and functions to show my ACF fields on the frontend) is the same? Kind regards |
March 26, 2024 at 10:16 am #15450453 | |
Ton |
So to keep you posted, I removed not essential all code from my child theme, and than it works. |
March 26, 2024 at 10:28 am #15450573 | |
Carlos Rojas Supporter
Languages: English (English ) Spanish (Español ) Timezone: Europe/Madrid (GMT+01:00) |
Great! I will be waiting for your feedback. |
March 26, 2024 at 10:34 am #15450595 | |
Ton |
Hello Carlos, I pinpointed it and somehow the following code makes the automatic translation stuck, i moved it for you to maybe look at in my functions.php in the child theme all the way at the bottom of the file: function acf_location_rules_types( $choices ) { $choices['Webton']['webton_capability'] = 'Rechten'; function acf_location_rules_values_user( $choices ) { function acf_location_rules_webton_scripts( $match, $rule, $options ) if($rule['operator'] == "==") return $match; |
March 26, 2024 at 10:39 am #15450599 | |
Carlos Rojas Supporter
Languages: English (English ) Spanish (Español ) Timezone: Europe/Madrid (GMT+01:00) |
Hi, Unfortunately, custom code falls outside of the scope of our support service. I'd recommend you to contact one of our certified partners at this link: https://wpml.org/contractors/ and they will be more than happy to help. Also, I recommend you contact the ACF support service and ask them if they see any potential issue in the code you shared. Thank you very much for your patience and understanding! |
March 26, 2024 at 11:02 am #15450713 | |
Ton |
Hello Carlos, Too bad, because no, i don't understand. It just feels like me as a customer can never get a real solution from WPML support. Now I even edited the code to be updated to the latest docs from ACF: And it still won't work. Since WPML says it can work with ACF (with ACFML) and I use the official way to add a custom rule, the solution should come from your end, or do you disagree? Hope to hear from you. |