Aby Posted March 7 Share 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 Link to comment Share on other sites More sharing options...
zoeck Posted March 7 Share 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) Link to comment Share on other sites More sharing options...
Aby Posted March 7 Author Share 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 Link to comment Share on other sites More sharing options...
zoeck Posted March 7 Share Posted March 7 And in the log files from the web server? Are there any entries there? Link to comment Share on other sites More sharing options...
Aby Posted March 7 Author Share Posted March 7 No there are no errors Link to comment Share on other sites More sharing options...
Aby Posted March 7 Author Share Posted March 7 unfortunately the increase of my max_input_vars did not help the fields have disappeared again Link to comment Share on other sites More sharing options...
elabx Posted March 7 Share Posted March 7 @adrian this looks oddly similar to what happened with the repeater matrix Link to comment Share on other sites More sharing options...
adrian Posted March 7 Share Posted March 7 @elabx - yeah, maybe - I think in both cases it would happen if the fieldgroup_fields table was incorrectly updated. @ryan?? Link to comment Share on other sites More sharing options...
Aby Posted March 10 Author Share Posted March 10 Ok so how do i avoid this from happening again? Link to comment Share on other sites More sharing options...
Aby Posted March 10 Author Share 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 Link to comment Share on other sites More sharing options...
dynweb Posted March 10 Share 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. Link to comment Share on other sites More sharing options...
Aby Posted March 10 Author Share Posted March 10 Thanks.. when i began deleting the dependencies the was no error Link to comment Share on other sites More sharing options...
Aby Posted Wednesday at 10:06 AM Author Share Posted Wednesday at 10:06 AM 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. Link to comment Share on other sites More sharing options...
wbmnfktr Posted Wednesday at 08:15 PM Share Posted Wednesday at 08:15 PM 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. Link to comment Share on other sites More sharing options...
Aby Posted yesterday at 12:29 PM Author Share Posted yesterday at 12:29 PM 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 Link to comment Share on other sites More sharing options...
Jim Bailie Posted 19 hours ago Share Posted 19 hours ago 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 Link to comment Share on other sites More sharing options...
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