Skip Navigation

[Resolved] Connecting post shows many duplicates with many-to-many relationship

This support ticket is created 4 years, 1 month ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Kolkata (GMT+05:30)

This topic contains 5 replies, has 2 voices.

Last updated by Minesh 4 years, 1 month ago.

Assisted by: Minesh.

Author
Posts
#1879751

Whenever a connect a post it shows many duplicates.

Here is a video of the issue: hidden link

#1879991

Minesh
Supporter

Languages: English (English )

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

Hello. Thank you for contacting the Toolset support.

It seems you have junk data available with your database may be its due to import you made.

What I suggest, can you please try with clean install where you install only Toolset plugins and build your post types and relationship and try to connect the posts.

I already run a test with my test sing with Many to Many post relationship between post types Exhibitions and Artists and I could not see the issue. Please check the following video:
hidden link

#1880137

I think you're right, we have the same setup on our prod site (pdc.org) without an issue.

But on dev.pdc.org we tried using a plugin, JSON Content Importer, to import Test Hazard Product posts. It's supposed to delete old Test Hazard Product posts whenever a new import is completed, but it seems there may be orphaned data causing Toolset to think the old posts still exist?

I'm not sure how to troubleshoot this, do you know what may be causing Toolset to think there are extra posts being connected?
Thanks so much for your help!

I can get you backend access to the site if you'd like.

#1880139

Minesh
Supporter

Languages: English (English )

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

I do not have much experience with JSON Content Importer plugin.

You may try to go to debug information screen:
=> hidden link

And try to run "Fix orphaned intermediary post types" and "Delete leftover intermediary posts".

If that does not help, I suggest you try with a brand new install as I suggested before.

#1883217

I don't doubt that the issue is due to the JCI plugin, and I wouldn't expect you to try to fix someone else's plugin.

But do you know where in the database I should look for duplicate content that may be making Toolset think there are more posts than there are?

I will then pass that information on to the JCI plugin developer to look into further, but they said they are not sure what is causing toolset to think there are more posts attached to the page than there should be.

#1883807

Minesh
Supporter

Languages: English (English )

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

*** Please make a FULL BACKUP of your database before you perform any deletion from your database.***

Toolset store all connection information within "wp_toolset_associations" table where we store the connection information with relationship ID and associated parent/child IDs including intermediary ID.

If you have many relationships created, you should locate your relationship ID from the table "wp_toolset_relationships" and find all connection that belongs to your specific relationship ID from the "wp_toolset_associations" and then try to delete the found records.