Skip Navigation

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.

Sun Mon Tue Wed Thu Fri Sat
9:00 – 18:00 9:00 – 18:00 9:00 – 18:00 9:00 – 18:00 9:00 – 18:00 - -
- - - - - - -

Supporter timezone: Africa/Cairo (GMT+02:00)

Tagged: ,

This topic contains 19 replies, has 3 voices.

Last updated by michaelD-110 1 year, 10 months ago.

Assisted by: Osama Mersal.

Author Posts
May 25, 2023 at 9:23 am #13714441

michaelD-110

I am trying to: Remove old content from ATE. The ATE now contain a huge amount of translations that don't exist.

Link to a page where the issue can be seen: hidden link

I expected to see: 'Aimed at kids aged 10-14 but open to anyone.' but I'm also seeing 'Aimed at children aged 10-14 but open to anyone.' which doesn't exist on the frontend page hidden link

Screenshot 2023-05-25 at 10.27.32.png
Screenshot 2023-05-25 at 10.21.20.png
Screenshot 2023-05-25 at 10.21.26.png
May 28, 2023 at 8:17 am #13727063

Osama Mersal
Supporter

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+02:00)

Hi,

Thanks for contacting WPML forums support. I'll be glad to help you today.

1) First of all, sorry for the late reply due to a higher workload. Please make sure that you use the latest version of WPML plugins. You can find them here. (https://wpml.org/account/downloads/)

After updating WPML, please check if the issue persists.

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,
Osama

May 29, 2023 at 3:26 pm #13733813

michaelD-110

Hi Osama,

Thank you for getting back to me.

I've updated ACFML and WPML plugins to the latest versions but the bug still persists.

In order to make it easier for you to troubleshoot, I've created a very simple WP install (links below) with just a few plugins and the Twenty Twenty-Three theme installed.

Admin Home page: hidden link

Home ATE page: hidden link

The Home page only has one Flexible Content Item (Textarea) filled in, but in the ATE it is still showing old/deleted Flexible Content. Please see the attached screenshots. How can I remove these fields that no longer exist?

It's quite an urgent issue for us so please let me know how I can send you login access in order to test it yourself.

Best regards,
Louis

Screenshot 2023-05-29 at 16.20.34.png
Screenshot 2023-05-29 at 16.19.57.png
May 29, 2023 at 4:37 pm #13734341

Osama Mersal
Supporter

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+02:00)

Hi Louis,

Thanks for your update. I would need to look closely at your site, so I would need to request temporary access (WP-Admin and FTP)
– preferably to a test site where the problem has been replicated if possible –
in order to be of better help and check if some configurations might need to be changed.

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,
Osama

May 30, 2023 at 7:48 am #13736631

Osama Mersal
Supporter

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+02:00)

Hi Louis,

Thanks for the access details. I checked the issue and applied the following steps:

1- Update ACF Pro
2- Install String Translation
3- Change the field group's translation mode to "Same Fields across languages"
4- Add empty text area fields for the stuck fields in ATE
5- Delete those fields and update the page
6- Translate the page (Kindly check this hidden link)

Please let me know if the issue is replicable after the above steps.

Best regards,
Osama

May 30, 2023 at 9:38 am #13737673

michaelD-110

Hi Osama,

Thank you for looking testing the dev site. Unfortunately the same bug is still occuring.

I've removed your 'WPML TEXT ACF FR' Textarea but it is still showing up in the ATE (see attached screenshots).

Do you think it's possible ACFML needs a patch in order to keep the ATE properly synced with the WP Editors ACF content?

Please let me know what you think. You can log in and make any changes you need.

Thanks,
Louis

Screenshot 2023-05-30 at 10.33.29.png
Screenshot 2023-05-30 at 10.33.23.png
May 30, 2023 at 10:32 am #13738487

Osama Mersal
Supporter

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+02:00)

Hi Louis,

Thanks for your update. I've consulted our 2nd tier support team, and I'll update you as soon as I get their reply.

