Skip Navigation

[Resuelto] CRED forms seem to reserve the same post ID when opened at the same time

This support ticket is created hace 6 años, 7 meses. 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.

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
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9: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/Hong_Kong (GMT+08:00)

Este tema contiene 7 respuestas, tiene 2 mensajes.

Última actualización por Luo Yang hace 6 años, 7 meses.

Asistido por: Luo Yang.

Autor
Mensajes
#744569

Hi everybody,

On one of the sites, I'm using the CRED forms to add custom post translations (using Polylang plugin, with a number of custom fields and parent-child relationships). In my work flow, I open a few links at once: they provide the forms to submit the post translations. Everything worked fine before: I used to submit a form -> it used to create a translation post with necessary data.

But since I updated just now, the flow has been broken: I opened a few tabs with forms, submited each of them, but all I could see is the last post added.

After an experiment I found out that every new submitted form does not create a new post, but modifies the one with the ID that was created by the first form opened. I see the only reason for that: all the opened forms reseve the same post ID for submittion. When I open a new form after submitting the previous one, it works fine.

I understand that my flow is not normal, but what if a few users open the form at the same time? One of them is going to lose the submitted data.

Please advise.

Thanks.

#746382

Hello,

You are right: all the opened forms for creating post will reserve the post ID for submittion, but it is not the same Post ID, each user will reserve different post ID, so there isn't the problem you mentioned above:
if a few users open the form at the same time, One of them is going to lose the submitted data.

#746744

Hi Luo,

But if one user opens the forms at the same time, it's the same ID, isn't it? It's important for me, because if it's so, it totally breaks my flow, and I would be relieved knowing there are good reasons for that.

Did it change in the last release? If yes, why?

On the other hand, if you say no, it is not, it would mean there is a problem on my site and I would like you to look into it.

Thanks.

#746864

Please describe detail steps to duplicate the same problem:

one user opens the forms at the same time

How can the same user opens the form in the same time, and submits those forms in the same time?

I need to duplicate the same problem in my localhost, thanks

#746867

I have tested it in my localhost, with the CRED form settings:
1) CRED form for creating post
2) with below CRED form settings:
- After visitors submit this form: Keep displaying this form
- enable option "AJAX submission"
3) Create a page, display above CRED form multiple times

4) Test above page in front-end, submit the CRED forms one by one,

I can get only one post post submitted by those CRED form, can you confirm it is the similar problem you mentioned above?

If it is, I can duplicate the same problem, and will escalate this thread to our 2nd tier supporters.

#746959

And I have tried the latest beta version of CRED (Toolset Form) plugin 2.0-rc, there isn't similar problem, you can download it here:
https://toolset.com/account/downloads/
Choose channel: Beta

Can you confirm it?

#747216

Thank you for looking into it. Yes, it sounds like the same problem.

Just one question before I try the new beta version: if I update the CRED to the latest beta version, will it work ok with the current versions of other addons? I remember you introduced some changes in the relationships for the new release, and my site very much depends on them. I just don't want to be forced to rebuild the relationship logic right now because of that.

#747288

Yes, you are right, there might be some issues if use the beta version of plugin in a live production website, and it might conduct compatibility issues with other stable version plugins.

You can try this:
1) Backup your database,
2) Test the beta version of CRED plugin, confirm it works or not inyour website
3) Restore your website database and CRED plugin to stable version.

If it works, you can wait for the future stable version of CRED plugin.