Inicio › Toolset Professional Support › [Resuelto] Error Message Submitting Form (2 instances of same form on one page via View)
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.
Hoy no hay técnicos de soporte disponibles en el foro Juego de herramientas. Siéntase libre de enviar sus tiques y les daremos trámite tan pronto como estemos disponibles en línea. Gracias por su comprensión.
Sun | Mon | Tue | Wed | Thu | Fri | Sat |
---|---|---|---|---|---|---|
8:00 – 12:00 | 8:00 – 12:00 | 8:00 – 12:00 | 8:00 – 12:00 | 8:00 – 12:00 | - | - |
13:00 – 17:00 | 13:00 – 17:00 | 13:00 – 17:00 | 13:00 – 17:00 | 13:00 – 17:00 | - | - |
Supporter timezone: America/New_York (GMT-04:00)
Documentación relacionada:
Este tema contiene 4 respuestas, tiene 3 mensajes.
Última actualización por aaronM-9 hace 6 años, 5 meses.
Asistido por: Christian Cox.
I have a view that outputs several message threads belonging to a parent post type. At the end of each thread is a form to reply, so the form appears more than once on the same page (but never nested inside of each other). In the screenshot you can see the two forms (hidden at first and then visible by clicking the "Reply" link). When troubleshooting the page, everything's been working great until I tried to put in a reply using the second instance of the form. I get this error message:
PHP Warning: array_key_exists() expects parameter 2 to be array, boolean given in /.../plugins/wp-views/embedded/inc/wpv-shortcodes.php on line 3229
Does this error message tell you anything that could be useful to me? Can you tell me if it's possible to put two instances of the same form inside of one page so I can rule that out as a possibility causing the issue? Thanks.
- Aaron
PS - That error message seems to be coming up pretty regularly so I'm guessing low chance it's related.
- Aaron
Hello. Thank you for contacting the Toolset support.
Well - Yes, I think you are allowed to add same form multiple times on single page. I see the warning comes from views plugin but I need to reproduce this issue on my test install and for that I need a clear step by step instruction how I can reproduce this issue on my clean install.
Could you please send me clear step information to reproduce the issue as well as what form fields you are using and where you placed the form or if you think its better to share access details than I need problem URL and access details to your site.
*** 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 would additionally need your permission to de- and re-activate Plugins and the Theme, and to change configurations on the site. This is also a reason the backup is really important. If you agree to this, please use the form fields I have enabled below to provide temporary access details (wp-admin and FTP).
I have set the next reply to private which means only you and I have access to it.
Hi, Minesh asked me to check in here and it does indeed look like the main issue here is saving the relationship. Let's try to resolve this in the other ticket. We can confirm the code sample works for multiple forms.
Thanks.