[Closed] Error when using 2 times the same form in the page
This support ticket is created 2 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.
No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.
Hello,
I have created a Views to list some posts and have integrated a Cred form inside each result in order to be able to modify some parameters. I'm using a modal window in order to be able to make the modification inside the same page. Here is the code of the loop :
If I uncheck the "Submit this form without reloading the page (use AJAX)", then this is working but the page is not reloaded and the modification is not seenable. If I check it, then I'm getting the WordPress global error.
Thanks for helping.
No errors reported in the console. This is the new functionality of WordPress indicating the site has broken. This is only happening when the validation button of the Cred is clicked and when 2 lines are listed in the Views output (meaning 2 same Creds are also in place).
Regards
Pat
Can you please share problem URL where I can see more than two results with the 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.
Unfortunately, the site is into production with a high load.
As you can see in my first message, I have a Views that list postypes "Adhesion". For each result, in the Views loop, I have some info + a Cred form that opens in a modal window (the Cred is used to modify some custom fields of the "Adhesion" post). I want also to reload the page in order the modifications are visible after submitting the form, so I uncheck the "Submit the form with Ajax" button.
For info, I have used this kind of modal in different part of the site and it is working fine.
Coming back to this issue, if only 1 result is displayed by the Views, everything works fine. If more than 1 result are displayed, I'm getting a wordpress site broke error when I click on the validation button of the Cred form.
Last, if I check the "Submit form with Ajax" button, then no error and the Cred modifies the needed custom fields (but the page is not reloaded and modifications are not visible until I reload manually the page).
Any idea?
Regards
Pat
As far as I remember, we do have issue before when you add the form within the view with modal box and use ajax submit but I need to make sure that if it's the same issue or different one.
Do you able to offer staging site or I can create sandbox site and you can create a test example for me using the sandbox site that should help me to see the issue.
I'm trying to import in your sandbox site the Views that I have created in my site but cannot find the right way for that.
Can you explain how I could do it?
Regards
Pat
Can you try to install the module manager and then try to export the post types, custom fields, views etc..etc.. you created and then try to import it on sandbox site I shared. (you should also install module manager plugin on sandbox site as well).