Jump to content

Recommended Posts

Posted

Hello
Loading images into field with type of "image"
And could upload only(!) 166 files. In config of Image type Field in the 'miximum files allowed' field is 0.
is 166 magic number or it whichever restriction ?

 

P.S.

ProcessWire 3.0.123

Posted

"WireInput: You have reached PHP’s “max_input_vars” setting of 1000 — please increase it."  

PHP was configured "by default".  When increasing this value - than can upload more images.

  • 10 months later...
Posted
On 12/8/2019 at 11:47 AM, tarkvsg said:

"WireInput: You have reached PHP’s “max_input_vars” setting of 1000 — please increase it."  

PHP was configured "by default".  When increasing this value - than can upload more images.

i came across the same problem i need to upload ~1000 images and i got same error, every image has tag, how can this be resolved? does this count as necro bumping if it wasnt been resolved ?

Posted

https://www.php.net/manual/en/info.configuration.php#ini.max-input-vars

As you may already know, it can be changed in your hosting provider account.

Possible solution:
https://modules.processwire.com/modules/process-admin-actions/
FTP Files to Page Add files/images from a folder to a selected page.

Something that could be useful - to put in the admin.php file (source: Adrian):

$this->addHookBefore('InputfieldFile::render', function($event) {
    $inputfield = $event->object;
    if($field = $inputfield->hasField) {
        if(!is_object($field)) return;
        $p = $event->object->hasPage;
        $inputfield->label .= ' (' . $p->{$field->name}->count() . ')';
    }
});

 

  • Like 3

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...