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
I think it would be more efficient to send image_id=1,2,3
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 -->
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
When sending a request to Piwigo API, method
pwg.images.syncMetadata, the list ofimage_idsis 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[]=3image_id[]+pwg_tokenand 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.