Best regards,
Osama

May 31, 2023 at 12:15 pm #13747449

Osama Mersal
Supporter

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+02:00)

Hi,

Thanks for your patience. Our 2nd tier checked the issue and found that ACF doesn't delete the fields from the wp_postmeta table, so WPML reads them, and you see them in ATE.

Please contact the ACF support team and check with them if these meta fields can be deleted from the database after deleting them from the post.

Best regards,
Osama

May 31, 2023 at 3:48 pm #13748707

michaelD-110

Hi Osama,

Thank you for following this up.

I don't think I should contact ACF on behalf of WPML for this ATE bug. WPML doesn't appear to be fully compatible with ACF which isn't mine or any other customer's responsibility.

Surely the WPML development team will prioritise this issue and work to get a fix for ATE?

Best regards,
Louis

May 31, 2023 at 4:06 pm #13748795

Osama Mersal
Supporter

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+02:00)

Hi Louis,

Thanks for your update. WPML reads the meta fields saved in the wp_postsmeta table in the database, and those fields are not deleted when deleting fields from the page editing screen, so ACF saves these fields, and WPML only reads them.

In order to check that, please deactivate WPML, create a test page with three text area fields, and publish it. After that, please delete one or two fields, then check the database. You will see the deleted fields there.

I've run this test on a sandbox site. (Kindly check this video hidden link)

Best regards,
Osama

May 31, 2023 at 4:47 pm #13748979

michaelD-110

Hi Osama,

I understand the video you sent but why doesn't the WPML team find a way to solve this bug or contact ACF yourself?

Is WPML no longer compatible with ACF?

Thanks,
Louis

June 1, 2023 at 6:11 am #13750835

Osama Mersal
Supporter

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+02:00)

Hi Louis,

ACF is still compatible with WPML. It would be better if you open a ticket with ACF support and consult them regarding the database records because they could have a workaround to delete them if the fields are deleted from the dashboard.

Kindly let us know their findings, and our compatibility team will contact ACF team if needed after your ticket.

Thanks for your cooperation

Best regards,
Osama

June 1, 2023 at 8:55 am #13752007

michaelD-110

Hi Osama,

This is a clear bug on WPML's side - ACF doesn't display deleted content in the Editor or Frontend, it's the WPML ATE which is displaying deleted content. WPML needs to understand what is in the wp_postmeta table and only display the undeleted content the same way ACF does it.

It's not my responsibility to fix your WPML plugin if it's not fully compatible with ACF. Your development team, not me, should discuss it with ACF to find a workaround.

Are you not going to fix this AFCML bug?

June 1, 2023 at 10:39 am #13753085

Sumit
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hi Louis,

I am Sumit from 2nd tier support.

Sorry to hear that you are upset about the product but I will explain to you what Osama meant here.

Basically, you can see the problem in ATE only not without WPML. So visibly the problem is with WPML only. However, the root cause of the problem is that records are not deleted from the database even if the field is deleted from the post.

As per the standards if something is deleted from the backend should be deleted from the database too. If this is not the case the database will keep growing forever and it is not good for end users only.

For now, as per your request, we are pushing this ticket to our devs but probably we will find a solution to not display the fields in ATE that are not in a post but still unused meta will stay in the database. That's why Osama asked you to report this to ACF.

We will keep you posted about the status of this issue.

Thank you!

June 1, 2023 at 12:30 pm #13753757

michaelD-110

Hi Sumit,

Thank you for explaining it and I grateful that you are trying to find a workaround.

I understand that ACF should remove the unused meta but it doesn't look like they are planning to change this: hidden link

I've installed a few plugins and attempted to cleanup the unused meta, but it's unsuccessful. Some of our pages have hundreds of extra translations because we've used 'Yoast Duplicate Post' plugin to clone posts before we installed WPML. It's making ATE very difficult to use so please keep me updated if you find a solution.

Please keep this topic open.

Thanks,
Louis