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
- 12:00 – 14:00 12:00 – 14:00 12:00 – 14:00 12:00 – 14:00 12:00 – 14:00 -
- 17:00 – 21:00 17:00 – 21:00 17:00 – 21:00 17:00 – 21:00 17:00 – 21:00 -

Supporter timezone: Europe/Vienna (GMT+01:00)

Tagged: 

This topic contains 34 replies, has 4 voices.

Last updated by Bigul 1 year, 3 months ago.

Assisted by: Bigul.

Author Posts
September 6, 2023 at 8:44 am #14349511

Insignia

Hello, I've created a site with WPML + WP All Import, I use this to import "properties" from an XML api to the site, this works well, but sometimes the properties get duplicated a lot

I have configuration to always check a custom field "house_ref" to avoid duplication with WP All Import alone worked fine but with WPML sometimes I get duplications and sometimes no I can't seem to find the issue

As the site is in three languages I have 3 different imports for each language, the translations are saved correctly, the duplication only seem to happen on main language (catalan)

September 7, 2023 at 11:16 am #14358767

Nicolas V.
Supporter

Languages: English (English ) French (Français )

Timezone: America/Lima (GMT-05:00)

Hi,

Welcome to the WPML support forum. Thanks for contacting us.

We are currently handling a high amount of ticket and while waiting for one of my colleagues to help with this ticket, please allow me to walk you through some initial debugging steps. This will help speed up the support process.

- Did you follow this documentation?
https://wpml.org/documentation/related-projects/wpml-all-import-plugin-website-import-with-wpml/
- In particular the step 3

In Step 3, expand the Configure Advanced Settings section and disable the option to increase the speed of the import process. You can do this by unchecking the box next to Increase speed by disabling do_action calls in wp_insert_post during import.

Nico

September 7, 2023 at 12:36 pm #14359407

Insignia

Hello Nico,

Yes that option is disabled, and the import works as expected, I can't seem to find when the issue of the duplication happens but I have the same site in an staging server with and without WPML and this only happens on multilanguage, please let me know what info you need more

Thanks

September 8, 2023 at 11:32 am #14366309

Shekhar Bhandari
Supporter

Languages: English (English )

Timezone: Asia/Kathmandu (GMT+05:45)

Hello there,

If you disable all non-related WPML plugins and switch to one of the default themes, does the problem persist or not?

NOTE:
+ Make a backup (both files and database) for your site before updating/proceeding with anything (Always a good practice!).

Further, to debug this issue further, I would need to check your site settings once, for this I would need temporary access (wp-admin and ftp) to your site.

So could you please provide me with those details, You will find the needed fields for this below the comment area when you log in to leave your next reply.
hidden link

This info is private and available to you and WPML supporters only.
Read more about this: https://wpml.org/purchase/support-policy/privacy-and-security-when-providing-debug-information-for-support/

Note:
Backup your sites before providing the credentials or if possible provide credentials for the test site

Look forward to your reply.

Thanks

September 11, 2023 at 9:14 am #14374113

Shekhar Bhandari
Supporter

Languages: English (English )

Timezone: Asia/Kathmandu (GMT+05:45)

Hello there,

Can you provide feedback on the following?

If you disable all non-related WPML plugins and switch to one of the default themes, does the problem persist or not?

NOTE:
+ Make a backup (both files and database) for your site before updating/proceeding with anything (Always a good practice!).

Also, can you provide me the import IDs for the default language and translations so I can see what went wrong?

Look forward to your reply.

Thanks

September 12, 2023 at 9:44 am #14382263

Insignia

Hello Shekar,

Sorry I can't switch to a default theme as the PostType and ACF field are registered on the current one, we developed this so If you think the theme may have any issue I will be happy to help, but I don't think so, also the theme has an wpml-config.xml for the posts and custom fields

Related to plugins I left all ACF plugins enabled as are needed for the import process to work

The main import ID is 1

Thanks!

September 12, 2023 at 2:24 pm #14384565

Bigul
Supporter

Languages: English (English )

Timezone: Europe/Vienna (GMT+01:00)

Hello,

Thank you for the updates. Shekhar is off today. So I am taking care of this ticket and hope it will be okay for you.

Please check the attached image. Hope you are mentioning these Duplicated posts.

Just to make sure, is it only happening with houses 2863 or 2861? How many duplicate posts do you have now?

--
Thanks!

Bigul

2023-09-12_19-51-29.png
September 12, 2023 at 2:29 pm #14384613

Insignia

Hello Bigul,

Yes there are many of them, but I can't seem to find why this are the ones getting duplicated, the number visible on the second column is the reference I get from the customer CRM and that is used as a ID for the imports, you'll see than duplicated posts have no translations while the good ones are ok

September 12, 2023 at 4:59 pm #14385553

Bigul
Supporter

Languages: English (English )

Timezone: Europe/Vienna (GMT+01:00)

Hello,

Thank you for the updates. This requires further checking. So a couple of requests.

1) Please share the files you are using for importing the Posts. You can share it via Google Drive or Dropbox.

2) Allow us to make a duplicator copy of your site using the Duplicator plugin(https://wordpress.org/plugins/duplicator/) for debugging the issue on our local server. So we can troubleshoot the bug without affecting your sites.

--
Thanks!

Bigul

September 13, 2023 at 7:24 am #14387307

Insignia

Hello Bigul,

Sure, go ahead to create the copy of the site, please be aware we're using crontab to automate the imports so maybe you'll need to copy that to to have the same current configuration

In the current theme if you open "inc/mobilia.php" you'll see the path to the URL we're calling for the imports, I prefer not to make it public

September 13, 2023 at 4:34 pm #14391701

Bigul
Supporter

Languages: English (English )

Timezone: Europe/Vienna (GMT+01:00)

Hello,

Thank you for the permission. It would be great if you could share more details about the following. Because of the automation. How often it will be triggered?

Please be aware we're using crontab to automate the imports so maybe you'll need to copy that to to have the same current configuration

Also, please upgrade to the latest version of plugins including WP All Import Pro after a full site backup. We would like to make sure the issue exists with the latest version of plugins or not.

--
Thanks!

Bigul

September 14, 2023 at 7:30 am #14393977

Insignia

Hello Bigul,

Sure, plugin updated

Regarding import, currently is only triggered once a day, but one for each language so:

Catalan update (the main one) is triggered at 2AM
Spanish update (only update needed translation fields) at 3AM
English update (only update needed translation fields) at 4AM

My customer wants the import to be run twice a day but until we find out whats the issue with the duplication I don't want to try it

September 14, 2023 at 10:43 am #14395961

Bigul
Supporter

Languages: English (English )

Timezone: Europe/Vienna (GMT+01:00)

Hello,

Thank you for the updates. What is the exact reason behind the frequent import of posts, on most of the sites it will be a single-time task. And when was the last import process?

Just to make sure, have you checked the import in the default language when WPML plugins are inactive?

--
Thanks!

Bigul

September 14, 2023 at 10:46 am #14395997

Insignia

Hello Bigul,

This is a real state website and the properties listed on it come from the CRM of the company uses, thats why they need to have it sync

Also yes, I have another copy of the website without WPML and is working fine, I can share it with you If you want

September 14, 2023 at 5:03 pm #14398697

Bigul
Supporter

Languages: English (English )

Timezone: Europe/Vienna (GMT+01:00)

Hello,

Thank you for the details. I will consult it with our team for an expert opinion and get back to you soon. Please wait.

--
Thanks!

Bigul

The topic ‘[Closed] Problems with duplicate posts with WP All Import’ is closed to new replies.