Sterc / FormIt

A dynamic form processing Snippet for MODX Revolution
https://docs.modx.com/current/en/extras/formit
33 stars 58 forks source link

FormitRetriever 2.2.6 not working in other contexts #53

Closed MacConin closed 8 years ago

MacConin commented 9 years ago

Using FormitRetriever in the context 'web' is ok. Using it within an other context fails. (Here a form in context xy contains to pages/resources). Both resources are in that context.) sessions_enabled=1 for both contexts (web and xy). The form works in web, moving it to the xy context stops the FormitRetriever retrieving data

joeke commented 8 years ago

Hi @MacConin I've been testing this with 2.2.8 in a multicontext environment, but can't seem to reproduce this issue. I have a feeling that it has something todo with your system- and context setting for the sessions. Could you specify your 'Sessions and Cookies' system- and context settings?

MacConin commented 8 years ago

can't remeber if that still persists. I'd prefer a 'close' due to mental memory gaps ... ;) groetjes

joeke commented 8 years ago

Alrighty. Closing issue...

hugopeek commented 4 years ago

Well, I just ran into the same issue @joeke.. It seems both the form and the page with FormItRetriever need to be in the web context. Otherwise, no data (double checked this by adding &redirectToOnNotFound, which indeed redirects in all contexts except web).

My Sessions and Cookies settings seem to be the MODX defaults: image

hugopeek commented 4 years ago

Hmm no scratch that. I overlooked a few mistakes which led me to believe it was only working in the web context. It works in any context, as long as the form is forwarded within that same context.

So the only situation where it doesn't work, is when FormItRetriever is in a different context. I guess that has something to do with the session not being fowarded to that context. But yeah, don't think that's still within the scope of the FormIt package.