Skip Navigation

[Resolved] Edit form has stopped working

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 0 replies, has 1 voice.

Last updated by JamesS2731 3 weeks, 4 days ago.

Assisted by: Minesh.

Author
Posts
#2786969

Tell us what you are trying to do? - Edit a custom post type 'Competitors'. The edit link seems to have stopped working and now just loads the competitor page, not the edit form.

The edit link is - [toolset-edit-post-link content_template_slug='edit-competitor-profile' target='self']Edit[/toolset-edit-post-link]

The edit content template is - edit-competitor-profile

And in that template is - [cred_form form='update-profile-form']

The post form is - update-profile-form

It is set to edit content and the post type is - Competitors.

I've tried disabling all plugins other than:

Elementor
Elementor Pro
Woocommerce
Toolset Access
Toolset Forms
Toolset Types
Toolset Views
Toolset Maps
Toolset Woocommerce Blocks

All plugins are running their latest versions and wp is 6.7.1

I can provide a temporary login.

Any thoughts or ideas most welcomed.

Kind regards
James

#2787056

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 edit form as well as admin 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.

#2787294

Minesh
Supporter

Languages: English (English )

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

Do I need to login as frontend user? if yes, can you please share frontend user access details as well as on what page I can see the edit form.

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

#2787296
Screenshot 2024-12-09 at 10.42.08.png
Screenshot 2024-12-09 at 10.41.50.png

Hi Minesh,

You can see the problem as an admin in the front end, you dont need a competitor login.

If you go to hidden link you'll see theres an edit button. If you click this, it used to bring up the edit form, now it just brings up the competitor page. You'll see that I added an extra edit button on this page too, but if you click that, it just reloads the page instead of displaying the edit form.

I provided admin access in the previous reply. I'll double check our dev site and see if thats showing the same issue (I havent checked that yet!)

Kind regards
James

#2787307

Hi Minesh,

I've just checked the staging site - hidden link and it has the same issue there.

I've created a login for you using the same details (un & pw) as the live site. You can test there if you'd prefer.

Kind regards
James

#2787309

Minesh
Supporter

Languages: English (English )

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

Can you please check now: hidden link

The issue is you are using Elementor and you designed to display single post template using Elementor and you also set the Toolset content template to display singe competitor.

With the following Toolset content template where you added the edit form:
=> hidden link

I've set the above content template not to display with any single post content template, so its a generic content template that will work as container.

now, within the content template I've wrapped the edit form with the conditional statement given under:

[wpv-conditional if="( '[wpv-search-term param='content-template-id']' eq '11792')"]  
[cred_form form='update-profile-form']
[/wpv-conditional]

And later, on your Elementor's single post content template, I've added the above Toolset content template shortcode as given under at top (you can move it wherever you want):
=> hidden link

[wpv-post-body view_template="edit-competitor-profile"]

Can you please confirm it works as expected now.

More info:
- https://toolset.com/documentation/programmer-reference/views/views-shortcodes/#wpv-conditional
- https://toolset.com/documentation/programmer-reference/views/views-shortcodes/#wpv-post-body

#2787319

Many thanks Minesh! Apologies, I should have checked that. It was such a long time ago that I first created it, I didn't think to amend that when we switched to elementor.

Much appreciated!