Skip Navigation

[Resolved] Get a Security Check when trying to delete a custom post

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

Problem:
Get a Security Check when trying to delete a custom post

Solution:
User did not added the delete post link correctly.

You can find the proposed solution in this case with the following reply:
=> https://toolset.com/forums/topic/get-a-security-check-when-trying-to-delete-a-custom-post/#post-1347775

Relevant Documentation:
=> https://toolset.com/documentation/user-guides/cred-shortcodes/#cred_delete_post_link

This support ticket is created 5 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.

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 7 replies, has 2 voices.

Last updated by FelipeP5703 5 years, 3 months ago.

Assisted by: Minesh.

Author
Posts
#1346469

I am trying to: Trying to delete a custom post and I get a Security check - hidden link

I followed the instructions here: https://toolset.com/forums/topic/custom-post-delete-link-do-not-delete-post-returns-security-check/

And it did not work.

I also have check Access to make sure the owner of the post can edit and delete his/her own custom posts, and they can.

Not sure what to do from here. Please help.

#1346991

Minesh
Supporter

Languages: English (English )

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

Hello. Thank you for contacting the Toolset support.

First of all - in order to minimize the cause of the issue and rule out the possible conflict:
Could you please try to resolve your issue by deactivating all third-party plugins as well as the default theme to check for any possible conflicts with any of the plugins or themes?

Do you see any difference?

#1347193

Minesh, that's what I did in the video. I deactivated all plugins except Toolset and changed to the default theme 2019.

Same error

#1347233

Minesh
Supporter

Languages: English (English )

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

Thats really strange. Can I check where exactly I can see the issue and I will review your setup and then will try to reproduce the issue on my local test install and if issue is confirmed - I will escalate it to our Devs.

I need problem URL and access details.

*** Please make a FULL BACKUP of your database and website.***
I would also eventually need to request temporary access (WP-Admin and FTP) to your site. Preferably to a test site where the problem has been replicated if possible in order to be of better help and check if some configurations might need to be changed.

I have set the next reply to private which means only you and I have access to it.

#1347775

Minesh
Supporter

Languages: English (English )

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

I checked on your install and I found that you've added the Delete link wrong way as given under:

 <a class="dropdown-item" href="[cred_delete_post_link action='trash' text='Deletar' message_after='Anúncio deletado!' message='Tem certeza que deseja deletar? Não poderá recuperar o perfil e terá que criar um novo!' message_show='1' class='cred-refresh-after-delete']">Deletar</a>

You do not need to wrap the delete link with anchor tag as delete post link will automatically generate the anchor tag.

I've now modified and adjusted the delete link as given under:

[cred_delete_post_link action='trash' text='Deletar' message_after='Anúncio deletado!' message='Tem certeza que deseja deletar? Não poderá recuperar o perfil e terá que criar um novo!' message_show='1' class='cred-refresh-after-delete dropdown-item']

I can see - its working perfectly fine. Can you please confirm.

#1348153

Thank you Minesh. I just thought it needed as a Bootstrap 4 dropdown item. Is there a way to add Bootstrap Modal for the message instead of the current delete message?

#1348605

Minesh
Supporter

Languages: English (English )

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

No - unfortunately, there is no such way to change the popup as its automatically generated by Delete post link.

#1349061

Minesh, you are awesome! My issue is resolved now. Thank you!