Forum
Bug: Limit on image fields in one template?
We are using a repeating region to populate images in a "detail view" template linked from a list generated from: https://solutions.grabaperch.com/architecture/how-do-i-create-list-detail-pages
It seems that we can only add 3 "repeats" of our image template layouts = 25 images. After that, we can still add in Perch but more than 3, they do not save and page only shows 25 images. We have not set a max value for number of repeaters.
Is anyone else having this problem?
Running: Perch: 2.4.9 PHP 5.4.28 MySQL 5.5.36
We are about to upgrade to 2.5 so will advise if this fixes issue.
It is likely that you are hitting up against the maximum number of upload fields you have configured in your PHP installation. This isn't something that Perch can change for you.
You may be able to change the value of max_file_uploads in your php.ini, otherwise it is a question to ask your host.
Ah OK, so this isn't just for uploads at once? We are only populating one repeating region at a time, which would be max 8 image uploads. How would the number of upload fields on a page not being used be affected by "max_file_uploads"?
Anyhow, sounds like a PHP thing... as we don't host / or manage this hosting account, will check phpinfo and request change to hosting company.
Thanks for help!
Update: Just checked phpinfo - max upload set to default (20).... now the question will be, will the hosting company managing this shared hosting want to change this, as can't change in htaccess right.
Just in case, are there any good JS workarounds for this?
You'll need to change this in the php.ini or move to better hosting I'm afraid.