Skip Navigation

[Resolved] disconnect error

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
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9: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/Karachi (GMT+05:00)

This topic contains 9 replies, has 3 voices.

Last updated by Waqar 4 years, 1 month ago.

Assisted by: Waqar.

Author
Posts
#1835853

I want to disconnect relationships (one-to-many).
I get an error message every time:
"There has been an error, please try again later."

Any idea?

#1836287

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

If you are seeing a generic message like that on the post edit screen when trying to disconnect posts, that reflects the fact that the ajax request to the server to delete the connection failed, but didn't provide details of why.

There is likely to be more information available in your PHP debug log, can you please check that?

If you haven't already, turn on the debug log by editing your wp-config.php file and change the line with WP_DEBUG like so:

define('WP_DEBUG', true);
define('WP_DEBUG_LOG', true);
define('WP_DEBUG_DISPLAY', false);
define('WP_DISABLE_FATAL_ERROR_HANDLER',true);

That will create a debug.log file in your /wp-content/ directory which you can examine in any text editor.

Try to disconnect the posts again and then inspect the log.

Please share what you find.

Also, let me ask for credentials to your site, it's likely we'll need to take a look or possibly even take a copy for testing.

I will mark your next reply as private to get log-in credentials from you—you may want to create a temporary admin user for me to use that you can later delete. And be sure to have a current backup of your site.

Can you also confirm in which relationship you are trying to disconnect posts, from which post edit screen?

#1836477
#1836749

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

Sorry, the credentials you provided didn't work, I couldn't log in.

Could you check and edit your earlier private reply and change the details if needed, thanks.

#1836849

Sorry!
I change the details...

#1837819

Thank you for sharing the admin access.

I can see the issue with the relationship disconnect link on your website, but couldn't reproduce this on my test website.

The duplicator plugin is already installed on your website. Do we have your permission to download a clone/snapshot of the website, to troubleshoot this on our own server?

#1837887

Yes. I'll give you permission...

#1840017

Thank you for your permission and I managed to deploy your website's clone on my server.

During troubleshooting, I noticed that the IDs stored in the "toolset_associations" table are different than the ones Toolset expects to delete the associations.

Have you performed any bulk import or migration of posts on the website or applied any manual changes to the database? If yes, can you share some details about it?

#1840303

I used only Ultimate CSV Importer plugin.
hidden link

All post imported with this plugin.

#1842119

Thank you for confirming this.

From the databases, it seems that parent/child posts were changed/re-imported after the post relationships had been imported.

At the moment, there not too many posts involved and I'll recommend to first permenantly delete all existing posts in the "Filmek" and "Események" post types and the "Filmek Események" relationship.

After that you can import these posts and their relationships again, using the instructions from this guide:
https://toolset.com/course-lesson/how-to-import-posts-from-csv-files-and-maintain-relationships-when-using-the-csv-importer-plugin/