Skip Navigation

[Resolved] Cred_Delete_Post_Link Hanging

This thread is resolved. Here is a description of the problem and solution.

Problem:

I'm using the cred_delete_post_link to delete the item. It works except it hangs with the message "deleting..". If I refresh the browser everything is good, the post has been deleted. I expected the "deleting.." message to go away and the page to refresh.

Solution:

The client has fixed the problem by adding a CSS class to the link:
https://toolset.com/forums/topic/cred_delete_post_link-hanging/#post-1085781

Relevant Documentation:

This support ticket is created 6 years, 3 months 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.

Our next available supporter will start replying to tickets in about 0.87 hours from now. Thank you for your understanding.

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/Hong_Kong (GMT+08:00)

Tagged: 

This topic contains 2 replies, has 2 voices.

Last updated by KentS9937 6 years, 3 months ago.

Assisted by: Luo Yang.

Author
Posts
#1084811

I have a View defined which includes a Delete link after each item in the loop. I'm using the cred_delete_post_link to delete the item. It works except it hangs with the message "deleting..". If I refresh the browser everything is good, the post has been deleted. I expected the "deleting.." message to go away and the page to refresh.

Here's how the delete link is included in the loop item within the view.

[cred_delete_post_link action='trash' text=' / Delete' message_after='Form Deleted Successfully' message='Are you sure you want to delete this form?' message_show='1' class='cred-refresh-after-delete']

Thoughts?

#1085464

Hello,

The problem you mentioned above is abnormal, please try these:

1) In case it is a compatibility problem, please deactivate other plugins, and switch to wordpress default theme 2017, and test again

2) If the problem still persists, please provide database dump file(ZIP file) of your website, also point out the problem page URL and view URL, I need to test and debug it in my localhost, thanks
https://toolset.com/faq/provide-supporters-copy-site/

#1085781

I found the problem. I was puzzled as some delete links worked and others didn't. Upon further investigation I found the ones not working were missing class='cred-refresh-after-delete'. After including this class the "deleting.." message went away and all is good. It still seems like the message should have gone away without having to refresh the page, but that's not an issue for me.