[batch manager, sync metadata] Input variables exceeded 1000 #1887

Closed
opened 2026-10-05 01:00:11 +02:00 by adam · 0 comments
Owner

PHP message: PHP Warning: Unknown: Input variables exceeded 1000. To increase the limit change max_input_vars in php.ini ... "POST ws.php?format=json&method=pwg.images.syncMetadata , referrer: "http://.../admin.php?page=batch_manager"

When sending a request to Piwigo API, method pwg.images.syncMetadata, the list of image_ids is provided as an array. While this is certainly the "cleaner", here is what is sent: ws.php?format=json&method=pwg.images.syncMetadata&image_id[]=1&image_id[]=2&image_id[]=3

  1. I think it would be more efficient to send image_id=1,2,3
  2. instead of single HTTP variable, we send 3. There is a limit (to 1000 by default). If you have 1000 photos, you send 1000 image_id[] + pwg_token and it exceeds the limit !

The most immediate way to fix this problem is to ask javascript in batch manager to group image_ids by 500 instead of 1000. This is what we're going to do for now. I would be happy that later we have a list of image_id seperated by commas.

> PHP message: PHP Warning: Unknown: Input variables exceeded 1000. To increase the limit change max_input_vars in php.ini ... "POST ws.php?format=json&method=pwg.images.syncMetadata , referrer: "http://.../admin.php?page=batch_manager" When sending a request to Piwigo API, method `pwg.images.syncMetadata`, the list of `image_ids` is provided as an array. While this is certainly the "cleaner", here is what is sent: ws.php?format=json&method=pwg.images.syncMetadata&image_id[]=1&image_id[]=2&image_id[]=3 1. I think it would be more efficient to send image_id=1,2,3 2. instead of single HTTP variable, we send 3. There is a limit (to 1000 by default). If you have 1000 photos, you send 1000 `image_id[]` + `pwg_token` and it exceeds the limit ! The most immediate way to fix this problem is to ask javascript in batch manager to group image_ids by 500 instead of 1000. This is what we're going to do for now. I would be happy that later we have a list of image_id seperated by commas. <!-- github-sync-id:2362326193 -->
adam closed this issue 2026-10-05 01:00:11 +02:00
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: adam/Piwigo#1887