Skip Navigation

[Resolved] Edit form redirecting to home page and not saving changes on submission

This support ticket is created 4 years, 10 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 8 replies, has 2 voices.

Last updated by aaronW-4 4 years, 10 months ago.

Assisted by: Minesh.

Author
Posts
#1811309
Screen Shot 2020-10-14 at 9.23.12 AM.png

I am trying to add an edit form for my custom posts. I have created the edit form and added it to a content template. I created an author dashboard where I have added a button with the appropriate link that directs the author to the edit form. When I click this link, it takes me to the correct content template with the correct edit form, except there is some "post" code that appears at the top of the form (attached image). When I click the submit button on the edit form, it redirects me to the homepage (which is supposed to return me to the author dashboard), and it doesn't save my changes. I'm so close to having it done, but something is going wrong.

#1811347

Minesh
Supporter

Languages: English (English )

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

Hello. Thank you for contacting the Toolset support.

That is really strange.

I'm not sure what plugins and theme you are using. In order to minimize the cause of the issue:
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? If no:

I will require problem URL with admin access+frontend user access details (if required) to investigate the issue further.

*** 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.

#1811395

I did some more testing. Toggled the plugins and theme. While editing the content template, when I click to "view on the frontend", it works great. It updates the post I am viewing and redirects correctly. This issue only seems to happen after clicking the link to the content template from the author dashboard... In the author dashboard I have added a button within a view and used the following link:
[toolset-edit-post-link content_template_slug='edit-test' target='self'][/toolset-edit-post-link]

Does that link look correct? It links to the correct content template shows the correct post to edit, except for the "post method" code and issue.

#1811405

I am also noticing the url for the edit page is as follows:
hidden link">

If I remove "> manually then it shows correctly.

#1811955

Minesh
Supporter

Languages: English (English )

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

That is really strange.

Can you please share problem URL as well as access details that will help to review whats going on with your setup.

*** 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.

#1812515

Minesh
Supporter

Languages: English (English )

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

We do not encourage to add the shortcode to button's link attribute and that is why you see that the edit link is broken.

Can you please check - the last link I've added by adding the "Fields and Text" block and added the following line of code to the Fields and Text block:
=> hidden link

[toolset-edit-post-link content_template_slug='edit-test' target='self']Edit Crowd[/toolset-edit-post-link]

=> hidden link

You should format this link as per your requirement like button.

#1812845

That's perfect. The link works great. There is one more issue specifically on that page. For some reason the css I am applying to the View is not saving. I can add css for the View and update it to see it on the frontend, but as soon as I navigate away from editing the page and return to it, it reverts back to css I saved a couple of days ago... It won't save anything new. I tried adding the css to the Layouts CSS editor, but that css isn't effecting anything inside View.

#1813335

Minesh
Supporter

Languages: English (English )

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

That is another issue and I'll split the ticket with your new question.

We entertain only one question per ticket as this will help other users searching on the forum as well as help us to write correct problem resolution summery.

I kindly urge you to mark resolve this ticket and I will continue with the split ticket with your new question.

#1821667

My issue is resolved now. Thank you!