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: Bug
This topic contains 34 replies, has 4 voices.
Last updated by Bigul 1 year, 3 months ago.
Assisted by: Bigul.
Author | Posts |
---|---|
September 15, 2023 at 2:20 pm #14403777 | |
Bigul Supporter
Languages: English (English ) Timezone: Europe/Vienna (GMT+01:00) |
Hello, We had a quick check of your custom code. The "inc/mobilia.php" file only contains the URL of the import file. So in which file you are calling the functions/hooks for the importing tasks? It will help us more in tracking this issue. I am enabling the private option for the next reply. It would be great if you could share the files for customized import or a screencast of it. -- Bigul |
September 15, 2023 at 3:03 pm #14404095 | |
Insignia |
Hello Bigul, The imports are managed with WPAllImport plugin, to automate it I've created this configuration on the crontab If you check the import ID 1, you'll see all the settings, this is the main one which import all the content, 7 and 8 only import the needed translation fields as title & description # Main import each day at 2AM What this does is run the imports at 2, 3 and 4 AM Hope this helps! |
September 17, 2023 at 3:10 pm #14408455 | |
Bigul Supporter
Languages: English (English ) Timezone: Europe/Vienna (GMT+01:00) |
Hello, Thank you for the details. But the Duplicator copy is not working in our local copy because of the following error related to the theme(Composer). Fatal error: Composer detected issues in your platform: Your Composer dependencies require a PHP version ">= 8.1.0". You are running 8.0.26. in *****\composer\platform_check.php on line 24 Warning: Trying to access array offset on the value of type bool in ****\class-wp-recovery-mode-email-service.php on line 367 Warning: Trying to access array offset on the value of type bool in ******\class-wp-recovery-mode-email-service.php on line 368 So one request. It would be great if you could create a staging site for our testing. It will help us to troubleshoot the issue without affecting your site. Thank you for your kind understanding. I am enabling the private option for the next reply. -- Bigul |
September 19, 2023 at 2:47 pm #14420553 | |
Insignia |
Hello Bigul, The message is the composer dependence, you'll need to run this on a php 8.1 server, I think yours is 8.0 Anyway the site I shared is already a staging site so fill free to edit whatever you need Thanks! |
September 20, 2023 at 7:46 am #14427129 | |
Bigul Supporter
Languages: English (English ) Timezone: Europe/Vienna (GMT+01:00) |
Hello, Thank you for the updates and permission. I have already tested it in my local copy with PHP 8.1.13 & 8.2. But still, those warnings shows & the imported failed. That is why I requested the staging site. I will do more testing on this and get back to you soon. Please wait. -- Bigul |
September 21, 2023 at 5:13 pm #14441311 | |
Bigul Supporter
Languages: English (English ) Timezone: Europe/Vienna (GMT+01:00) |
Hello, We are continuing the debugging on the staging site. As a part of testing, I have trashed all the properties posts and imported the posts manually. Now the posts are not showing any Duplication in Catalan. But an entry with value 2863 is missing. Any specific reason for this? Just to make sure, is the cron job for import disabled in the staging site now? Because while deleting posts it create 2-3 new entries. Also, do you have any code customization for import tasks other than *inc/mobilia.php* & the cron job calls(https://wpml.org/forums/topic/problems-with-duplicate-posts-with-wp-all-import/page/2/#post-14404095)? -- Bigul |
September 25, 2023 at 7:53 am #14455243 | |
Insignia |
Hello Bigul, 2863 will not appear more as the property is not available now, but please check the properties list and you'll see some duplicates now The cron job is enabled everyday at 2AM (Spanish time) if you want me to disable it I can do it with no problem The import seems to work well runing manually but at some point it starts the duplication I've checked multiple times to be sure the imports aren't overlaped, as this could cause duplication (asked to WP All Import Support team) There is no other configuration than the one I told you, all other settings are on the Import Plugin Let me know what info do you need more Thanks! |
September 26, 2023 at 8:54 am #14464745 | |
Bigul Supporter
Languages: English (English ) Timezone: Europe/Vienna (GMT+01:00) |
Hello, Thank you for the updates. I went through the current properties' posts closely. There are duplicated posts in all three languages. Please check the attached images. Also, the number of posts is high in English & Spanish(70+). Is it expected or also part of this issue? Please confirm. -- Bigul |
September 28, 2023 at 8:20 am #14479643 | |
Insignia |
Yes, thats the main issue I have, seems when you run the import once it works well, but once you have the cron running the duplication starts |
September 29, 2023 at 7:11 am #14485917 | |
Bigul Supporter
Languages: English (English ) Timezone: Europe/Vienna (GMT+01:00) |
Hello, Thank you for the confirmation. Is it possible for you to create one more staging site for our testing? We would like to test it without WPML also. It will help a lot in debugging. I am enabling the private option for the next reply. Thank you for your kind understanding. -- Bigul |
October 6, 2023 at 5:12 pm #14530491 | |
Bigul Supporter
Languages: English (English ) Timezone: Europe/Vienna (GMT+01:00) |
Hello, Thank you very much for the new staging site. We will test it further and get back to you as soon as possible. Please wait. -- Bigul |
October 10, 2023 at 4:32 pm #14552573 | |
Bigul Supporter
Languages: English (English ) Timezone: Europe/Vienna (GMT+01:00) |
Hello, I went through a few more rounds of testing in both staging sites. Now consulting with our team for the expert opinion. We will get back to you as soon as possible. Please wait. -- Bigul |
October 12, 2023 at 2:04 pm #14566729 | |
Bigul Supporter
Languages: English (English ) Timezone: Europe/Vienna (GMT+01:00) |
Hello, The ticket is escalated to our second-tier team for further debugging. We will get back to you as early as possible. Please wait. -- Bigul |
October 19, 2023 at 8:48 am #14612607 | |
Bigul Supporter
Languages: English (English ) Timezone: Europe/Vienna (GMT+01:00) |
Hello, We had a few rounds of debugging and have a doubt. You are using the custom field Referencia to detect the duplicate post. However, in the following file, there are two properties with the same title & different Referencia values, and 2nd time is duplicated. hidden link So what is the purpose of having two properties with the same title and different Referencia values? One is 2835 and another one is 2841. Please check the attached images for more details and let us know your feedback. -- Bigul |
October 19, 2023 at 3:34 pm #14617455 | |
Insignia |
Hello Bigul, thanks for looking at this, yes some of the rentals may have the same exact name, in some cases, when they build a new building, each house may be have all the same info, but different reference, as the houses are exact the same, but the "Referencia" field is the unique Do not worry if you see same title posts, the only important thing is the "Referencia" field to be unique Thanks! |
The topic ‘[Closed] Problems with duplicate posts with WP All Import’ is closed to new replies.