a-ok Posted October 24, 2017 Share Posted October 24, 2017 Hi folks, I have about 250 images in an image field on a page, and there's about 6 pages. As you can imagine this is quite a lot of image data (but they are appropriately sized so each page of images is only about 30mb). The front-end works fine but in the backend when I try to reorder the images, it allows me to reorder them but when I click 'Save' the order goes back to the original order. I had to use the API to upload these images as it was causing a few issues doing it through the interface. Any thoughts or anything I can check? Link to comment Share on other sites More sharing options...
gmclelland Posted October 24, 2017 Share Posted October 24, 2017 That seems like a lot of images to store in an image field. Looks like there might soon be some improvements to the file/image fields to support pagination. See https://processwire.com/blog/posts/fieldtype-pagination/ There is also a request at https://github.com/processwire/processwire-requests/issues/106 for image grid mode to not include the image thumbnails in the image field. That could help performance client side, but I'm not sure off hand why the reordering of your image fields aren't working. 1 Link to comment Share on other sites More sharing options...
a-ok Posted October 25, 2017 Author Share Posted October 25, 2017 Thanks for your help, @gmclelland – so there's no drawbacks to uploading via the API... it doesn't 'lock' the images or anything. Weird. Link to comment Share on other sites More sharing options...
Robin S Posted October 25, 2017 Share Posted October 25, 2017 @oma, you might be exceeding PHP's max_input_vars limit. http://php.net/manual/en/info.configuration.php#ini.max-input-vars You could try raising the limit to 2000 or higher in php.ini. Link to comment Share on other sites More sharing options...
a-ok Posted October 26, 2017 Author Share Posted October 26, 2017 I actually can't seem to edit anything on that page... even if I fill out a text field it resorts to whatever it was before. Link to comment Share on other sites More sharing options...
a-ok Posted October 26, 2017 Author Share Posted October 26, 2017 When I click 'Save' I don't get any changed message either. Hmm. Link to comment Share on other sites More sharing options...
kongondo Posted October 26, 2017 Share Posted October 26, 2017 Did you see @Robin S's post above about max_input_vars? Did you try that? Do you have $config->debug set to true for debugging? Error messages? Error message in the dev console? 1 Link to comment Share on other sites More sharing options...
a-ok Posted October 26, 2017 Author Share Posted October 26, 2017 4 minutes ago, kongondo said: Did you see @Robin S's post above about max_input_vars? Did you try that? Do you have $config->debug set to true for debugging? Error messages? Error message in the dev console? Yep... increased as well as other stuff too. I've enabled debugging to true but not returning any messages I can edit other pages... just not these ones I've uploaded the images to via the API. Link to comment Share on other sites More sharing options...
a-ok Posted October 26, 2017 Author Share Posted October 26, 2017 I think it's definitely to do with the amount of images... I've managed to add a new page alongside it, and make changes to that fine. If I duplicate one of the pages which has a lot of images on it... I can't edit it. Link to comment Share on other sites More sharing options...
a-ok Posted October 26, 2017 Author Share Posted October 26, 2017 Actually. My host said they updated the max_input_vars but they hadn't... so I just made this amend and seems to work! Link to comment Share on other sites More sharing options...
kongondo Posted October 26, 2017 Share Posted October 26, 2017 (edited) 2 minutes ago, oma said: so I just made this amend and seems to work! Sorted, then. Excellent. Please amend title of thread to reflect issue has been resolved. Edited October 26, 2017 by kongondo Link to comment Share on other sites More sharing options...
a-ok Posted October 26, 2017 Author Share Posted October 26, 2017 1 minute ago, kongondo said: Sorted, then. Excellent. Please amend title of thread to reflect issue has been resolved. Done. Thanks everyone. 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