Open OscarBarrett opened 3 years ago
We'll be tweaking the indexing process in Craft 4.0 a bit. Meanwhile, this can be considered as a rather rare edge case and you can work around this by increasing the mentioned PHP setting.
For the record, increasing the max_input_vars does not fix the issue because Craft isn't accounting for the zero index. We are trying to clear an entire Asset source folder in Craft 3.6.12. We got this error when max_input_vars was 1,000. Craft tried to delete 1,001. We increased max_input_vars to 10,000 and Craft tried to delete 10,001 so we got the error again.
I hope this gets fixed before Craft 4.
Description
If you have a large number of removed assets and go to update the asset indexes, attempting to remove missing folders and files from the index can fail however the UI shows it as being successful.
From the error log on request to
admin/actions/utilities/asset-index-perform-action
:Steps to reproduce
Something like this I imagine:
Additional info