Skip Navigation

[Assigned] cannot delete relationship. critical error: Toolset_Element_Exception_Element_Do

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 1 voice.

Last updated by Rita 1 day, 18 hours ago.

Assisted by: Minesh.

Author
Posts
#2853172
Screenshot 2026-03-23 at 07.57.53.png

Hi there

This has suddenly started occurring. Presumably with a recent update?

I have two posts called Resource and Profile with an infinite relationship (many different resources can belong to many different profiles).

On either parent post I have a view displaying the related intermediary post.

Inside that view loop I have a link to delete the relationship:

[cred-delete-post action='delete' onsuccess='self']DELETE LABEL HERE[/cred-delete-post]

When a user, any user including admin, clicks the link to delete the relationship the current parent post crashes with a critical error - see screenshot attached.

The other parent post in the relationship displays as normal.

The relationship post is deleted.

Hoping you know what this is and can help me resolve it. I have never seen it happen in 13yrs using Toolset...

Thanks in advance!

Rita

#2853180

Minesh
Supporter

Languages: English (English )

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

Hello. Thank you for contacting the Toolset support.

Can you please share problem URL where I can see the delete relationship link you added.

Also, please add 10-15 dummy posts that I can use to test the delete relationship funtion.

#2853184
Screenshot 2026-03-23 at 09.17.02.png

Hi Minesh

Thanks for coming back so quickly. This feels urgent.

I have created 10 dummy 'resource' posts for you. I have tagged a profile (my profile) to each one so you don't have to do that unless you want to. In my tests the author and/or user role didn't matter so here we have 10 x Resource posts created by Toolset Support (administrator) with an intermediary post linking the Profile post created by Rita Horne (administrator) to each one. You will see the related profile displayed at the bottom of the body text and author with the delete link "Untag Rita M Horne":
hidden link
hidden link
hidden link
hidden link
hidden link
hidden link
hidden link
hidden link
hidden link
hidden link

The Resource posts are listed in the front-end 'Library' directory or in the Dashboard under Resources:
hidden link
hidden link

I have also set the 'Profile-Resource' intermediary post to be listed in the dashboard menu so you can easily access it:
hidden link

The content template for the 'resource' post where the view to display the relationship is placed. Search for 'profile-parents-for-resource-collaborated' to find it:
hidden link

The above mentioned view called 'profile-parents-for-resource-collaborated' where the delete shortcode is placed:
hidden link

Standing by!

Rita

#2853200

Minesh
Supporter

Languages: English (English )

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

I can see the error when i try to delete the post but this is strange. No other user reported same issue recently or before.

- Have you changed anything with the post relationship?
- your goal is to disconnect the intermediary post - correct?

It seems the site you shared is production site and I can not troubleshoot on that. I need a test site that should be 1:1 copy of your current site and then I will try to investigate this further.

#2853232

Hi Minesh
Yes its very odd. In 13yrs building with Toolset I have never seen it either.
It feels like the site thinks there is something in the database that doesn't exist.
I haven't changed anything around post relationships and have this same setup on other sites.
Will create a duplicate site you can test with.
Coming back to you.
Rita

#2853413

Hi Minesh
I have created a duplicate site for you to test.
Please provide a private reply to send you the info?
Rita