-
-
Notifications
You must be signed in to change notification settings - Fork 86
Description
Describe the bug
Took me a while to figure this one out - but on my local and staging environments, importing a form via the JSON Import was working flawlessly, but when I went to production, it kept giving me errors saying the requested URL didn't exist. One out of maybe 30 tries got me through and I was finally able to import the form.
Anyway, I learned through servd support that temp uploads in load balanced environments can be wonky, so they advised I made a filesystem and pointed craft to this for temp asset uploads, however this weirdly didn't seem to solve the problem either. After some investigation, it seems the JSON files get put under runtime/temp, instead of the configurable asset temp directory, so I've been unable to find a solution to get imports working.
Thanks!
Steps to reproduce
- Use a Craft 5.8.21 instance with Formie 3.1.6
- Make a form on your local enviroment
- Set up a load balanced environment (on servd.host ideally, haven't tested elsewhere)
- Export the form from local as JSON
- Import the form on the load balanced environment
Form settings
- Multi-page form: Yes
- Submission Method: Ajax
- Client-side Validation: No
- Custom Form Templates: Yes
Craft CMS version
5.8.21
Plugin version
3.1.6
Multi-site?
Yes
Additional context
We tested making the servd staging environment load balanced, and this reproduced the issue, where previously it only happened on production. I think making the temp upload location configurable or defaulting to the asset temp location would work well.