Ana Posted March 7 Posted March 7 I had about 300 fields on a template and i was adding on more when after saving they all disappeared i have to re add all again. There was no error message. Has anyone had to deal with this and how was solved? Thanks
zoeck Posted March 7 Posted March 7 Have a look at the log file of your web server to see if an error message appears. There are also log files from Processwire in this directory: \site\assets\logs It may be a problem with the PHP setting max_input_vars (that the maximum number has been exceeded)
Ana Posted March 7 Author Posted March 7 There are no errors in this directory: \site\assets\logs and my max_input_vars is currently 3000. I will increase and see if that helps. Thanks
zoeck Posted March 7 Posted March 7 And in the log files from the web server? Are there any entries there?
Ana Posted March 7 Author Posted March 7 unfortunately the increase of my max_input_vars did not help the fields have disappeared again
elabx Posted March 7 Posted March 7 @adrian this looks oddly similar to what happened with the repeater matrix
adrian Posted March 7 Posted March 7 @elabx - yeah, maybe - I think in both cases it would happen if the fieldgroup_fields table was incorrectly updated. @ryan??
Ana Posted March 10 Author Posted March 10 (edited) Ok i have successfully saved the template with about 420 fields. Now when i try to populate the fields in the individual pages. I get the error " InputfieldForm: Max number of iterations reached for processing field dependencies - ProcessPageEdit." Any suggestions on how to fix this? Additional information is 390 fields of the 420 fields in the template use field dependecies could that be a problem? Edited March 10 by Aby
dynweb Posted March 10 Posted March 10 https://github.com/processwire/processwire/blob/4725ece5f86374a8de73d132e54b0ac4c9ae1f09/wire/modules/Inputfield/InputfieldForm.module#L274 There seems to be an upper limit of 255 dependencies, probably for performance reasons.
Ana Posted March 10 Author Posted March 10 Thanks.. when i began deleting the dependencies the was no error
Ana Posted March 19 Author Posted March 19 The problem has occurred again after 2 weeks. I tried to save some changes and almost all my fields on the template have disappeared again. I need help please.
wbmnfktr Posted March 19 Posted March 19 Is there a chance you are using RockMigrations and somehow triggered an older migration that removed fields from that template? Happened to me yesterday and took me a while to find. And to make it clear: it's intended behaviour - see screenshot. The minus tells RockMigrations to only have listed fields in that template. Without the minus I could add fields via backend and run migrations without removing manually added fields.
Ana Posted March 21 Author Posted March 21 No i do not use RockMigrations. I do not know whether the number of pages using the template and the number of fields on the template can cause this. 1
Jim Bailie Posted March 21 Posted March 21 I don't have the expertise in PW that some here have, so I would just ask in a general sense, isn't 480 fields pushing it a bit? At that point, aren't you better using the most excellent ProFields module or your own database tables? Just curious... 3
Ana Posted March 25 Author Posted March 25 Ok i have to discuss ProFields since it involves some cost but about the database tables can you give me some more information? I have no idea what that is
elabx Posted May 1 Posted May 1 There is a discussion going on here that could involve what's happening to you (and some of us!): https://github.com/processwire/processwire-issues/issues/2061
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now